diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-09 13:58:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-09 13:58:49 +0100 |
| commit | 9fa69f9a195c102fb32f285527e8171378c9b6c0 (patch) | |
| tree | ad0431243d4ae5ff7544f66452453da047d7ffe3 /src/lib/dcp_transcoder.h | |
| parent | 76ee27e08be5bf8e4a9eeb4fef09de307c6a6aa8 (diff) | |
Missing files.
Diffstat (limited to 'src/lib/dcp_transcoder.h')
| -rw-r--r-- | src/lib/dcp_transcoder.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/dcp_transcoder.h b/src/lib/dcp_transcoder.h new file mode 100644 index 000000000..84f538bf1 --- /dev/null +++ b/src/lib/dcp_transcoder.h @@ -0,0 +1,60 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#include "types.h" +#include "player_subtitles.h" +#include "transcoder.h" +#include <boost/weak_ptr.hpp> + +class Film; +class Encoder; +class Player; +class Writer; +class Job; +class PlayerVideo; +class AudioBuffers; + +/** @class DCPTranscoder */ +class DCPTranscoder : public Transcoder +{ +public: + DCPTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job); + + void go (); + + float current_encoding_rate () const; + int video_frames_enqueued () const; + + /** @return true if we are in the process of calling Encoder::process_end */ + bool finishing () const { + return _finishing; + } + +private: + + void video (boost::shared_ptr<PlayerVideo>, DCPTime); + void audio (boost::shared_ptr<AudioBuffers>, DCPTime); + void subtitle (PlayerSubtitles, DCPTimePeriod); + + boost::shared_ptr<Writer> _writer; + boost::shared_ptr<Encoder> _encoder; + bool _finishing; + bool _non_burnt_subtitles; +}; |
