Cleanup: remove unnecessary explicit.
[dcpomatic.git] / src / lib / image.cc
index 2ac84e26c072d754e2a270b40c906e648c65867c..3aba3ebd535715a820d437cf0859f4b67a162cb9 100644 (file)
@@ -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)
@@ -327,7 +328,7 @@ Image::convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format,
 /** @param out_size Size to scale to.
  *  @param yuv_to_rgb YUVToRGB transform transform to use, if required.
  *  @param out_format Output pixel format.
- *  @param out_aligment Output alignment.
+ *  @param out_alignment Output alignment.
  *  @param fast Try to be fast at the possible expense of quality; at present this means using
  *  fast bilinear rather than bicubic scaling.
  */
@@ -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)