X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.h;h=0334a30e203f4064d8ef4d0ea788eb38d0a2ef2a;hb=6bf1fecd1064978bcadd11b8cd56a5b8d9a132a3;hp=2859e23450380f7f9435a31f676cf5aa2ca1c58f;hpb=05654d0e1799746a9df3ccab040c92e0ed825cac;p=dcpomatic.git diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 2859e2345..0334a30e2 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -21,25 +21,25 @@ * @brief A decoder using FFmpeg to decode content. */ -#include -#include -#include -#include -#include -#include -extern "C" { -#include -} #include "util.h" #include "decoder.h" #include "video_decoder.h" #include "audio_decoder.h" #include "subtitle_decoder.h" #include "ffmpeg.h" +extern "C" { +#include +} +#include +#include +#include +#include +#include +#include class Log; class FilterGraph; -class ffmpeg_pts_offset_test; +struct ffmpeg_pts_offset_test; /** @class FFmpegDecoder * @brief A decoder using FFmpeg to decode content. @@ -50,7 +50,7 @@ public: FFmpegDecoder (boost::shared_ptr, boost::shared_ptr); private: - friend class ::ffmpeg_pts_offset_test; + friend struct ::ffmpeg_pts_offset_test; void seek (ContentTime time, bool); bool pass (); @@ -66,12 +66,7 @@ private: void maybe_add_subtitle (); boost::shared_ptr deinterleave_audio (uint8_t** data, int size); - bool seek_overrun_finished (ContentTime, boost::optional, boost::optional) const; - bool seek_final_finished (int, int) const; - int minimal_run (boost::function, boost::optional, int)>); - void seek_and_flush (ContentTime); - - bool has_subtitle_during (ContentTimePeriod) const; + std::list subtitles_during (ContentTimePeriod, bool starting) const; boost::shared_ptr _log;