[cairo-commit] glitzinfo glitzinfo.c,1.13,1.14
David Reveman
commit at pdx.freedesktop.org
Thu Dec 1 17:46:57 PST 2005
Committed by: davidr
Update of /cvs/cairo/glitzinfo
In directory gabe:/tmp/cvs-serv11349
Modified Files:
glitzinfo.c
Log Message:
List YUV surface formats
Index: glitzinfo.c
===================================================================
RCS file: /cvs/cairo/glitzinfo/glitzinfo.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- glitzinfo.c 1 Dec 2005 23:24:46 -0000 1.13
+++ glitzinfo.c 2 Dec 2005 01:46:55 -0000 1.14
@@ -285,8 +285,8 @@
i++;
printf ("\nSurface formats:\n");
- printf ("id\ttype\tr/g/b/a\n");
- printf ("------------------------\n");
+ printf ("id\ttype\tfourcc\tr/g/b/a\n");
+ printf ("--------------------------------\n");
i = 0;
do {
@@ -297,11 +297,18 @@
switch (formats->color.fourcc) {
case GLITZ_FOURCC_RGB:
- printf ("color\t%d/%d/%d/%d",
+ printf ("color\tRGB\t%d/%d/%d/%d",
formats->color.red_size,
formats->color.green_size,
formats->color.blue_size,
formats->color.alpha_size);
+ break;
+ case GLITZ_FOURCC_YV12:
+ printf ("color\tYV12");
+ break;
+ case GLITZ_FOURCC_YUY2:
+ printf ("color\tYUY2");
+ break;
}
printf ("\n");
More information about the cairo-commit
mailing list