Get DCP transcode progress from the player (#2804).
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.h
index d1237b2761c337a9b629b3baad7383e6b3e4ce19..9d085125382e82f55d237e52414585f3e3930cf4 100644 (file)
@@ -19,9 +19,9 @@
 */
 
 
-#include "text_decoder.h"
 #include "dcp_subtitle.h"
-#include "font_data.h"
+#include "font_id_allocator.h"
+#include "text_decoder.h"
 
 
 class DCPSubtitleContent;
@@ -35,15 +35,17 @@ public:
        bool pass () override;
        void seek (dcpomatic::ContentTime time, bool accurate) override;
 
-       std::vector<dcpomatic::FontData> fonts () const override;
-
        boost::optional<dcpomatic::ContentTime> first () const;
 
 private:
        dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr<const dcp::Subtitle> s) const;
+       void update_position();
 
        std::vector<std::shared_ptr<const dcp::Subtitle>> _subtitles;
        std::vector<std::shared_ptr<const dcp::Subtitle>>::const_iterator _next;
 
-       std::vector<dcpomatic::FontData> _fonts;
+       dcp::SubtitleStandard _subtitle_standard;
+
+       std::shared_ptr<dcp::SubtitleAsset> _asset;
+       FontIDAllocator _font_id_allocator;
 };