diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-02 18:22:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-02 18:22:01 +0000 |
| commit | 53eb16342d492236aca77e4b73c0911a5d5eec9f (patch) | |
| tree | ff0acccf003299600a42d7c803673b6e07e164dc /src/lib/util.cc | |
| parent | 324278cc8459e4d7d907b03e0748cf1b33f294f4 (diff) | |
Add explanation of the effect of changing frame rate.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 85a04ed17..d1450ccc2 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -960,4 +960,19 @@ FrameRateConversion::FrameRateConversion (float source, int dcp) } change_speed = !about_equal (source * factor(), dcp); + + if (!skip && !repeat && !change_speed) { + explanation = _("DCP and source have the same rate.\n"); + } else { + if (skip) { + explanation = _("DCP will use every other frame of the source.\n"); + } else if (repeat) { + explanation = _("Each source frame will be doubled in the DCP.\n"); + } + + if (change_speed) { + float const pc = (source * factor()) * 100 / dcp; + explanation += String::compose (_("DCP will run at %1%% of the source speed."), pc); + } + } } |
