Support subs and tidy up a few things.
[dcpomatic.git] / src / lib / player_video.h
index 8134c8d4e564715dc1f296cac4f6334bedd24806..347d10667de69d97584a4dccb0ec9ddc1d194970 100644 (file)
@@ -70,6 +70,9 @@ public:
        std::shared_ptr<PlayerVideo> shallow_copy () const;
 
        void set_text (PositionImage);
+       boost::optional<PositionImage> text () const {
+               return _text;
+       }
 
        void prepare (std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast, bool proxy_only);
        std::shared_ptr<Image> image (std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
@@ -106,6 +109,10 @@ public:
                return _inter_size;
        }
 
+       dcp::Size out_size () const {
+               return _out_size;
+       }
+
        bool same (std::shared_ptr<const PlayerVideo> other) const;
 
        size_t memory_used () const;