aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-11 10:31:38 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-11 10:31:38 +0000
commit37910018d1959ed0bcd23b5ca3178824050bac2e (patch)
tree8448a3fc1d5c32e6ba96936f686f1132a635b828
parent63ca5b07a2f1ada56de33b51067ee7fce3359db5 (diff)
RGBA variants
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13000 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpcodecs/vf_format.c4
-rw-r--r--libmpcodecs/vf_noformat.c4
-rw-r--r--m_option.c4
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 }
};