diff options
author | wm4 <wm4@nowhere> | 2014-06-14 10:03:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-14 10:03:04 +0200 |
commit | a9538e17ad8b66112239fab1b63c88de745d2134 (patch) | |
tree | 8d0072bf9f678604833330dfd0184ad836daf261 /video/out/vo_direct3d.c | |
parent | 6ab72f976035f094406584795f680d2de8761c2b (diff) | |
download | mpv-a9538e17ad8b66112239fab1b63c88de745d2134.tar.bz2 mpv-a9538e17ad8b66112239fab1b63c88de745d2134.tar.xz |
video: synchronize mpv rgb pixel format names with ffmpeg names
This affects packed RGB formats up to 16 bits per pixel. The old mplayer
names used LSB-to-MSB order, while FFmpeg (and some other libraries) use
MSB-to-LSB.
Nothing should change with this commit, i.e. no bit order or endian bugs
should be added or fixed. In some cases, the name stays the same, even
though the byte order changes, e.g. RGB8->BGR8 and BGR8->RGB8, and this
affects the user-visible names too; this might cause confusion.
Diffstat (limited to 'video/out/vo_direct3d.c')
-rw-r--r-- | video/out/vo_direct3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 5d42cd7d6e..c732d3c19b 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -207,9 +207,9 @@ static const struct fmt_entry fmt_table[] = { {IMGFMT_BGR32, D3DFMT_X8R8G8B8}, {IMGFMT_RGB32, D3DFMT_X8B8G8R8}, {IMGFMT_BGR24, D3DFMT_R8G8B8}, //untested - {IMGFMT_BGR16, D3DFMT_R5G6B5}, - {IMGFMT_BGR15, D3DFMT_X1R5G5B5}, - {IMGFMT_BGR8 , D3DFMT_R3G3B2}, //untested + {IMGFMT_RGB565, D3DFMT_R5G6B5}, + {IMGFMT_RGB555, D3DFMT_X1R5G5B5}, + {IMGFMT_RGB8, D3DFMT_R3G3B2}, //untested // grayscale (can be considered both packed and planar) {IMGFMT_Y8, D3DFMT_L8}, {IMGFMT_Y16, D3DFMT_L16}, |