ffmpeg/tests/ref
Ramiro Polla 44bfe0da61 swscale/range_convert: fix truncation bias in range conversion
384fe39623 introduced a regression in the
range conversion offset calculation, resulting in a slight green tint
in full-range RGB to YUV conversions of grayscale values.

The offset being calculated was not taking into consideration a bias
needed for correctly rounding the result from the multiplication stage,
leading to a truncated value.

Fixes issue #11646.

(cherry picked from commit 4bee010844)
2025-11-06 21:57:08 +01:00
..
acodec avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
fate swscale/range_convert: fix truncation bias in range conversion 2025-11-06 21:57:08 +01:00
lavf swscale/range_convert: fix truncation bias in range conversion 2025-11-06 21:57:08 +01:00
lavf-fate fate/lavf-container: add test for APV in MP4 2025-07-18 14:55:34 -03:00
pixfmt swscale/range_convert: fix truncation bias in range conversion 2025-11-06 21:57:08 +01:00
seek swscale/range_convert: fix truncation bias in range conversion 2025-11-06 21:57:08 +01:00
vsynth swscale/range_convert: fix truncation bias in range conversion 2025-11-06 21:57:08 +01:00