diff options
author | Christian König <deathsimple@vodafone.de> | 2010-11-13 12:16:33 +0100 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2011-05-15 22:19:35 +0200 |
commit | 4e8288669e0d0917ca03ecb26fd3a054e88030fb (patch) | |
tree | 077dc35297f862f176bc89095a2a056bdd87f13d | |
parent | ef0f7d493560f31c6523b2a2751dfe9aca6de17e (diff) |
Add 4:2:2 XvMC surface
-rw-r--r-- | src/radeon_xvmc.c | 21 |
1 files 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, |