diff options
Diffstat (limited to 'libmpcodecs/vf_noformat.c')
-rw-r--r-- | libmpcodecs/vf_noformat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/vf_noformat.c b/libmpcodecs/vf_noformat.c index 31bd1e4b1c..0fd44885ca 100644 --- a/libmpcodecs/vf_noformat.c +++ b/libmpcodecs/vf_noformat.c @@ -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;} } |