RGBA variants
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 11 Aug 2004 10:31:38 +0000 (10:31 +0000)
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 11 Aug 2004 10:31:38 +0000 (10:31 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@13000 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpcodecs/vf_format.c
libmpcodecs/vf_noformat.c
m_option.c

index c199f7d..bb4fb4d 100644 (file)
@@ -61,6 +61,10 @@ static int open(vf_instance_t *vf, char* args){
        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;}
     }
         
index 31bd1e4..0fd4488 100644 (file)
@@ -61,6 +61,10 @@ static int open(vf_instance_t *vf, char* args){
        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;}
     }
         
index db01d4b..10fc1f7 100644 (file)
@@ -986,6 +986,10 @@ static struct {
   {"rgb4", IMGFMT_RGB4},
   {"rg4b", IMGFMT_RG4B},
   {"rgb1", IMGFMT_RGB1},
+  {"rgba", IMGFMT_RGBA},
+  {"argb", IMGFMT_ARGB},
+  {"bgra", IMGFMT_BGRA},
+  {"abgr", IMGFMT_ABGR},
   { NULL, 0 }
 };