diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-14 00:20:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-14 00:20:38 +0100 |
| commit | 5302f2cda0afd16d714ab898549c7cd278196473 (patch) | |
| tree | 23782619dc1bda435e340eeef458e104e9063548 /src/lib/dcp_content.cc | |
| parent | e8f5bd4725ab4e564be73bc2e63d2bd836033e92 (diff) | |
Give a better reason for not referencing when there is a 2K/4K mismatch.v2.13.61
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 7301e5373..9ff5bb16f 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -559,7 +559,21 @@ DCPContent::can_reference_video (string& why_not) const return false; } - if (film()->frame_size() != video->size()) { + Resolution video_res = RESOLUTION_2K; + if (video->size().width > 2048 || video->size().height > 1080) { + video_res = RESOLUTION_4K; + } + + if (film()->resolution() != video_res) { + if (video_res == RESOLUTION_4K) { + /// TRANSLATORS: this string will follow "Cannot reference this DCP: " + why_not = _("it is 4K and the film is 2K."); + } else { + /// TRANSLATORS: this string will follow "Cannot reference this DCP: " + why_not = _("it is 2K and the film is 4K."); + } + return false; + } else if (film()->frame_size() != video->size()) { /// TRANSLATORS: this string will follow "Cannot reference this DCP: " why_not = _("its video frame size differs from the film's."); return false; |
