diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-21 17:38:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-21 17:38:50 +0100 |
| commit | f1bf21a9c2581591ab80bfc997a22b93046f8c56 (patch) | |
| tree | 7c0db304d310e656fcaf4766a6c3b27e98df25b1 /src/lib/ffmpeg_examiner.h | |
| parent | 01791aac0b11e9f296cd31a7803e287203bd8355 (diff) | |
Split examiner parts off decoder.
Diffstat (limited to 'src/lib/ffmpeg_examiner.h')
| -rw-r--r-- | src/lib/ffmpeg_examiner.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h new file mode 100644 index 000000000..875451507 --- /dev/null +++ b/src/lib/ffmpeg_examiner.h @@ -0,0 +1,48 @@ +/* + Copyright (C) 2013 Carl Hetherington <cth@carlh.net> + + 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 + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include "ffmpeg.h" +#include "video_examiner.h" + +class FFmpegAudioStream; +class FFmpegSubtitleStream; + +class FFmpegExaminer : public FFmpeg, public VideoExaminer +{ +public: + FFmpegExaminer (boost::shared_ptr<const FFmpegContent>); + + float video_frame_rate () const; + libdcp::Size video_size () const; + ContentVideoFrame video_length () const; + + std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const { + return _subtitle_streams; + } + + std::vector<boost::shared_ptr<FFmpegAudioStream> > audio_streams () const { + return _audio_streams; + } + +private: + std::string stream_name (AVStream* s) const; + + std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams; + std::vector<boost::shared_ptr<FFmpegAudioStream> > _audio_streams; +}; |
