[FFmpeg-devel] [PATCH v3] swscale/unscaled: correctly round yuv2yuv when not dithering
Michael Niedermayer
michael at niedermayer.cc
Mon Dec 23 02:04:50 EET 2024
Hi Niklas
On Fri, Dec 20, 2024 at 12:24:05PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
>
> We should at least bias towards the nearest integer, instead of always
> rounding down, when not dithering. This is a bit more correct.
>
> The FATE changes are only in the cases where sws_dither was explicitly set
> to "none", which is exactly as expected.
>
> Signed-off-by: Niklas Haas <git at haasn.dev>
> Sponsored-by: Sovereign Tech Fund
> ---
> libswscale/swscale_unscaled.c | 22 ++++++++++++----------
> tests/ref/pixfmt/yuv444p10-yuv444p | 2 +-
> tests/ref/pixfmt/yuv444p12-yuv444p | 2 +-
> tests/ref/pixfmt/yuv444p12-yuv444p10be | 2 +-
> tests/ref/pixfmt/yuv444p12-yuv444p10le | 2 +-
> 5 files changed, 16 insertions(+), 14 deletions(-)
should be ok
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241223/4b0eb612/attachment.sig>
More information about the ffmpeg-devel
mailing list