diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-27 01:44:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-27 01:44:20 +0100 |
| commit | 1d2a51bdc8315fa7283be329669860e435a1513f (patch) | |
| tree | 7f1ccaf99bd89f61377f36405f12178586d65f8f /src/lib/image.cc | |
| parent | 886c256f532e0f43bcd7f6f9924147c151293cab (diff) | |
Use enum class for VideoRange.
Diffstat (limited to 'src/lib/image.cc')
| -rw-r--r-- | src/lib/image.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 3a23d1abb..efe5b3390 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -239,8 +239,8 @@ Image::crop_scale_window ( */ sws_setColorspaceDetails ( scale_context, - sws_getCoefficients (lut[static_cast<int>(yuv_to_rgb)]), video_range == VIDEO_RANGE_VIDEO ? 0 : 1, - sws_getCoefficients (lut[static_cast<int>(yuv_to_rgb)]), out_video_range == VIDEO_RANGE_VIDEO ? 0 : 1, + sws_getCoefficients (lut[static_cast<int>(yuv_to_rgb)]), video_range == VideoRange::VIDEO ? 0 : 1, + sws_getCoefficients (lut[static_cast<int>(yuv_to_rgb)]), out_video_range == VideoRange::VIDEO ? 0 : 1, 0, 1 << 16, 1 << 16 ); |
