X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.h;h=990d643a704d6ab5223cdb2bebc9467d736f18e6;hb=ea35bff04d7a96f44ea595951bb0c0dd54c8ee52;hp=60217b07372f3c2da65bc225462cec03deb493e7;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 60217b073..990d643a7 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -22,24 +22,19 @@ */ #include "util.h" -#include "decoder.h" #include "video_decoder.h" #include "audio_decoder.h" #include "subtitle_decoder.h" #include "ffmpeg.h" -#include "rect.h" extern "C" { #include } #include -#include #include #include -#include -#include class Log; -class FilterGraph; +class VideoFilterGraph; class FFmpegAudioStream; struct ffmpeg_pts_offset_test; @@ -49,12 +44,12 @@ struct ffmpeg_pts_offset_test; class FFmpegDecoder : public VideoDecoder, public AudioDecoder, public SubtitleDecoder, public FFmpeg { public: - FFmpegDecoder (boost::shared_ptr, boost::shared_ptr); + FFmpegDecoder (boost::shared_ptr, boost::shared_ptr, bool fast); private: friend struct ::ffmpeg_pts_offset_test; - bool pass (); + bool pass (PassReason, bool accurate); void seek (ContentTime time, bool); void flush (); @@ -66,16 +61,17 @@ private: void decode_subtitle_packet (); void decode_bitmap_subtitle (AVSubtitleRect const * rect, ContentTimePeriod period); + void decode_ass_subtitle (std::string ass, ContentTimePeriod period); void maybe_add_subtitle (); - boost::shared_ptr deinterleave_audio (boost::shared_ptr stream, uint8_t** data, int size); + boost::shared_ptr deinterleave_audio (boost::shared_ptr stream) const; std::list image_subtitles_during (ContentTimePeriod, bool starting) const; std::list text_subtitles_during (ContentTimePeriod, bool starting) const; boost::shared_ptr _log; - std::list > _filter_graphs; + std::list > _filter_graphs; boost::mutex _filter_graphs_mutex; ContentTime _pts_offset;