diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-28 23:34:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-29 11:58:06 +0100 |
| commit | 1db0293ad36605da9ca8daa8736ef581f4f6a34e (patch) | |
| tree | fb613032d7f8a1712cf10f99ebbf6215e4145c5a /src/lib/reel_writer.h | |
| parent | ec97893127a2d59871d92c9e658b6b1ab3100b40 (diff) | |
Basics of splitting CCAP streams into different assets.
Diffstat (limited to 'src/lib/reel_writer.h')
| -rw-r--r-- | src/lib/reel_writer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index 2e5ad8975..ae64c3ac7 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -22,6 +22,7 @@ #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 <boost/shared_ptr.hpp> @@ -60,7 +61,7 @@ public: void fake_write (Frame frame, Eyes eyes, int size); void repeat_write (Frame frame, Eyes eyes); void write (boost::shared_ptr<const AudioBuffers> audio); - void write (PlayerText text, TextType type, DCPTimePeriod period); + void write (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, DCPTimePeriod period); void finish (); boost::shared_ptr<dcp::Reel> create_reel (std::list<ReferencedReelAsset> const & refs, std::list<boost::shared_ptr<Font> > const & fonts); @@ -113,7 +114,8 @@ private: boost::shared_ptr<dcp::PictureAssetWriter> _picture_asset_writer; boost::shared_ptr<dcp::SoundAsset> _sound_asset; boost::shared_ptr<dcp::SoundAssetWriter> _sound_asset_writer; - boost::shared_ptr<dcp::SubtitleAsset> _text_asset[TEXT_COUNT]; + boost::shared_ptr<dcp::SubtitleAsset> _subtitle_asset; + std::map<DCPTextTrack, boost::shared_ptr<dcp::SubtitleAsset> > _closed_caption_assets; static int const _info_size; }; |
