X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscode_job.h;h=030e22bef092dea8bc67b794bea4bef8668a042f;hb=b88874e34d429b4624965da09edfde3a56329e38;hp=14ad693c370975a2ca0b0523eb948882240d600a;hpb=67a68bd971ebe1b35daa3f75873b4ccb53c00ba0;p=dcpomatic.git diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h index 14ad693c3..030e22bef 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-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,30 +18,36 @@ */ + /** @file src/transcode_job.h * @brief A job which transcodes from one format to another. */ + #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 film); + explicit TranscodeJob (std::shared_ptr film); + ~TranscodeJob (); + + std::string name () const override; + std::string json_name () const override; + void run () override; + std::string status () const override; - std::string name () const; - std::string json_name () const; - void run (); - std::string status () const; + void set_encoder (std::shared_ptr t); private: - int remaining_time () const; + int remaining_time () const override; - boost::shared_ptr _transcoder; + std::shared_ptr _encoder; };