diff options
author | Zack Rusin <[email protected]> | 2009-11-18 12:06:32 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2009-12-10 13:04:05 -0500 |
commit | 690d888416909f0449e6ebbfa46f18079b68b1bd (patch) | |
tree | 45f147f6e08e9c8b8de7e5684ba19ee2c74ed8f4 /src/gallium/state_trackers/xorg/xorg_xv.c | |
parent | 05b62960929b78a53465ffcb0739454519ed157a (diff) |
st/xorg: enable yv12 for xv
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_xv.c')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_xv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c index b3315dccad8..fdc1cdb82ee 100644 --- a/src/gallium/state_trackers/xorg/xorg_xv.c +++ b/src/gallium/state_trackers/xorg/xorg_xv.c @@ -73,10 +73,11 @@ static XF86VideoEncodingRec DummyEncoding[1] = { } }; -#define NUM_IMAGES 2 +#define NUM_IMAGES 3 static XF86ImageRec Images[NUM_IMAGES] = { XVIMAGE_UYVY, XVIMAGE_YUY2, + XVIMAGE_YV12, }; struct xorg_xv_port_priv { @@ -532,6 +533,7 @@ put_image(ScrnInfoPtr pScrn, switch (id) { case FOURCC_UYVY: case FOURCC_YUY2: + case FOURCC_YV12: default: srcPitch = width << 1; break; @@ -580,6 +582,7 @@ query_image_attributes(ScrnInfoPtr pScrn, switch (id) { case FOURCC_UYVY: case FOURCC_YUY2: + case FOURCC_YV12: default: size = *w << 1; if (pitches) |