diff options
| -rw-r--r-- | src/lib/image.cc | 2 | ||||
| -rw-r--r-- | src/wx/colour_conversion_editor.cc | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 2ac84e26c..d84755df3 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -240,6 +240,7 @@ Image::crop_scale_window ( EnumIndexedVector<int, dcp::YUVToRGB> lut; lut[dcp::YUVToRGB::REC601] = SWS_CS_ITU601; lut[dcp::YUVToRGB::REC709] = SWS_CS_ITU709; + lut[dcp::YUVToRGB::REC2020] = SWS_CS_BT2020; /* The 3rd parameter here is: 0 -> source range MPEG (i.e. "video", 16-235) @@ -350,6 +351,7 @@ Image::scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_fo EnumIndexedVector<int, dcp::YUVToRGB> lut; lut[dcp::YUVToRGB::REC601] = SWS_CS_ITU601; lut[dcp::YUVToRGB::REC709] = SWS_CS_ITU709; + lut[dcp::YUVToRGB::REC2020] = SWS_CS_BT2020; /* The 3rd parameter here is: 0 -> source range MPEG (i.e. "video", 16-235) diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc index b7c054e27..4cc9aaa9e 100644 --- a/src/wx/colour_conversion_editor.cc +++ b/src/wx/colour_conversion_editor.cc @@ -118,6 +118,7 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv) _yuv_to_rgb = new wxChoice (this, wxID_ANY); _yuv_to_rgb->Append (_("Rec. 601")); _yuv_to_rgb->Append (_("Rec. 709")); + _yuv_to_rgb->Append (_("Rec. 2020")); table->Add (_yuv_to_rgb, wxGBPosition (r, 1)); ++r; |
