X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftext_decoder.h;h=5f01c5b1f587d783cdbe3cb7f090ec47ec8ca360;hb=01ef2f3061102eee65ab626003489ac9e8b70e49;hp=d1355afb02c4b7eaf135917e5dccc487641d7947;hpb=c59981ce92898f6be6987f10ebb29161e36e6766;p=dcpomatic.git diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h index d1355afb0..5f01c5b1f 100644 --- a/src/lib/text_decoder.h +++ b/src/lib/text_decoder.h @@ -42,25 +42,23 @@ class Image; class TextDecoder : public DecoderPart { public: - TextDecoder ( - Decoder* parent, - std::shared_ptr, - dcpomatic::ContentTime first - ); + TextDecoder (Decoder* parent, std::shared_ptr); - boost::optional position (std::shared_ptr) const { + boost::optional position (std::shared_ptr) const override { return _position; } - void emit_bitmap_start (dcpomatic::ContentTime from, std::shared_ptr image, dcpomatic::Rect rect); + void emit_bitmap_start (ContentBitmapText const& bitmap); void emit_bitmap (dcpomatic::ContentTimePeriod period, std::shared_ptr image, dcpomatic::Rect rect); - void emit_plain_start (dcpomatic::ContentTime from, std::list s); + void emit_plain_start (dcpomatic::ContentTime from, std::vector s); void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle); - void emit_plain (dcpomatic::ContentTimePeriod period, std::list s); + void emit_plain (dcpomatic::ContentTimePeriod period, std::vector s); void emit_plain (dcpomatic::ContentTimePeriod period, sub::Subtitle const & subtitle); void emit_stop (dcpomatic::ContentTime to); - void seek (); + void maybe_set_position (dcpomatic::ContentTime position); + + void seek () override; std::shared_ptr content () const { return _content;