X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscode_job.h;h=8240977b9e1de83be715db8e339c9ff0fcbf5058;hb=d1172ffb60ec687ae4ca186cbac0e2add0754789;hp=5419a46f3342985d2cbe91359f5957847473aa49;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h index 5419a46f3..8240977b9 100644 --- a/src/lib/transcode_job.h +++ b/src/lib/transcode_job.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -25,23 +25,26 @@ #include "job.h" #include -class Transcoder; +class Encoder; /** @class TranscodeJob - * @brief A job which transcodes from one format to another. + * @brief A job which transcodes a Film to another format. */ class TranscodeJob : public Job { public: - TranscodeJob (boost::shared_ptr); + explicit TranscodeJob (boost::shared_ptr film); + ~TranscodeJob (); std::string name () const; std::string json_name () const; void run (); std::string status () const; + void set_encoder (boost::shared_ptr t); + private: int remaining_time () const; - boost::shared_ptr _transcoder; + boost::shared_ptr _encoder; };