X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_video_frame.h;h=4c6a9c63008cd6b30f2898b27e8b9e8974dddd8a;hb=04533b9cf34ce8089113015715083ee9c5b2b001;hp=51ec7664f8c60afc084d47d98cdb234e0f5ac66b;hpb=8f7d0cf115980cb357bc3da410842503930e66b8;p=dcpomatic.git diff --git a/src/lib/player_video_frame.h b/src/lib/player_video_frame.h index 51ec7664f..4c6a9c630 100644 --- a/src/lib/player_video_frame.h +++ b/src/lib/player_video_frame.h @@ -20,9 +20,14 @@ #include #include "types.h" #include "position.h" +#include "colour_conversion.h" +#include "position_image.h" class Image; +class ImageProxy; class Scaler; +class Socket; +class Log; /** Everything needed to describe a video frame coming out of the player, but with the * bits still their raw form. We may want to combine the bits on a remote machine, @@ -31,18 +36,32 @@ class Scaler; class PlayerVideoFrame { public: - PlayerVideoFrame (boost::shared_ptr, Crop, libdcp::Size, libdcp::Size, Scaler const *); + PlayerVideoFrame (boost::shared_ptr, Crop, dcp::Size, dcp::Size, Scaler const *, Eyes, Part, ColourConversion); + PlayerVideoFrame (boost::shared_ptr, boost::shared_ptr, boost::shared_ptr); - void set_subtitle (boost::shared_ptr, Position); + void set_subtitle (PositionImage); - boost::shared_ptr image (); + boost::shared_ptr image () const; + + void add_metadata (xmlpp::Node* node) const; + void send_binary (boost::shared_ptr socket) const; + + Eyes eyes () const { + return _eyes; + } + + ColourConversion colour_conversion () const { + return _colour_conversion; + } private: - boost::shared_ptr _in; + boost::shared_ptr _in; Crop _crop; - libdcp::Size _inter_size; - libdcp::Size _out_size; + dcp::Size _inter_size; + dcp::Size _out_size; Scaler const * _scaler; - boost::shared_ptr _subtitle_image; - Position _subtitle_position; + Eyes _eyes; + Part _part; + ColourConversion _colour_conversion; + PositionImage _subtitle; };