aboutsummaryrefslogtreecommitdiff
path: root/src/psb_surface.c
diff options
context:
space:
mode:
authorFei Jiang <fei.jiang@intel.com>2010-06-11 10:36:11 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:05:50 -0700
commit437b3eda28a4bf098efa80598cab67f190275266 (patch)
tree02349578e8a62a08cf36b905d4d4e8b7ef3251bb /src/psb_surface.c
parent49d0de08c88714dd2ba5d800bdfef12cc6ff26c2 (diff)
downloadpsb_video-437b3eda28a4bf098efa80598cab67f190275266.tar.gz
Replace wind river video driver with intel umg video driver, which also include texture streaming support.
Playback with texture streaming is for default, but overlay is also supported. You can disabled "#define ANDROID_VIDEO_TEXTURE_STREAM 1" in psb_output.h to enable overlay. Change-Id: Ia8e08c69d5f221c8e43d79ecd74993fd1e819a69 Reviewed-by:Francis Tharappel
Diffstat (limited to 'src/psb_surface.c')
-rw-r--r--src/psb_surface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/psb_surface.c b/src/psb_surface.c
index d92df32..a0069a4 100644
--- a/src/psb_surface.c
+++ b/src/psb_surface.c
@@ -84,6 +84,7 @@ VAStatus psb_surface_create( psb_driver_data_p driver_data,
psb_surface->luma_offset = 0;
psb_surface->chroma_offset = psb_surface->stride * height;
psb_surface->size = (psb_surface->stride * height * 3) / 2;
+ psb_surface->extra_info[4] = VA_FOURCC_NV12;
}
else if (fourcc == VA_FOURCC_RGBA)
{
@@ -93,6 +94,7 @@ VAStatus psb_surface_create( psb_driver_data_p driver_data,
psb_surface->luma_offset = 0;
psb_surface->chroma_offset = 0;
psb_surface->size = psb_surface->stride * height;
+ psb_surface->extra_info[4] = VA_FOURCC_RGBA;
}
if (protected == 0)
@@ -162,6 +164,10 @@ VAStatus psb_surface_set_chroma( psb_surface_p psb_surface, int chroma )
void psb_surface_destroy( psb_surface_p psb_surface )
{
psb_buffer_destroy( &psb_surface->buf );
+
+ if( NULL != psb_surface->in_loop_buf )
+ psb_buffer_destroy( psb_surface->in_loop_buf );
+
}
VAStatus psb_surface_sync( psb_surface_p psb_surface )