X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.h;h=65f36a00461b9115ca67fea8e7ee60c60a944ef8;hb=95c48153421b1a6e0d7ca6cf5e67cd7623c03dc7;hp=408ce30a7b731b94fa5e07bf4f53056491a8b2c7;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 408ce30a7..65f36a004 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -47,23 +47,23 @@ class FFmpegDecoder : public FFmpeg, public Decoder public: FFmpegDecoder (boost::shared_ptr film, boost::shared_ptr, bool fast); - bool pass (boost::shared_ptr film); - void seek (boost::shared_ptr film, ContentTime time, bool); + bool pass (); + void seek (dcpomatic::ContentTime time, bool); private: friend struct ::ffmpeg_pts_offset_test; - void flush (boost::shared_ptr film); + void flush (); AVSampleFormat audio_sample_format (boost::shared_ptr stream) const; int bytes_per_audio_sample (boost::shared_ptr stream) const; - bool decode_video_packet (boost::shared_ptr film); - void decode_audio_packet (boost::shared_ptr film); + bool decode_video_packet (); + void decode_audio_packet (); void decode_subtitle_packet (); - void decode_bitmap_subtitle (AVSubtitleRect const * rect, ContentTime from); - void decode_ass_subtitle (std::string ass, ContentTime from); + void decode_bitmap_subtitle (AVSubtitleRect const * rect, dcpomatic::ContentTime from); + void decode_ass_subtitle (std::string ass, dcpomatic::ContentTime from); void maybe_add_subtitle (); boost::shared_ptr deinterleave_audio (boost::shared_ptr stream) const; @@ -71,12 +71,12 @@ private: std::list > _filter_graphs; boost::mutex _filter_graphs_mutex; - ContentTime _pts_offset; - boost::optional _current_subtitle_to; + dcpomatic::ContentTime _pts_offset; + boost::optional _current_subtitle_to; /** true if we have a subtitle which has not had emit_stop called for it yet */ bool _have_current_subtitle; boost::shared_ptr _black_image; - std::vector > _next_time; + std::vector > _next_time; };