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/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/writer.h')
| -rw-r--r-- | src/lib/writer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h index d09b06264..71e04df96 100644 --- a/src/lib/writer.h +++ b/src/lib/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. @@ -22,10 +22,12 @@ * @brief Writer class. */ +#include "atmos_metadata.h" #include "types.h" #include "player_text.h" #include "exception_store.h" #include "dcp_text_track.h" +#include <dcp/atmos_frame.h> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #include <boost/thread.hpp> @@ -111,6 +113,7 @@ public: void write (PlayerText text, TextType type, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod period); void write (std::list<boost::shared_ptr<dcpomatic::Font> > fonts); void write (ReferencedReelAsset asset); + void write (boost::shared_ptr<const dcp::AtmosFrame> atmos, dcpomatic::DCPTime time, AtmosMetadata metadata); void finish (); void set_encoder_threads (int threads); @@ -130,6 +133,7 @@ private: std::vector<ReelWriter>::iterator _audio_reel; std::vector<ReelWriter>::iterator _subtitle_reel; std::map<DCPTextTrack, std::vector<ReelWriter>::iterator> _caption_reels; + std::vector<ReelWriter>::iterator _atmos_reel; /** our thread */ boost::thread _thread; |
