Detect soft 2:3 pulldown (telecine) files and decode them at 23.976.
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index 5cd70d979cd6722f22fdebc3a22bef7f28a64c12..9ff5a79e7a6d79614c2812aa99dc1e0d6aa68c5b 100644 (file)
@@ -71,8 +71,22 @@ public:
 
        boost::optional<int> bits_per_pixel () const;
 
+       boost::optional<double> rotation () const {
+               return _rotation;
+       }
+
+       bool pulldown () const {
+               return _pulldown;
+       }
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+       boost::optional<std::string> id () const {
+               return _id;
+       }
+#endif
+
 private:
-       void video_packet (AVCodecContext *);
+       void video_packet (AVCodecContext *, std::string& temporal_reference);
        void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>);
 
        std::string stream_name (AVStream* s) const;
@@ -88,6 +102,9 @@ private:
        Frame _video_length;
        bool _need_video_length;
 
+       boost::optional<double> _rotation;
+       bool _pulldown;
+
        struct SubtitleStart
        {
                SubtitleStart (std::string id_, bool image_, ContentTime time_)