diff libmpcodecs/vf_tile.c @ 31082:92f88bb315c5

Add support for 12-bit color mode on framebuffer devices. Patch Janusz Krzysztofik, jkrzyszt A tis icnet pl
author cehoyos
date Thu, 06 May 2010 10:18:25 +0000
parents a972c1a4a012
children 7af3e6f901fd
line wrap: on
line diff
--- a/libmpcodecs/vf_tile.c	Thu May 06 10:10:34 2010 +0000
+++ b/libmpcodecs/vf_tile.c	Thu May 06 10:18:25 2010 +0000
@@ -198,16 +198,18 @@
     free(vf->priv);
 }
 
-/* rgb/bgr 15->32 supported & some Yxxx */
+/* rgb/bgr 12...32 supported & some Yxxx */
 static int query_format(struct vf_instance *vf, unsigned int fmt)
 {
 	switch (fmt) {
-        /* rgb 15 -> 32 bit */
+        /* rgb 12...32 bit */
+        case IMGFMT_RGB12:
         case IMGFMT_RGB15:
 	case IMGFMT_RGB16:
 	case IMGFMT_RGB24:
         case IMGFMT_RGB32:
-        /* bgr 15 -> 32 bit */
+        /* bgr 12...32 bit */
+        case IMGFMT_BGR12:
 	case IMGFMT_BGR15:
 	case IMGFMT_BGR16:
 	case IMGFMT_BGR24: