summaryrefslogtreecommitdiff
path: root/src/lib/image.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-15 20:47:42 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-16 01:40:36 +0100
commitb057363e69b77119137c0c8b07402828096e03aa (patch)
tree3389d557c0cd8626fd574e51cadd5b17ef8b63f8 /src/lib/image.h
parentc241da6c6db16ed5d73b2f349d69006cba12cf3f (diff)
Make sure we use limited ("video") range data when exporting.
Our export formats all currently use limited range but we weren't making sure data fed to the encoders was limited range. Should fix #1832.
Diffstat (limited to 'src/lib/image.h')
-rw-r--r--src/lib/image.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/image.h b/src/lib/image.h
index c648fda1b..7dd633f61 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -66,7 +66,15 @@ public:
boost::shared_ptr<Image> convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
boost::shared_ptr<Image> scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
boost::shared_ptr<Image> crop_scale_window (
- Crop crop, dcp::Size inter_size, dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, VideoRange video_range, AVPixelFormat out_format, bool aligned, bool fast
+ Crop crop,
+ dcp::Size inter_size,
+ dcp::Size out_size,
+ dcp::YUVToRGB yuv_to_rgb,
+ VideoRange video_range,
+ AVPixelFormat out_format,
+ VideoRange out_video_range,
+ bool aligned,
+ bool fast
) const;
void make_black ();