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;
Frame _video_length;
bool _need_video_length;
- boost::optional<ContentTime> _last_subtitle_start;
+ struct SubtitleStart
+ {
+ SubtitleStart (std::string id_, ContentTime time_)
+ : id (id_)
+ , time (time_)
+ {}
+
+ std::string id;
+ ContentTime time;
+ };
+
+ typedef std::map<boost::shared_ptr<FFmpegSubtitleStream>, boost::optional<SubtitleStart> > LastSubtitleMap;
+ LastSubtitleMap _last_subtitle_start;
};