diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2016-06-10 02:32:47 +0200 |
---|---|---|
committer | Rudolf Polzer <rpolzer@google.com> | 2016-06-10 16:30:12 -0400 |
commit | 9cc55070791506113126eb303e4647348813b119 (patch) | |
tree | d7a3a2b536fda0f4c8a636d868d0e85da1c9d5cb /sub | |
parent | bea2e39721e18eddcfd7c501f8e40fff0ecdfda0 (diff) |
vo_sdl: fix pixel formats.
There were two mistakes:
- SDL's RGB565 is always equivalent to ffmpeg's RGB565 (both are packed 16bit
native-endian integers in RGB=565 form) - this was wrongly reversed on
big endian platforms.
- SDL's RGB888 doesn't actually mean RGB24, but XRGB8888 (i.e. 32bit
packed integer, top 8 bits unused).
- Use RGB0 not RGBA when there is no alpha.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions