summaryrefslogtreecommitdiff
path: root/src/lib/player_video.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/player_video.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/player_video.h')
-rw-r--r--src/lib/player_video.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h
index 6043632c2..0456457db 100644
--- a/src/lib/player_video.h
+++ b/src/lib/player_video.h
@@ -67,8 +67,8 @@ public:
void set_text (PositionImage);
- void prepare (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast);
- boost::shared_ptr<Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const;
+ void prepare (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast);
+ boost::shared_ptr<Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
static AVPixelFormat force (AVPixelFormat, AVPixelFormat);
static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat);
@@ -114,7 +114,7 @@ public:
}
private:
- void make_image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const;
+ void make_image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
boost::shared_ptr<const ImageProxy> _in;
Crop _crop;