mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
st/xorg: enable yv12 for xv
This commit is contained in:
parent
05b6296092
commit
690d888416
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue