diff options
-rw-r--r-- | libmpcodecs/vf_format.c | 4 | ||||
-rw-r--r-- | libmpcodecs/vf_noformat.c | 4 | ||||
-rw-r--r-- | m_option.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/libmpcodecs/vf_format.c b/libmpcodecs/vf_format.c index c199f7d68d..bb4fb4d5a9 100644 --- a/libmpcodecs/vf_format.c +++ b/libmpcodecs/vf_format.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;} } 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;} } diff --git a/m_option.c b/m_option.c index db01d4bd63..10fc1f7a97 100644 --- a/m_option.c +++ b/m_option.c @@ -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 } }; |