Various alignment adjustments.
[dcpomatic.git] / src / lib / player_video.h
index 8134c8d4e564715dc1f296cac4f6334bedd24806..872bc9864725a7ae2f89176798446b7f96b1ceae 100644 (file)
@@ -70,10 +70,13 @@ 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;
-       std::shared_ptr<Image> raw_image () const;
+       std::shared_ptr<const Image> raw_image () const;
 
        static AVPixelFormat force (AVPixelFormat, AVPixelFormat);
        static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat);
@@ -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;