From 62f9b78a2eb5f0fc6b9028264bac6ad501d83309 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 25 May 2021 00:57:16 +0200 Subject: Move video level conversion for RGB from FFmpegImageProxy to Image. Since FFmpeg does not do video level conversion for RGB sources when we (sort of) ask it to in Image::crop_scale_window() it seems to make more sense to compensate for that by calling full_to_video_range() in the same place (rather than in FFmpegImageProxy). --- src/lib/image_examiner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/image_examiner.cc') diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index acbf55696..89d1517ce 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -66,7 +66,7 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrpath(0), content->video->range()); + FFmpegImageProxy proxy(content->path(0)); _video_size = proxy.image().image->size(); } -- cgit v1.2.3