Rename ReelMXF -> ReelFileAsset.
[libdcp.git] / src / atmos_asset.h
index 2e99e18b3f8ec33eefc79248938096ec6d957794..7ee55d922223b8f144ae5690255f62898a96800b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
+/** @file  src/atmos_asset.h
+ *  @brief AtmosAsset class
+ */
+
+
 #ifndef LIBDCP_ATMOS_ASSET_H
 #define LIBDCP_ATMOS_ASSET_H
 
+
 #include "asset.h"
 #include "mxf.h"
+#include "atmos_asset_reader.h"
+
 
 namespace dcp {
 
+
+class AtmosAssetWriter;
+
+
+/** @class AtmosAsset
+ *  @brief An asset of Dolby ATMOS sound data
+ */
 class AtmosAsset : public Asset, public MXF
 {
 public:
+       AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version);
        explicit AtmosAsset (boost::filesystem::path file);
 
-       std::string pkl_type (Standard) const;
+       std::shared_ptr<AtmosAssetWriter> start_write (boost::filesystem::path file);
+       std::shared_ptr<AtmosAssetReader> start_read () const;
+
+       static std::string static_pkl_type (Standard);
+       std::string pkl_type (Standard s) const {
+               return static_pkl_type (s);
+       }
 
        Fraction edit_rate () const {
                return _edit_rate;
@@ -69,14 +92,28 @@ public:
                return _max_object_count;
        }
 
+       std::string atmos_id () const {
+               return _atmos_id;
+       }
+
+       int atmos_version () const {
+               return _atmos_version;
+       }
+
 private:
+       friend class AtmosAssetWriter;
+
        Fraction _edit_rate;
-       int64_t _intrinsic_duration;
-       int _first_frame;
-       int _max_channel_count;
-       int _max_object_count;
+       int64_t _intrinsic_duration = 0;
+       int _first_frame = 0;
+       int _max_channel_count = 0;
+       int _max_object_count = 0;
+       std::string _atmos_id;
+       int _atmos_version = 0;
 };
 
+
 }
 
+
 #endif