diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:30:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:42:24 +0200 |
| commit | a0c931b6bfb05b56996a75bbfcf378cd44ef18e1 (patch) | |
| tree | d02d8cb5ef0fd0f8ce0751bf17fab9c98ffd1868 /src/lib/reel_writer.h | |
| parent | cabe0934c60fb6e74bf4c3023bdcb5c68753e5d9 (diff) | |
Make Atmos content work more like other content. Now its MXFsencrypt-atmos
are re-written, meaning that they can be encrypted.
This commit is mostly just for the backend. We also need a fair
few checks/restrictions in the UI:
- any present atmos content dictates the project frame rate
- no mixed edit rates of atmos content
- probably some other things I haven't thought of
Diffstat (limited to 'src/lib/reel_writer.h')
| -rw-r--r-- | src/lib/reel_writer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index 0b5a3dad5..17bfc7ba2 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,12 +18,14 @@ */ +#include "atmos_metadata.h" #include "types.h" #include "dcpomatic_time.h" #include "referenced_reel_asset.h" #include "player_text.h" #include "dcp_text_track.h" #include <dcp/picture_asset_writer.h> +#include <dcp/atmos_asset_writer.h> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> @@ -47,6 +49,7 @@ namespace dcp { class SoundAsset; class SoundAssetWriter; class SubtitleAsset; + class AtmosAsset; class ReelAsset; class Reel; } @@ -68,6 +71,7 @@ public: void repeat_write (Frame frame, Eyes eyes); void write (boost::shared_ptr<const AudioBuffers> audio); void write (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period); + void write (boost::shared_ptr<const dcp::AtmosFrame> atmos, AtmosMetadata metadata); void finish (); boost::shared_ptr<dcp::Reel> create_reel (std::list<ReferencedReelAsset> const & refs, std::list<boost::shared_ptr<dcpomatic::Font> > const & fonts); @@ -115,6 +119,8 @@ private: boost::shared_ptr<dcp::SoundAssetWriter> _sound_asset_writer; boost::shared_ptr<dcp::SubtitleAsset> _subtitle_asset; std::map<DCPTextTrack, boost::shared_ptr<dcp::SubtitleAsset> > _closed_caption_assets; + boost::shared_ptr<dcp::AtmosAsset> _atmos_asset; + boost::shared_ptr<dcp::AtmosAssetWriter> _atmos_asset_writer; static int const _info_size; }; |
