summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gb.devel@gmail.com>2013-07-26 13:08:27 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2013-09-09 15:24:08 +0800
commit48c5170c83398ceb3b2a29bb76bd0c0d8bf9993d (patch)
treee9c3f01862645e99a8052a90a4b23c5c3545e1f6
parent5b584344bd145b191968e2200404a4012a531b61 (diff)
allow vaDeriveImage() to work for UYVY formats
Hi, I would push the following as obvious around next week. Add support for UYVY format to vaDeriveImage(). Also remove dead code along the way, i.e. packed YUV 4:2:2 formats have a single plane. Regards, Gwenole.
-rwxr-xr-xsrc/i965_drv_video.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 9a8d709..89e776a 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -3021,13 +3021,10 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
image->offsets[2] = w_pitch * obj_surface->y_cr_offset;
break;
case VA_FOURCC('Y', 'U', 'Y', '2'):
+ case VA_FOURCC('U', 'Y', 'V', 'Y'):
image->num_planes = 1;
image->pitches[0] = obj_surface->width * 2; /* Y, width is aligned already */
image->offsets[0] = 0;
- image->pitches[1] = obj_surface->width * 2; /* U */
- image->offsets[1] = 0;
- image->pitches[2] = obj_surface->width * 2; /* V */
- image->offsets[2] = 0;
break;
case VA_FOURCC('R', 'G', 'B', 'A'):
case VA_FOURCC('R', 'G', 'B', 'X'):