X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_content.h;h=da8152c0d92816de44a576f718a15f9f94c5db24;hb=6de35d058821acc092d2aae75543024a97026b8a;hp=367c30103e77812927878d0f2f31062e995cc647;hpb=e6c67f4aac2ca9afc275b6f13058e1e46f2cecc3;p=dcpomatic.git diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h index 367c30103..da8152c0d 100644 --- a/src/lib/ffmpeg_content.h +++ b/src/lib/ffmpeg_content.h @@ -33,7 +33,7 @@ struct AVStream; class Filter; class FFmpegSubtitleStream; class FFmpegAudioStream; -class ffmpeg_pts_offset_test; +struct ffmpeg_pts_offset_test; class FFmpegContentProperty : public VideoContentProperty { @@ -73,6 +73,9 @@ public: void set_audio_mapping (AudioMapping); boost::filesystem::path audio_analysis_path () const; + /* SubtitleContent */ + bool has_subtitles () const; + void set_filters (std::vector const &); std::vector > subtitle_streams () const { @@ -108,10 +111,10 @@ public: return _first_video; } - bool has_subtitle_during (ContentTimePeriod) const; + std::list subtitles_during (ContentTimePeriod, bool starting) const; private: - friend class ffmpeg_pts_offset_test; + friend struct ffmpeg_pts_offset_test; std::vector > _subtitle_streams; boost::shared_ptr _subtitle_stream;