summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_transcoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-10 11:54:19 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-10 11:54:19 +0100
commitd8ea1796f34ff894b148a0af78c0a547e0496ee1 (patch)
tree2a3177217dee39c1a4dbe795c21369236e7a5533 /src/lib/ffmpeg_transcoder.h
parent7f40b703e8a83f07a1c8bffb45cd40ebcc238418 (diff)
Rename some classes.
Diffstat (limited to 'src/lib/ffmpeg_transcoder.h')
-rw-r--r--src/lib/ffmpeg_transcoder.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/lib/ffmpeg_transcoder.h b/src/lib/ffmpeg_transcoder.h
deleted file mode 100644
index a42de86b0..000000000
--- a/src/lib/ffmpeg_transcoder.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- Copyright (C) 2017 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/>.
-
-*/
-
-#ifndef DCPOMATIC_FFMPEG_TRANSCODER_H
-#define DCPOMATIC_FFMPEG_TRANSCODER_H
-
-#include "transcoder.h"
-#include "event_history.h"
-extern "C" {
-#include <libavcodec/avcodec.h>
-#include <libavformat/avformat.h>
-}
-
-class FFmpegTranscoder : public Transcoder
-{
-public:
- enum Format
- {
- FORMAT_PRORES,
- FORMAT_H264
- };
-
- FFmpegTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job, boost::filesystem::path output, Format format);
-
- void go ();
-
- float current_rate () const;
- Frame frames_done () const;
- bool finishing () const {
- return false;
- }
-
-private:
- void video (boost::shared_ptr<PlayerVideo>, DCPTime);
- void audio (boost::shared_ptr<AudioBuffers>, DCPTime);
- void subtitle (PlayerSubtitles, DCPTimePeriod);
-
- AVCodecContext* _codec_context;
- AVFormatContext* _format_context;
- AVStream* _video_stream;
- AVPixelFormat _pixel_format;
- std::string _codec_name;
-
- mutable boost::mutex _mutex;
- DCPTime _last_time;
-
- EventHistory _history;
-
- boost::filesystem::path _output;
-};
-
-#endif