summaryrefslogtreecommitdiff
path: root/src/lib/reel_writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 23:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 23:15:26 +0100
commit49fc9b8c4282d0e973ac1f4e31357735cf6be218 (patch)
tree45c8818a324d5628d70de82e80aed2441ea06b7e /src/lib/reel_writer.h
parentf4964573a60155545e02cbbebc47199f7480cf14 (diff)
Add reel index/count to DCP filename format.
Diffstat (limited to 'src/lib/reel_writer.h')
-rw-r--r--src/lib/reel_writer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h
index 9dc740171..a80f51dc2 100644
--- a/src/lib/reel_writer.h
+++ b/src/lib/reel_writer.h
@@ -47,7 +47,7 @@ namespace dcp {
class ReelWriter
{
public:
- ReelWriter (boost::shared_ptr<const Film> film, DCPTimePeriod period, boost::shared_ptr<Job> job);
+ ReelWriter (boost::shared_ptr<const Film> film, DCPTimePeriod period, boost::shared_ptr<Job> job, int reel_index, int reel_count);
void write (boost::optional<dcp::Data> encoded, Frame frame, Eyes eyes);
void fake_write (Frame frame, Eyes eyes, int size);
@@ -102,6 +102,10 @@ private:
Eyes _last_written_eyes;
/** the number of audio frames that have been written to the reel */
int _total_written_audio_frames;
+ /** index of this reel within the DCP (starting from 0) */
+ int _reel_index;
+ /** number of reels in the DCP */
+ int _reel_count;
boost::shared_ptr<dcp::PictureAsset> _picture_asset;
boost::shared_ptr<dcp::PictureAssetWriter> _picture_asset_writer;