diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2011-09-10 23:14:53 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-10-10 10:56:56 +1000 |
commit | 656cfe3bdb8b487827b710a0cea35ae1bcd5044e (patch) | |
tree | 83f9db729739bf2700cec102cf37d2df462cf7b1 | |
parent | 169512fbe91f0671a90dfee5e280357f0a4ef701 (diff) | |
download | xorg-driver-xf86-video-nouveau-656cfe3bdb8b487827b710a0cea35ae1bcd5044e.tar.gz |
xv: support AI44/IA44
It's needed for osd in mplayer's xvmc output.
-rw-r--r-- | src/nouveau_xv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c index 30753fa..5a5337c 100644 --- a/src/nouveau_xv.c +++ b/src/nouveau_xv.c @@ -1426,7 +1426,15 @@ NVQueryImageAttributes(ScrnInfoPtr pScrn, int id, pitches[0] = size; // 4*width size *= *h; // 4*width*height break; + case FOURCC_AI44: + case FOURCC_IA44: + size = *w; // width + if (pitches) + pitches[0] = size; // width + size *= *h; // width*height + break; default: + xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Unknown colorspace: %x\n", id); *w = *h = size = 0; break; } |