diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-02 01:11:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-02 01:11:11 +0100 |
| commit | a18e837cb56da42a500a438a09afcbddad8b3a94 (patch) | |
| tree | eb9f2c17477d9b813a03a8fd14dde4c5fade0cd9 /src/lib/text_decoder.cc | |
| parent | da4a15c2e613b9604b3b7247811576a8567d1c7c (diff) | |
Play PNG subtitles from DCPs; possibly not in the right scale.
Diffstat (limited to 'src/lib/text_decoder.cc')
| -rw-r--r-- | src/lib/text_decoder.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/text_decoder.cc b/src/lib/text_decoder.cc index 00d58af86..d6cf517c2 100644 --- a/src/lib/text_decoder.cc +++ b/src/lib/text_decoder.cc @@ -250,6 +250,17 @@ TextDecoder::emit_plain (ContentTimePeriod period, sub::Subtitle const & s) emit_stop (period.to); } +/* @param rect Area expressed as a fraction of the video frame that this subtitle + * is for (e.g. a width of 0.5 means the width of the subtitle is half the width + * of the video frame) + */ +void +TextDecoder::emit_bitmap (ContentTimePeriod period, shared_ptr<Image> image, dcpomatic::Rect<double> rect) +{ + emit_bitmap_start (period.from, image, rect); + emit_stop (period.to); +} + void TextDecoder::seek () { |
