changeset 6836:0e6860ff93e3

added missing formats :)
author rfelker
date Mon, 29 Jul 2002 16:24:40 +0000
parents a9ba8559ca6f
children f2008c92ec64
files libmpcodecs/vf_format.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_format.c	Sun Jul 28 22:29:04 2002 +0000
+++ b/libmpcodecs/vf_format.c	Mon Jul 29 16:24:40 2002 +0000
@@ -40,11 +40,15 @@
 	if(!strcasecmp(args,"bgr16")) vf->priv->fmt=IMGFMT_BGR16; else
 	if(!strcasecmp(args,"bgr15")) vf->priv->fmt=IMGFMT_BGR15; else
 	if(!strcasecmp(args,"bgr8")) vf->priv->fmt=IMGFMT_BGR8; else
+	if(!strcasecmp(args,"bgr4")) vf->priv->fmt=IMGFMT_BGR4; else
+	if(!strcasecmp(args,"bgr1")) vf->priv->fmt=IMGFMT_BGR1; else
 	if(!strcasecmp(args,"rgb24")) vf->priv->fmt=IMGFMT_RGB24; else
 	if(!strcasecmp(args,"rgb32")) vf->priv->fmt=IMGFMT_RGB32; else
 	if(!strcasecmp(args,"rgb16")) vf->priv->fmt=IMGFMT_RGB16; else
 	if(!strcasecmp(args,"rgb15")) vf->priv->fmt=IMGFMT_RGB15; else
 	if(!strcasecmp(args,"rgb8")) vf->priv->fmt=IMGFMT_RGB8; else
+	if(!strcasecmp(args,"rgb4")) vf->priv->fmt=IMGFMT_RGB4; else
+	if(!strcasecmp(args,"rgb1")) vf->priv->fmt=IMGFMT_RGB1; else
 	{ printf("Unknown format name: '%s'\n",args);return 0;}
     } else
         vf->priv->fmt=IMGFMT_YUY2;