X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscoder.h;h=b3c8f888b1106dfd4ffb6753ae247672ded2fff4;hb=5f1046a2164fff00a6fc74aecf4cacbca531d415;hp=8d34af9481ebc8fc34b72c71000026dcbe5abf59;hpb=127672223cca569986e35c91265e269ed5a6561c;p=dcpomatic.git diff --git a/src/lib/transcoder.h b/src/lib/transcoder.h index 8d34af948..b3c8f888b 100644 --- a/src/lib/transcoder.h +++ b/src/lib/transcoder.h @@ -17,26 +17,21 @@ */ +#include "types.h" + /** @file src/transcoder.h - * @brief A class which takes a Film and some Options, then uses those to transcode the film. * * A decoder is selected according to the content type, and the encoder can be specified * as a parameter to the constructor. */ -#include "decoder_factory.h" - class Film; class Job; class Encoder; -class Matcher; class VideoFilter; -class Gain; -class DelayLine; -class Playlist; +class Player; /** @class Transcoder - * @brief A class which takes a Film and some Options, then uses those to transcode the film. * * A decoder is selected according to the content type, and the encoder can be specified * as a parameter to the constructor. @@ -45,19 +40,18 @@ class Transcoder { public: Transcoder ( - boost::shared_ptr f, - DecodeOptions o, + boost::shared_ptr f, boost::shared_ptr j ); void go (); -protected: + float current_encoding_rate () const; + int video_frames_out () const; + +private: /** A Job that is running this Transcoder, or 0 */ boost::shared_ptr _job; - boost::shared_ptr _playlist; + boost::shared_ptr _player; boost::shared_ptr _encoder; - boost::shared_ptr _matcher; - boost::shared_ptr _delay_line; - boost::shared_ptr _gain; };