X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscoder.h;h=25b2ef90841c68a23dd077eb12d41d0c4a282969;hb=8102046b2f29e0c7b234c29bf204b056cb30e64f;hp=97ecaabfc2a54b9ff48ae7dd8d7640da59fd489c;hpb=f861018389acd9d277fe34d7621182b9b54f977f;p=dcpomatic.git diff --git a/src/lib/transcoder.h b/src/lib/transcoder.h index 97ecaabfc..25b2ef908 100644 --- a/src/lib/transcoder.h +++ b/src/lib/transcoder.h @@ -17,47 +17,33 @@ */ -/** @file src/transcoder.h - * - * A decoder is selected according to the content type, and the encoder can be specified - * as a parameter to the constructor. - */ +#include "types.h" +#include "encoder.h" class Film; -class Job; class Encoder; -class Matcher; class VideoFilter; -class Gain; -class DelayLine; class Player; -class Trimmer; - -/** @class Transcoder - * - * A decoder is selected according to the content type, and the encoder can be specified - * as a parameter to the constructor. - */ -class Transcoder + +/** @class Transcoder */ +class Transcoder : public boost::noncopyable { public: - Transcoder ( - boost::shared_ptr f, - boost::shared_ptr j - ); + Transcoder (boost::shared_ptr, boost::shared_ptr); void go (); float current_encoding_rate () const; int video_frames_out () const; -protected: - /** A Job that is running this Transcoder, or 0 */ - boost::shared_ptr _job; + /** @return true if we are in the process of calling Encoder::process_end */ + bool finishing () const { + return _finishing; + } + +private: + boost::shared_ptr _film; boost::shared_ptr _player; boost::shared_ptr _encoder; - boost::shared_ptr _matcher; - boost::shared_ptr _delay_line; - boost::shared_ptr _gain; - boost::shared_ptr _trimmer; + bool _finishing; };