Make Atmos content work more like other content. Now its MXFs
[dcpomatic.git] / src / lib / dcp_examiner.h
index 199ac39851e4229e57949b33e7cd62043e22f771..b4c87596c70e354079937132d289a06ed2ba8a42 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 #include "video_examiner.h"
 #include "audio_examiner.h"
 #include "dcp.h"
+#include <dcp/dcp_time.h>
 
 class DCPContent;
 
 class DCPExaminer : public DCP, public VideoExaminer, public AudioExaminer
 {
 public:
-       explicit DCPExaminer (boost::shared_ptr<const DCPContent>);
+       explicit DCPExaminer (boost::shared_ptr<const DCPContent>, bool tolerant);
 
        bool has_video () const {
                return _has_video;
@@ -55,6 +56,10 @@ public:
                return false;
        }
 
+       VideoRange range () const {
+               return VIDEO_RANGE_FULL;
+       }
+
        std::string name () const {
                return _name;
        }
@@ -114,6 +119,22 @@ public:
                return _reel_lengths;
        }
 
+       std::map<dcp::Marker, dcp::Time> markers () const {
+               return _markers;
+       }
+
+       std::vector<dcp::Rating> ratings () const {
+               return _ratings;
+       }
+
+       std::string content_version () const {
+               return _content_version;
+       }
+
+       bool has_atmos () const {
+               return _has_atmos;
+       }
+
 private:
        boost::optional<double> _video_frame_rate;
        boost::optional<dcp::Size> _video_size;
@@ -136,4 +157,8 @@ private:
        dcp::ContentKind _content_kind;
        std::string _cpl;
        std::list<int64_t> _reel_lengths;
+       std::map<dcp::Marker, dcp::Time> _markers;
+       std::vector<dcp::Rating> _ratings;
+       std::string _content_version;
+       bool _has_atmos;
 };