summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-27 01:44:20 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-27 01:44:20 +0100
commit1d2a51bdc8315fa7283be329669860e435a1513f (patch)
tree7f1ccaf99bd89f61377f36405f12178586d65f8f /src/lib/image.cc
parent886c256f532e0f43bcd7f6f9924147c151293cab (diff)
Use enum class for VideoRange.
Diffstat (limited to 'src/lib/image.cc')
-rw-r--r--src/lib/image.cc4
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
);