From d8ea1796f34ff894b148a0af78c0a547e0496ee1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 May 2017 11:54:19 +0100 Subject: Rename some classes. --- src/lib/ffmpeg_transcoder.h | 69 --------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 src/lib/ffmpeg_transcoder.h (limited to 'src/lib/ffmpeg_transcoder.h') 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 - - 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 . - -*/ - -#ifndef DCPOMATIC_FFMPEG_TRANSCODER_H -#define DCPOMATIC_FFMPEG_TRANSCODER_H - -#include "transcoder.h" -#include "event_history.h" -extern "C" { -#include -#include -} - -class FFmpegTranscoder : public Transcoder -{ -public: - enum Format - { - FORMAT_PRORES, - FORMAT_H264 - }; - - FFmpegTranscoder (boost::shared_ptr film, boost::weak_ptr 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, DCPTime); - void audio (boost::shared_ptr, 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 -- cgit v1.2.3