From 4e8288669e0d0917ca03ecb26fd3a054e88030fb Mon Sep 17 00:00:00 2001 From: Christian König Date: Sat, 13 Nov 2010 12:16:33 +0100 Subject: Add 4:2:2 XvMC surface --- src/radeon_xvmc.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/radeon_xvmc.c b/src/radeon_xvmc.c index 62673cb..de27871 100644 --- a/src/radeon_xvmc.c +++ b/src/radeon_xvmc.c @@ -63,9 +63,26 @@ static XF86MCSurfaceInfoRec yv12_mpeg2_surface = &subpicture_list }; +static XF86MCSurfaceInfoRec uyvy_mpeg2_surface = +{ + FOURCC_UYVY, + XVMC_CHROMA_FORMAT_422, + 0, + 2048, + 2048, + 2048, + 2048, + /*XVMC_IDCT*/ XVMC_MOCOMP | XVMC_MPEG_2, + XVMC_INTRA_UNSIGNED | XVMC_SUBPICTURE_INDEPENDENT_SCALING | XVMC_BACKEND_SUBPICTURE, + &subpicture_list +}; + + + static XF86MCSurfaceInfoPtr surfaces[] = { - (XF86MCSurfaceInfoPtr)&yv12_mpeg2_surface + (XF86MCSurfaceInfoPtr)&yv12_mpeg2_surface, + (XF86MCSurfaceInfoPtr)&uyvy_mpeg2_surface }; static XF86ImageRec rgb_subpicture = @@ -99,7 +116,7 @@ static XF86ImagePtr subpictures[] = static XF86MCAdaptorRec adaptor_template = { "", - 1, + 2, surfaces, 1, subpictures, -- cgit v1.2.3