diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2014-03-14 15:16:24 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-23 14:16:31 +0800 |
commit | b329b70baea3a489a14fe80830f6178d3b8ab089 (patch) | |
tree | b815e3ea25eb759dda508d055cb8508baa1be149 | |
parent | ae834b37273211cffa77c57ea6dc24abd0db7b31 (diff) | |
download | libva-intel-driver-b329b70baea3a489a14fe80830f6178d3b8ab089.tar.gz libva-intel-driver-b329b70baea3a489a14fe80830f6178d3b8ab089.tar.bz2 libva-intel-driver-b329b70baea3a489a14fe80830f6178d3b8ab089.zip |
Add the support of derive image from YV16 surface
Reviewed-by: Wind Yuan <feng.yuan@intel.com>
Tested-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 7d5172de91336db2e627c0011404231b6b64b211)
-rwxr-xr-x | src/i965_drv_video.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 3470ba9..4a18356 100755 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -3167,6 +3167,16 @@ VAStatus i965_DeriveImage(VADriverContextP ctx, image->offsets[2] = w_pitch * obj_surface->y_cb_offset; break; + case VA_FOURCC('Y', 'V', '1', '6'): + image->num_planes = 3; + image->pitches[0] = w_pitch; /* Y */ + image->offsets[0] = 0; + image->pitches[1] = obj_surface->cb_cr_pitch; /* V */ + image->offsets[1] = w_pitch * obj_surface->y_cr_offset; + image->pitches[2] = obj_surface->cb_cr_pitch; /* U */ + image->offsets[2] = w_pitch * obj_surface->y_cb_offset; + break; + case VA_FOURCC('N', 'V', '1', '2'): image->num_planes = 2; image->pitches[0] = w_pitch; /* Y */ |