# HG changeset patch # User michael # Date 1092220298 0 # Node ID bc8cda64ad7f6c5f070f1f6232f1f0684df9599a # Parent e44e4e16602fca3fb9ae28ea8c3a02f35f91e33e RGBA variants diff -r e44e4e16602f -r bc8cda64ad7f libmpcodecs/vf_format.c --- a/libmpcodecs/vf_format.c Wed Aug 11 08:41:42 2004 +0000 +++ b/libmpcodecs/vf_format.c Wed Aug 11 10:31:38 2004 +0000 @@ -61,6 +61,10 @@ 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 -r e44e4e16602f -r bc8cda64ad7f libmpcodecs/vf_noformat.c --- a/libmpcodecs/vf_noformat.c Wed Aug 11 08:41:42 2004 +0000 +++ b/libmpcodecs/vf_noformat.c Wed Aug 11 10:31:38 2004 +0000 @@ -61,6 +61,10 @@ 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 -r e44e4e16602f -r bc8cda64ad7f m_option.c --- a/m_option.c Wed Aug 11 08:41:42 2004 +0000 +++ b/m_option.c Wed Aug 11 10:31:38 2004 +0000 @@ -986,6 +986,10 @@ {"rgb4", IMGFMT_RGB4}, {"rg4b", IMGFMT_RG4B}, {"rgb1", IMGFMT_RGB1}, + {"rgba", IMGFMT_RGBA}, + {"argb", IMGFMT_ARGB}, + {"bgra", IMGFMT_BGRA}, + {"abgr", IMGFMT_ABGR}, { NULL, 0 } };