diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-27 23:20:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:17 +0100 |
| commit | 1f4f56b4d5e3d08be5ff823c9890a8b4e0af5967 (patch) | |
| tree | c73cd840eea3b320c3307f4dcd3449fc4e6f1bd1 /src/lib/image_content.cc | |
| parent | f015d6b314a6bfc8534e3e2c331d6edd5f817e25 (diff) | |
Separate some things out from the examination process.
Diffstat (limited to 'src/lib/image_content.cc')
| -rw-r--r-- | src/lib/image_content.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index 8d3092196..d7f66672e 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -19,6 +19,7 @@ */ +#include "config.h" #include "exceptions.h" #include "film.h" #include "frame_rate_change.h" @@ -143,6 +144,15 @@ ImageContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bool tol } +void +ImageContent::prepare_for_add_to_film(shared_ptr<const Film> film) +{ + if (still()) { + video->set_length(Config::instance()->default_still_length() * video_frame_rate().get_value_or(film->video_frame_rate())); + } +} + + DCPTime ImageContent::full_length (shared_ptr<const Film> film) const { |
