X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.h;h=62ba89e6c6e783c2603a390f41d43d1583c079af;hb=7f2e74604a51b984e4c8cbb5d5f4bb642677ec00;hp=d83045ab12a6b8e84478be51188111240095f971;hpb=2c0478d2b33906845b9d910668b12fe3e8f03a7c;p=dcpomatic.git diff --git a/src/lib/player.h b/src/lib/player.h index d83045ab1..62ba89e6c 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -31,6 +31,7 @@ #include "dcpomatic_time.h" #include "content_subtitle.h" #include "position_image.h" +#include "piece.h" class Job; class Film; @@ -73,18 +74,26 @@ public: void dump (boost::shared_ptr) const; }; -class Piece +/** A wrapper for an Image which contains some pending operations; these may + * not be necessary if the receiver of the PlayerImage throws it away. + */ +class PlayerImage { public: - Piece (boost::shared_ptr c, boost::shared_ptr d, FrameRateChange f) - : content (c) - , decoder (d) - , frc (f) - {} - - boost::shared_ptr content; - boost::shared_ptr decoder; - FrameRateChange frc; + PlayerImage (boost::shared_ptr, Crop, dcp::Size, dcp::Size, Scaler const *); + + void set_subtitle (boost::shared_ptr, Position); + + boost::shared_ptr image (); + +private: + boost::shared_ptr _in; + Crop _crop; + dcp::Size _inter_size; + dcp::Size _out_size; + Scaler const * _scaler; + boost::shared_ptr _subtitle_image; + Position _subtitle_position; }; /** @class Player