[Nouveau] [PATCH] xv: add support for AI44/IA44
Marcin Slusarz
marcin.slusarz at gmail.com
Sat Oct 8 10:43:00 PDT 2011
From: Marcin Slusarz <marcin.slusarz at gmail.com>
Date: Sat, 10 Sep 2011 23:14:53 +0200
Subject: [PATCH] xv: support AI44/IA44
It's needed for osd in mplayer's xvmc output.
---
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;
}
--
1.7.6.1
More information about the Nouveau
mailing list