Add accessor for _text.
authorCarl Hetherington <cth@carlh.net>
Mon, 13 Sep 2021 23:36:50 +0000 (01:36 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Sep 2021 11:41:46 +0000 (13:41 +0200)
src/lib/player_video.h

index 8134c8d4e564715dc1f296cac4f6334bedd24806..553d3c5bc756f52b10e4806b31bc6b742fac2f8f 100644 (file)
@@ -70,6 +70,9 @@ public:
        std::shared_ptr<PlayerVideo> shallow_copy () const;
 
        void set_text (PositionImage);
        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;
 
        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;