From cc5278a3e258b30903102b718fb1cd832e79bb2b Mon Sep 17 00:00:00 2001 From: tedbo Date: Fri, 10 Jun 2011 13:05:32 -0700 Subject: 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 --- include/android_runtime/android_graphics_ParcelSurfaceTexture.h | 5 +++++ include/android_runtime/android_graphics_SurfaceTexture.h | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'include/android_runtime') 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 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 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 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_getSurfaceTexture(JNIEnv* env, jobject thiz); } // namespace android -- cgit v1.2.3-59-g8ed1b