diff options
| author | 2011-06-10 13:05:32 -0700 | |
|---|---|---|
| committer | 2011-06-13 14:27:39 -0700 | |
| commit | cc5278a3e258b30903102b718fb1cd832e79bb2b (patch) | |
| tree | 9d5116e42006858d5ed5bb7fddafe22a2f7cb045 /include/android_runtime | |
| parent | 8aec83eb15a94b8027bbe7b6358cdf2468fd2b5c (diff) | |
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/android_runtime')
| -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 22f1c12a5106..b94ac9b532be 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 acf1ca82b0a6..badf22c4a03f 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 |