X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.h;h=6805dc8c7f08be630073fd640f5bcacb38277407;hb=74fe68e5895654e27a7cf8097917c1e95fa89519;hp=9151d20c5ac163d4a1ed882374782af96cd2eb2a;hpb=c98c87afe29d9ef74bdced8a9c96d7752f3fe80f;p=dcpomatic.git diff --git a/src/lib/player.h b/src/lib/player.h index 9151d20c5..6805dc8c7 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -40,9 +40,11 @@ class Playlist; class AudioContent; class Piece; class Image; -class DCPVideo; class Decoder; - +class Resampler; +class PlayerVideoFrame; +class ImageProxy; + class PlayerStatistics { public: @@ -75,28 +77,6 @@ public: void dump (boost::shared_ptr) const; }; -/** 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: - 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 * @brief A class which can `play' a Playlist. */ @@ -105,14 +85,11 @@ class Player : public boost::enable_shared_from_this, public boost::nonc public: Player (boost::shared_ptr, boost::shared_ptr); - std::list > get_video (DCPTime time, bool accurate); + std::list > get_video (DCPTime time, bool accurate); boost::shared_ptr get_audio (DCPTime time, DCPTime length, bool accurate); void set_video_container_size (dcp::Size); void set_approximate_size (); - void set_burn_subtitles (bool burn) { - _burn_subtitles = burn; - } PlayerStatistics const & statistics () const; @@ -142,14 +119,7 @@ private: VideoFrame dcp_to_content_video (boost::shared_ptr piece, DCPTime t) const; AudioFrame dcp_to_content_audio (boost::shared_ptr piece, DCPTime t) const; ContentTime dcp_to_content_subtitle (boost::shared_ptr piece, DCPTime t) const; - boost::shared_ptr black_dcp_video (DCPTime) const; - boost::shared_ptr content_to_dcp ( - boost::shared_ptr content, - ContentVideo content_video, - std::list > subs, - DCPTime time, - dcp::Size image_size - ) const; + boost::shared_ptr black_player_video_frame () const; /** @return Pieces of content type C that overlap a specified time range in the DCP */ template