1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

vf_scale: support more pixel formats

The RGBA, ARGB, BGRA, ABGR were previously not always supported,
depending on system endianness.
This commit is contained in:
Rudolf Polzer 2012-12-28 08:12:25 +01:00
parent 844bba6645
commit e830b00458

View File

@ -118,6 +118,10 @@ static const unsigned int outfmt_list[]={
// RGB and grayscale (Y8 and Y800): // RGB and grayscale (Y8 and Y800):
IMGFMT_BGR32, IMGFMT_BGR32,
IMGFMT_RGB32, IMGFMT_RGB32,
IMGFMT_ABGR,
IMGFMT_ARGB,
IMGFMT_BGRA,
IMGFMT_RGBA,
IMGFMT_BGR24, IMGFMT_BGR24,
IMGFMT_RGB24, IMGFMT_RGB24,
IMGFMT_GBRP, IMGFMT_GBRP,