X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscode_job.h;h=23a856069d15b6529be66aa6cfebd4f3355c8bfc;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=97f655e15c212e78aba5ad9f6564dbfc84f9f7e9;hpb=1f2bc4d8f3601ad1e12b94f37b3889fcd003509b;p=dcpomatic.git diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h index 97f655e15..23a856069 100644 --- a/src/lib/transcode_job.h +++ b/src/lib/transcode_job.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,12 +21,10 @@ * @brief A job which transcodes from one format to another. */ -#include #include "job.h" +#include -class Encoder; -class DecodeOptions; -class EncodeOptions; +class Transcoder; /** @class TranscodeJob * @brief A job which transcodes from one format to another. @@ -34,17 +32,15 @@ class EncodeOptions; class TranscodeJob : public Job { public: - TranscodeJob (boost::shared_ptr f, boost::shared_ptr od, boost::shared_ptr oe, boost::shared_ptr req); - + TranscodeJob (boost::shared_ptr); + std::string name () const; + std::string json_name () const; void run (); std::string status () const; -protected: +private: int remaining_time () const; -private: - boost::shared_ptr _decode_opt; - boost::shared_ptr _encode_opt; - boost::shared_ptr _encoder; + boost::shared_ptr _transcoder; };