mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 00:19:32 +00:00
RGBA variants
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13000 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
63ca5b07a2
commit
37910018d1
@ -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;}
|
||||
}
|
||||
|
||||
|
@ -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;}
|
||||
}
|
||||
|
||||
|
@ -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 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user