summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortedbo <tedbo@google.com>2011-06-10 13:05:32 -0700
committertedbo <tedbo@google.com>2011-06-13 14:27:39 -0700
commitcc5278a3e258b30903102b718fb1cd832e79bb2b (patch)
tree9d5116e42006858d5ed5bb7fddafe22a2f7cb045 /include
parent8aec83eb15a94b8027bbe7b6358cdf2468fd2b5c (diff)
downloadframeworks_base-cc5278a3e258b30903102b718fb1cd832e79bb2b.zip
frameworks_base-cc5278a3e258b30903102b718fb1cd832e79bb2b.tar.gz
frameworks_base-cc5278a3e258b30903102b718fb1cd832e79bb2b.tar.bz2
Support for setting a ParcelSurfaceTexture as the MediaPlayer sink.
This adds support for setting a SurfaceTexture as the MediaPlayer video sink by using a ParcelSurfaceTexture object. The goal is to enable a SurfaceTexture to pass through Binder (via ParcelSurfaceTexture) and then be set on the MediaPlayer. Change-Id: Ife5689ce673eb4bee1c377019db761685217b71d
Diffstat (limited to 'include')
-rw-r--r--include/android_runtime/android_graphics_ParcelSurfaceTexture.h5
-rw-r--r--include/android_runtime/android_graphics_SurfaceTexture.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/android_runtime/android_graphics_ParcelSurfaceTexture.h b/include/android_runtime/android_graphics_ParcelSurfaceTexture.h
index 22f1c12..b94ac9b 100644
--- a/include/android_runtime/android_graphics_ParcelSurfaceTexture.h
+++ b/include/android_runtime/android_graphics_ParcelSurfaceTexture.h
@@ -23,10 +23,15 @@
namespace android {
+class ISurfaceTexture;
+
extern sp<ANativeWindow> android_ParcelSurfaceTexture_getNativeWindow(
JNIEnv* env, jobject thiz);
extern bool android_ParcelSurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz);
+/* Gets the underlying ISurfaceTexture from a ParcelSurfaceTexture Java object. */
+extern sp<ISurfaceTexture> ParcelSurfaceTexture_getISurfaceTexture(JNIEnv* env, jobject thiz);
+
} // namespace android
#endif // _ANDROID_GRAPHICS_PARCELSURFACETEXTURE_H
diff --git a/include/android_runtime/android_graphics_SurfaceTexture.h b/include/android_runtime/android_graphics_SurfaceTexture.h
index acf1ca8..badf22c 100644
--- a/include/android_runtime/android_graphics_SurfaceTexture.h
+++ b/include/android_runtime/android_graphics_SurfaceTexture.h
@@ -23,10 +23,14 @@
namespace android {
+class SurfaceTexture;
+
extern sp<ANativeWindow> android_SurfaceTexture_getNativeWindow(
JNIEnv* env, jobject thiz);
extern bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz);
+/* Gets the underlying SurfaceTexture from a SurfaceTexture Java object. */
+extern sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz);
} // namespace android