[Libva] [PATCH] [intel] allow vaDeriveImage() to work for UYVY formats

Gwenole Beauchesne gb.devel at gmail.com
Fri Jul 26 04:08:27 PDT 2013


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.
---
 src/i965_drv_video.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index ffcda0a..1d85fef 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_UYVY:
         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'):
-- 
1.7.9.5



More information about the Libva mailing list