More correctly calculate bitmap subtitle scaling (#2670). 2670-again
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Mar 2024 23:41:01 +0000 (00:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Mar 2024 23:43:28 +0000 (00:43 +0100)
commit17f8f22b07bd32d57edada0acde6fd9fffe3baf3
treee72a5dfd79b3040c38e33180226aba05f46a36f0
parent34bfe29024dd7926db8289781fa70c5e408263e5
More correctly calculate bitmap subtitle scaling (#2670).

This was partially fixed before in
6ac468554c7fea0dfaefde85fb6cdd0fceaf5cad

The last try accounted for cropping, but not for cases where the
source video (after crop) does not precisely fit the DCP container.
In those cases the x scale for the subtitles could be different
to the y scale, squashing or stretching them.
src/lib/bitmap_text.h
src/lib/content_text.h
src/lib/ffmpeg_decoder.cc
src/lib/player.cc
src/lib/text_decoder.cc
src/lib/text_decoder.h