changeset 12999:bc8cda64ad7f

RGBA variants
author michael
date Wed, 11 Aug 2004 10:31:38 +0000
parents e44e4e16602f
children 076e87baf7c0
files libmpcodecs/vf_format.c libmpcodecs/vf_noformat.c m_option.c
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_format.c	Wed Aug 11 08:41:42 2004 +0000
+++ b/libmpcodecs/vf_format.c	Wed Aug 11 10:31:38 2004 +0000
@@ -61,6 +61,10 @@
 	if(!strcasecmp(args,"rgb4")) vf->priv->fmt=IMGFMT_RGB4; else
 	if(!strcasecmp(args,"rg4b")) vf->priv->fmt=IMGFMT_RG4B; else
 	if(!strcasecmp(args,"rgb1")) vf->priv->fmt=IMGFMT_RGB1; else
+	if(!strcasecmp(args,"rgba")) vf->priv->fmt=IMGFMT_RGBA; else
+	if(!strcasecmp(args,"argb")) vf->priv->fmt=IMGFMT_ARGB; else
+	if(!strcasecmp(args,"bgra")) vf->priv->fmt=IMGFMT_BGRA; else
+	if(!strcasecmp(args,"abgr")) vf->priv->fmt=IMGFMT_ABGR; else
 	{ printf("Unknown format name: '%s'\n",args);return 0;}
     }
         
--- a/libmpcodecs/vf_noformat.c	Wed Aug 11 08:41:42 2004 +0000
+++ b/libmpcodecs/vf_noformat.c	Wed Aug 11 10:31:38 2004 +0000
@@ -61,6 +61,10 @@
 	if(!strcasecmp(args,"rgb4")) vf->priv->fmt=IMGFMT_RGB4; else
 	if(!strcasecmp(args,"rg4b")) vf->priv->fmt=IMGFMT_RG4B; else
 	if(!strcasecmp(args,"rgb1")) vf->priv->fmt=IMGFMT_RGB1; else
+	if(!strcasecmp(args,"rgba")) vf->priv->fmt=IMGFMT_RGBA; else
+	if(!strcasecmp(args,"argb")) vf->priv->fmt=IMGFMT_ARGB; else
+	if(!strcasecmp(args,"bgra")) vf->priv->fmt=IMGFMT_BGRA; else
+	if(!strcasecmp(args,"abgr")) vf->priv->fmt=IMGFMT_ABGR; else
 	{ printf("Unknown format name: '%s'\n",args);return 0;}
     }
         
--- a/m_option.c	Wed Aug 11 08:41:42 2004 +0000
+++ b/m_option.c	Wed Aug 11 10:31:38 2004 +0000
@@ -986,6 +986,10 @@
   {"rgb4", IMGFMT_RGB4},
   {"rg4b", IMGFMT_RG4B},
   {"rgb1", IMGFMT_RGB1},
+  {"rgba", IMGFMT_RGBA},
+  {"argb", IMGFMT_ARGB},
+  {"bgra", IMGFMT_BGRA},
+  {"abgr", IMGFMT_ABGR},
   { NULL, 0 }
 };