summaryrefslogtreecommitdiff
path: root/src/lib/text_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-04 00:41:01 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-04 00:43:28 +0100
commit17f8f22b07bd32d57edada0acde6fd9fffe3baf3 (patch)
treee72a5dfd79b3040c38e33180226aba05f46a36f0 /src/lib/text_decoder.h
parent34bfe29024dd7926db8289781fa70c5e408263e5 (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/text_decoder.h')
-rw-r--r--src/lib/text_decoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h
index 1a7632fd8..47c1be399 100644
--- a/src/lib/text_decoder.h
+++ b/src/lib/text_decoder.h
@@ -51,7 +51,7 @@ public:
}
void emit_bitmap_start (ContentBitmapText const& bitmap);
- void emit_bitmap (dcpomatic::ContentTimePeriod period, std::shared_ptr<const Image> image, dcpomatic::Rect<double> rect);
+ void emit_bitmap(dcpomatic::ContentTimePeriod period, dcp::Size parent_size, std::shared_ptr<const Image> image, dcpomatic::Rect<double> rect);
void emit_plain_start(dcpomatic::ContentTime from, std::vector<dcp::SubtitleString> s, dcp::SubtitleStandard valign_standard);
void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle);
void emit_plain(dcpomatic::ContentTimePeriod period, std::vector<dcp::SubtitleString> s, dcp::SubtitleStandard valign_standard);