diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2011-04-01 11:34:47 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2011-04-01 11:34:47 +0800 |
commit | b3056666977f6d1b1bdc748c6933eb519216d0cb (patch) | |
tree | ae2d10b50192af1c0f71b7081dc58d269f1805ce /test/putsurface | |
parent | a259f9ef76d5719d19e273b17478ffedeff01ddc (diff) |
1. add interface VARenderDevice for output the video into an external device when the WM is not aware of it
2. add interface VARenderMode for APP to swith between overlay and GPU post-processing
3. add VADisplayAttribOverlayColorKey/VADisplayAttribOverlayAutoPaintColorKey which is simliar to Xv for overlay post-processing
4. fix the build issue on Android 2.3
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Signed-off-by: Jason Hu <jason.hu@intel.com>
Signed-off-by: Zhaohan Ren <zhaohan.ren@intel.com>
Diffstat (limited to 'test/putsurface')
-rw-r--r-- | test/putsurface/Android.mk | 1 | ||||
-rw-r--r-- | test/putsurface/loadsurface.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/putsurface/Android.mk b/test/putsurface/Android.mk index 9bf1438..8bcfd0c 100644 --- a/test/putsurface/Android.mk +++ b/test/putsurface/Android.mk @@ -14,6 +14,7 @@ LOCAL_CFLAGS += \ LOCAL_C_INCLUDES += \ $(TARGET_OUT_HEADERS)/libva +LOCAL_MODULE_TAGS := optional LOCAL_MODULE := putsurface LOCAL_SHARED_LIBRARIES := libva-android libva libdl libdrm libcutils libutils libui libsurfaceflinger_client diff --git a/test/putsurface/loadsurface.h b/test/putsurface/loadsurface.h index b14241f..1aac393 100644 --- a/test/putsurface/loadsurface.h +++ b/test/putsurface/loadsurface.h @@ -99,8 +99,8 @@ static int upload_surface(VADisplay va_dpy, VASurfaceID surface_id, vaMapBuffer(va_dpy,surface_image.buf,&surface_p); assert(VA_STATUS_SUCCESS == va_status); - U_start = surface_p + surface_image.offsets[1]; - V_start = surface_p + surface_image.offsets[2]; + U_start = (char *)surface_p + surface_image.offsets[1]; + V_start = (char *)surface_p + surface_image.offsets[2]; /* assume surface is planar format */ yuvgen_planar(surface_image.width, surface_image.height, |