X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_video.h;h=f4bf2a47165be5dbc58b35a3f95e752db7e81ab6;hb=6e6ebf3122333b38333482bce64df3e6e61e64c4;hp=a6e39d66e8196668ef9998eff4c8beb7acbe63a2;hpb=98664996b6a7ef62cbff49a174917a456f218e76;p=dcpomatic.git diff --git a/src/lib/player_video.h b/src/lib/player_video.h index a6e39d66e..f4bf2a471 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -30,6 +30,7 @@ extern "C" { #include } #include +#include class Image; class ImageProxy; @@ -50,7 +51,9 @@ public: dcp::Size, Eyes, Part, - boost::optional + boost::optional, + boost::weak_ptr, + boost::optional ); PlayerVideo (boost::shared_ptr, boost::shared_ptr); @@ -68,6 +71,8 @@ public: void add_metadata (xmlpp::Node* node) const; void send_binary (boost::shared_ptr socket) const; + bool reset_metadata (dcp::Size video_container_size, dcp::Size film_frame_size); + bool has_j2k () const; dcp::Data j2k () const; @@ -105,6 +110,10 @@ private: Part _part; boost::optional _colour_conversion; boost::optional _subtitle; + /** Content that we came from. This is so that reset_metadata() can work */ + boost::weak_ptr _content; + /** Video frame that we came from. Again, this is for reset_metadata() */ + boost::optional _video_frame; }; #endif