summaryrefslogtreecommitdiff
path: root/src/lib/film.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-11 22:42:32 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-12 13:13:36 +0200
commit2b870d03ce118f9d9146f53658d3a9a2e2626600 (patch)
tree8766a84cb75e7c7e954bfa9b7a4b5c5123cdd6d6 /src/lib/film.h
parent186654cc20ef302abed1a2ddfa01fc1fa3af81fa (diff)
Guess DCP container size and resolution when content is added
or removed such that there is one piece of video content left in the project. Container size and resolution are never again guessed once the user has set them to something.
Diffstat (limited to 'src/lib/film.h')
-rw-r--r--src/lib/film.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/film.h b/src/lib/film.h
index 40d366f8f..b03b0258e 100644
--- a/src/lib/film.h
+++ b/src/lib/film.h
@@ -351,8 +351,8 @@ public:
void move_content_earlier (boost::shared_ptr<Content>);
void move_content_later (boost::shared_ptr<Content>);
void set_dcp_content_type (DCPContentType const *);
- void set_container (Ratio const *);
- void set_resolution (Resolution);
+ void set_container (Ratio const *, bool user_explicit = true);
+ void set_resolution (Resolution, bool user_explicit = true);
void set_signed (bool);
void set_encrypted (bool);
void set_key (dcp::Key key);
@@ -409,6 +409,7 @@ private:
void maybe_add_content (boost::weak_ptr<Job>, boost::weak_ptr<Content>, bool disable_audio_analysis);
void audio_analysis_finished ();
void check_settings_consistency ();
+ void maybe_set_container_and_resolution ();
static std::string const metadata_file;
@@ -462,6 +463,8 @@ private:
bool _reencode_j2k;
/** true if the user has ever explicitly set the video frame rate of this film */
bool _user_explicit_video_frame_rate;
+ bool _user_explicit_container;
+ bool _user_explicit_resolution;
std::map<dcp::Marker, dcpomatic::DCPTime> _markers;
std::vector<dcp::Rating> _ratings;
std::string _content_version;