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

Git pushed a commit to branch master
in repository ffmpeg.

commit 79b637bf99f1427af2f5c76ae68314ff68b75882
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Sat Oct 24 19:53:16 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Wed Oct 28 19:22:28 2026 +0000

    tests/color_utils: check that the ST 428-1 EOTF scales X, Y and Z correctly
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavutil/tests/color_utils.c |  5 +++++
 tests/ref/fate/color_utils    | 10 ++++++++++
 2 files changed, 15 insertions(+)

diff --git a/libavutil/tests/color_utils.c b/libavutil/tests/color_utils.c
index f96955082f..ad41dde273 100644
--- a/libavutil/tests/color_utils.c
+++ b/libavutil/tests/color_utils.c
@@ -128,6 +128,11 @@ int main(int argc, char *argv[])
                     printf("  FAIL\n");
                     return 1;
                 }
+
+                memcpy(L_xyz, tests[i].E_xyz, sizeof(L_xyz));
+                eotf(Lw, 0.0, L_xyz);
+                printf("  ratios X/Y=%.9f Z/Y=%.9f\n",
+                       L_xyz[0] / L_xyz[1], L_xyz[2] / L_xyz[1]);
             }
         } else {
             /* Normal, display-relative RGB curve */
diff --git a/tests/ref/fate/color_utils b/tests/ref/fate/color_utils
index 237c9ac40f..07a61c313e 100644
--- a/tests/ref/fate/color_utils
+++ b/tests/ref/fate/color_utils
@@ -2742,15 +2742,25 @@ trc=bt2020-12 EOTF(10000, 1.5, {0.8}) = {5943.5}
 trc=bt2020-12 EOTF(10000, 1.5, {0.9}) = {7818.66}
 trc=bt2020-12 EOTF(10000, 1.5, {1}) = {10000}
 trc=smpte428 EOTF(48.024, 0.024012, {0.0925519, 0.0967033, 0.0949939}) = 
{0.13158, 0.144579 0.139116}, expected Y=0.140000
+  ratios X/Y=0.892184066 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.185348, 0.193407, 0.189988}) = 
{0.678424, 0.754996 0.721874}, expected Y=0.750000
+  ratios X/Y=0.895247558 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.2779, 0.29011, 0.284982}) = {1.89984, 
2.12172 2.02667}, expected Y=2.120000
+  ratios X/Y=0.894225676 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.370696, 0.386813, 0.379976}) = 
{3.99162, 4.45587 4.25505}, expected Y=4.450000
+  ratios X/Y=0.895247558 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.463248, 0.483516, 0.474969}) = 
{7.10669, 7.94085 7.58213}, expected Y=7.940000
+  ratios X/Y=0.894634343 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.5558, 0.58022, 0.569963}) = {11.3969, 
12.7421 12.1659}, expected Y=12.740000
+  ratios X/Y=0.894225676 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.648596, 0.676923, 0.664957}) = 
{17.0149, 19.0123 18.1519}, expected Y=19.010000
+  ratios X/Y=0.894809521 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.741148, 0.773626, 0.759951}) = 
{24.0585, 26.8938 25.6763}, expected Y=26.890000
+  ratios X/Y=0.894481079 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.833944, 0.87033, 0.854945}) = {32.6857, 
36.5213 34.8675}, expected Y=36.520000
+  ratios X/Y=0.894906851 Z/Y=0.954688036
 trc=smpte428 EOTF(48.024, 0.024012, {0.926496, 0.967033, 0.949939}) = 
{42.9653, 48.0228 45.8478}, expected Y=48.020000
+  ratios X/Y=0.894634343 Z/Y=0.954688036
 trc=arib-std-b67 EOTF(50, 0, {0}) = {0}
 trc=arib-std-b67 EOTF(50, 0, {0.1}) = {0.166667}
 trc=arib-std-b67 EOTF(50, 0, {0.2}) = {0.666667}

-- 
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