diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-04 00:41:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-04 00:43:28 +0100 |
| commit | 17f8f22b07bd32d57edada0acde6fd9fffe3baf3 (patch) | |
| tree | e72a5dfd79b3040c38e33180226aba05f46a36f0 /src/lib/content_text.h | |
| parent | 34bfe29024dd7926db8289781fa70c5e408263e5 (diff) | |
More correctly calculate bitmap subtitle scaling (#2670).2670-again
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.
Diffstat (limited to 'src/lib/content_text.h')
| -rw-r--r-- | src/lib/content_text.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/content_text.h b/src/lib/content_text.h index 8a7f007ef..d04383c8b 100644 --- a/src/lib/content_text.h +++ b/src/lib/content_text.h @@ -57,9 +57,9 @@ public: : ContentText(from) {} - ContentBitmapText(dcpomatic::ContentTime from, std::shared_ptr<const Image> image, dcpomatic::Rect<double> rect) + ContentBitmapText(dcpomatic::ContentTime from, dcp::Size parent_size, std::shared_ptr<const Image> image, dcpomatic::Rect<double> rect) : ContentText(from) - , subs{ {image, rect} } + , subs{ { parent_size, image, rect } } {} /* Our texts, with their rectangles unmodified by any offsets or scales that the content specifies */ |
