changeset 6579:6850df500b8c

IMGFMT_{RGB,BGR}{1,4}
author michael
date Thu, 27 Jun 2002 18:09:32 +0000
parents 3727eb94a783
children 5059143aa020
files libvo/vo_svga.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Thu Jun 27 18:00:47 2002 +0000
+++ b/libvo/vo_svga.c	Thu Jun 27 18:09:32 2002 +0000
@@ -681,7 +681,12 @@
       case 8 : if ((format == IMGFMT_RGB8 ) || (format == IMGFMT_BGR8))
                  return ((bpp_avail & BPP_8 ) ? 1 : 0);
 	       break;
-	       //FIXME RGB4 RGB1 ?
+      case 4 : if ((format == IMGFMT_RGB4 ) || (format == IMGFMT_BGR4))
+                 return ((bpp_avail & BPP_4 ) ? 1 : 0);
+	       break;
+      case 1 : if ((format == IMGFMT_RGB1 ) || (format == IMGFMT_BGR1))
+                 return ((bpp_avail & BPP_1 ) ? 1 : 0);
+	       break;
     }
   } else {
       switch (format) {
@@ -706,6 +711,10 @@
         case IMGFMT_YV12: return (1); break;
         case IMGFMT_RGB8:
         case IMGFMT_BGR8: return ((bpp_avail & BPP_8) ? 1 : 0); break;
+        case IMGFMT_RGB4:
+        case IMGFMT_BGR4: return ((bpp_avail & BPP_4) ? 1 : 0); break;
+        case IMGFMT_RGB1:
+        case IMGFMT_BGR1: return ((bpp_avail & BPP_1) ? 1 : 0); break;
       }
     }
   return (0);