summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.m
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2016-06-10 02:32:47 +0200
committerRudolf Polzer <rpolzer@google.com>2016-06-10 16:30:12 -0400
commit9cc55070791506113126eb303e4647348813b119 (patch)
treed7a3a2b536fda0f4c8a636d868d0e85da1c9d5cb /video/out/cocoa_common.m
parentbea2e39721e18eddcfd7c501f8e40fff0ecdfda0 (diff)
downloadmpv-9cc55070791506113126eb303e4647348813b119.tar.bz2
mpv-9cc55070791506113126eb303e4647348813b119.tar.xz
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 'video/out/cocoa_common.m')
0 files changed, 0 insertions, 0 deletions