Add in a language team.
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index 96720b280bfc869269de92b041b83b4ba2b32d3e..f64ea8d799dd51af807eb6cfbb29aee374cb5d95 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
 #include "video_examiner.h"
 #include <boost/optional.hpp>
 
-class AVStream;
+struct AVStream;
 
 class FFmpegAudioStream;
 class FFmpegSubtitleStream;
@@ -35,6 +35,7 @@ public:
        dcp::Size video_size () const;
        Frame video_length () const;
        boost::optional<double> sample_aspect_ratio () const;
+       bool yuv () const;
 
        std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
                return _subtitle_streams;
@@ -85,5 +86,20 @@ private:
        Frame _video_length;
        bool _need_video_length;
 
-       boost::optional<ContentTime> _last_subtitle_start;
+       struct SubtitleStart
+       {
+               SubtitleStart (std::string id_, bool image_, ContentTime time_)
+                       : id (id_)
+                       , image (image_)
+                       , time (time_)
+               {}
+
+               std::string id;
+               /** true if it's an image subtitle, false for text */
+               bool image;
+               ContentTime time;
+       };
+
+       typedef std::map<boost::shared_ptr<FFmpegSubtitleStream>, boost::optional<SubtitleStart> > LastSubtitleMap;
+       LastSubtitleMap _last_subtitle_start;
 };