[Libva] [PATCH Libva-intel-driver 3/4] Add the support of derive image from YV16 surface

Yuan, Feng feng.yuan at intel.com
Mon Mar 17 00:49:36 PDT 2014


Reviewed-by: Wind Yuan <feng.yuan at intel.com>
Tested-by: Wind Yuan <feng.yuan at intel.com>

>-----Original Message-----
>From: libva-bounces at lists.freedesktop.org
>[mailto:libva-bounces at lists.freedesktop.org] On Behalf Of Zhao Yakui
>Sent: Friday, March 14, 2014 3:21 PM
>To: libva at lists.freedesktop.org
>Subject: [Libva] [PATCH Libva-intel-driver 3/4] Add the support of derive
>image from YV16 surface
>
>Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
>---
> src/i965_drv_video.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index
>14a0926..253e06e 100755
>--- a/src/i965_drv_video.c
>+++ b/src/i965_drv_video.c
>@@ -3210,6 +3210,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 */
>--
>1.8.2-rc2
>
>_______________________________________________
>Libva mailing list
>Libva at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list