diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-23 08:07:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-23 08:07:38 +0100 |
| commit | e8819ad7580f25eea7ca3c59cf0a3979d76a6b44 (patch) | |
| tree | 1ecec7476192945084a822916c1d565f35054ade /src/lib/ffmpeg_decoder.h | |
| parent | 929b4c37eaf9593892f61df80309a8c8ad6c05a0 (diff) | |
Some more tidying up.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
| -rw-r--r-- | src/lib/ffmpeg_decoder.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 3b629e3ae..dbcfe3be0 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -62,16 +62,22 @@ public: FFmpegDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const FFmpegContent>, bool video, bool audio, bool subtitles); ~FFmpegDecoder (); - bool pass (); - bool seek (Time); - bool seek_back (); - bool seek_forward (); + /* Decoder */ + + void pass (); + void seek (Time); + void seek_back (); + void seek_forward (); Time next () const; + /* VideoDecoder */ + float video_frame_rate () const; - libdcp::Size native_size () const; + libdcp::Size video_size () const; ContentVideoFrame video_length () const; + /* FFmpegDecoder */ + std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const { return _subtitle_streams; } @@ -93,7 +99,7 @@ private: PixelFormat pixel_format () const; AVSampleFormat audio_sample_format () const; int bytes_per_audio_sample () const; - bool do_seek (Time, bool, bool); + void do_seek (Time, bool, bool); void setup_general (); void setup_video (); |
