summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-24 16:42:21 +0100
committerwm4 <wm4@nowhere>2015-12-24 16:42:21 +0100
commit3973a953df7516afbb21f4b95dde2161a67e5d84 (patch)
treef854e2be2f7e2bad0aced53a2b1c2f37fe17284d /osdep
parent082c23515f6e83381ff5220128fa4e3aecbb43d3 (diff)
downloadmpv-3973a953df7516afbb21f4b95dde2161a67e5d84.tar.bz2
mpv-3973a953df7516afbb21f4b95dde2161a67e5d84.tar.xz
sub: find GBRP format automatically when rendering to RGB
This removes the need to define IMGFMT_GBRAP, which fixes compilation with the current Libav release. This also makes it automatically pick up a GBRP format with the same bit width. (Unfortunately, it seems libswscale does not support conversion to AV_PIX_FMT_GBRAP16, so our code falls back to 8 bit, removing precision for video covered by subtitles in cases this code is used.) Also, when the source video is e.g. 10 bit YUV, upsample to 16 bit. Whether this is good or bad, it fixes behavior with alpha. Although I'm not sure if the alpha range is really correct ([0,2^16-1] vs. [0,255*256]). Keep in mind that libswscale doesn't even agree with the way we do it.
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions