summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-12-25 16:27:20 +0100
committerwm4 <wm4@nowhere>2013-01-13 20:04:14 +0100
commitfb23c3a8ee468a4eaa974440147b032a568f7d7b (patch)
tree510f713a02224dad79ef3734d7ccdb09271a28ed /core
parent7d15bd1488b32be69aa21ed62749e610ac9d856a (diff)
downloadmpv-fb23c3a8ee468a4eaa974440147b032a568f7d7b.tar.bz2
mpv-fb23c3a8ee468a4eaa974440147b032a568f7d7b.tar.xz
draw_bmp: don't copy Y plane on up/down-sampling
Image areas with subtitles are upsampled to 4:4:4 in order to render the subtitles (makes blending easier). Try not to copy the Y plane on upsampling. The libswscale API requires this, but this commit works it around by scaling the chroma planes separately as AV_PIX_FMT_GRAY8. The Y plane is not touched at all. This is done for 420p8 only, which is the most commonly needed case. For other formats, the old way is used. Seems to make ASS rendering faster about 15% in the setup I tested.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions