summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-12-28 08:12:25 +0100
committerRudolf Polzer <divverent@xonotic.org>2012-12-28 08:31:58 +0100
commite830b004580a547c1d27f106ca493c70712ec1a6 (patch)
tree64f0bf89883d7dfcde7ab85bbb591171fcfd447c
parent844bba6645864ad2ccd9cc40bab2c4553b50d35b (diff)
downloadmpv-e830b004580a547c1d27f106ca493c70712ec1a6.tar.bz2
mpv-e830b004580a547c1d27f106ca493c70712ec1a6.tar.xz
vf_scale: support more pixel formats
The RGBA, ARGB, BGRA, ABGR were previously not always supported, depending on system endianness.
-rw-r--r--video/filter/vf_scale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c
index 52994762eb..f19225fddd 100644
--- a/video/filter/vf_scale.c
+++ b/video/filter/vf_scale.c
@@ -118,6 +118,10 @@ static const unsigned int outfmt_list[]={
// RGB and grayscale (Y8 and Y800):
IMGFMT_BGR32,
IMGFMT_RGB32,
+ IMGFMT_ABGR,
+ IMGFMT_ARGB,
+ IMGFMT_BGRA,
+ IMGFMT_RGBA,
IMGFMT_BGR24,
IMGFMT_RGB24,
IMGFMT_GBRP,