X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_video.h;h=fe7ae384e13114bb171c703b6d47804f305c1d03;hb=1a0aeb9b5639f31dc50e4a2c72c4dc33899a7d4a;hp=50848cde7d65a1c0121550bb654ef25116726780;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 50848cde7..fe7ae384e 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -18,6 +18,9 @@ */ +#ifndef DCPOMATIC_PLAYER_VIDEO_H +#define DCPOMATIC_PLAYER_VIDEO_H + #include "types.h" #include "position.h" #include "dcpomatic_time.h" @@ -41,7 +44,6 @@ class PlayerVideo public: PlayerVideo ( boost::shared_ptr, - DCPTime, Crop, boost::optional, dcp::Size, @@ -55,6 +57,7 @@ public: void set_subtitle (PositionImage); + void prepare (); boost::shared_ptr image (dcp::NoteHandler note, boost::function pixel_format, bool aligned, bool fast) const; static AVPixelFormat always_rgb (AVPixelFormat); @@ -66,14 +69,14 @@ public: bool has_j2k () const; dcp::Data j2k () const; - DCPTime time () const { - return _time; - } - Eyes eyes () const { return _eyes; } + void set_eyes (Eyes e) { + _eyes = e; + } + boost::optional colour_conversion () const { return _colour_conversion; } @@ -88,9 +91,10 @@ public: bool same (boost::shared_ptr other) const; + size_t memory_used () const; + private: boost::shared_ptr _in; - DCPTime _time; Crop _crop; boost::optional _fade; dcp::Size _inter_size; @@ -100,3 +104,5 @@ private: boost::optional _colour_conversion; boost::optional _subtitle; }; + +#endif