This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 987b6193bd8b781eeaeaf5a47572f4bde66430a8
Author:     Jun Zhao <[email protected]>
AuthorDate: Wed Oct 28 11:00:39 2026 +0800
Commit:     Jun Zhao <[email protected]>
CommitDate: Thu Oct 29 03:10:43 2026 +0000

    checkasm/sw_range_convert: include neutral chroma samples
    
    Include the neutral chroma center in the inputs compared between the C
    and optimized range-conversion implementations at every tested depth.
    
    Signed-off-by: Jun Zhao <[email protected]>
---
 tests/checkasm/sw_range_convert.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/checkasm/sw_range_convert.c 
b/tests/checkasm/sw_range_convert.c
index 3246a3170f..41135773d5 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -170,6 +170,7 @@ static void check_chrConvertRange(int from)
         int src_shift = bit_depth <= 14 ? 15 - bit_depth : 19 - bit_depth;
         int mpeg_min = 16 << (bit_depth - 8);
         int mpeg_max = 240 << (bit_depth - 8);
+        int chr_center = 128 << (bit_depth - 8);
         int jpeg_max = (1 << bit_depth) - 1;
         sws->src_format = pix_fmt;
         sws->dst_format = pix_fmt;
@@ -186,12 +187,14 @@ static void check_chrConvertRange(int from)
                         dstU1_32[1] = dstU0_32[1] = mpeg_max << src_shift;
                     }
                     dstU1_32[2] = dstU0_32[2] = -1;
+                    dstU1_32[3] = dstU0_32[3] = chr_center << src_shift;
                 } else {
                     if (!from) {
                         dstU1[0] = dstU0[0] = mpeg_min << src_shift;
                         dstU1[1] = dstU0[1] = mpeg_max << src_shift;
                     }
                     dstU1[2] = dstU0[2] = -1;
+                    dstU1[3] = dstU0[3] = chr_center << src_shift;
                 }
                 call_ref(dstU0, dstV0, width,
                          c->chrConvertRange_coeff, c->chrConvertRange_offset);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to