diff options
author | tedbo <tedbo@google.com> | 2011-06-10 13:05:32 -0700 |
---|---|---|
committer | tedbo <tedbo@google.com> | 2011-06-13 14:27:39 -0700 |
commit | cc5278a3e258b30903102b718fb1cd832e79bb2b (patch) | |
tree | 9d5116e42006858d5ed5bb7fddafe22a2f7cb045 /include | |
parent | 8aec83eb15a94b8027bbe7b6358cdf2468fd2b5c (diff) | |
download | frameworks_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.h | 5 | ||||
-rw-r--r-- | include/android_runtime/android_graphics_SurfaceTexture.h | 4 |
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 |