[FFmpeg-devel] [PATCH 3/6] avutil/tests/color_utils: clean up slightly (cosmetic)

Niklas Haas ffmpeg at haasn.xyz
Mon Nov 25 15:16:17 EET 2024


From: Niklas Haas <git at haasn.dev>

Rewrite this test slightly to fix the formatting, improve the readability of
the output, and eliminate some unnecessary branching.
---
 libavutil/tests/color_utils.c |  34 +-
 tests/ref/fate/color_utils    | 608 +++++++++++++++++-----------------
 2 files changed, 322 insertions(+), 320 deletions(-)

diff --git a/libavutil/tests/color_utils.c b/libavutil/tests/color_utils.c
index 95fb3c1d56..e1754f3603 100644
--- a/libavutil/tests/color_utils.c
+++ b/libavutil/tests/color_utils.c
@@ -21,25 +21,27 @@
 #include <stdio.h>
 #include "libavutil/csp.h"
 #include "libavutil/macros.h"
+#include "libavutil/pixdesc.h"
+#include "libavutil/pixfmt.h"
 
 int main(int argc, char *argv[])
 {
-  int i, j;
-  static const double test_data[] = {
-      -0.1, -0.018053968510807, -0.01, -0.00449, 0.0, 0.00316227760, 0.005,
-      0.009, 0.015, 0.1, 1.0, 52.37, 125.098765, 1999.11123, 6945.443,
-      15123.4567, 19845.88923, 98678.4231, 99999.899998
-  };
+    static const double test_data[] = {
+        -0.1, -0.018053968510807, -0.01, -0.00449, 0.0, 0.00316227760, 0.005,
+        0.009, 0.015, 0.1, 1.0, 52.37, 125.098765, 1999.11123, 6945.443,
+        15123.4567, 19845.88923, 98678.4231, 99999.899998
+    };
 
-  for(i = 0; i < AVCOL_TRC_NB; i++) {
-      av_csp_trc_function func = av_csp_trc_func_from_id(i);
-      for(j = 0; j < FF_ARRAY_ELEMS(test_data); j++) {
-          if(func != NULL) {
-              double result = func(test_data[j]);
-              printf("AVColorTransferCharacteristic=%d calling func(%f) expected=%f\n",
-                     i, test_data[j], result);
-          }
-      }
-  }
+    for (enum AVColorTransferCharacteristic trc = 0; trc < AVCOL_TRC_NB; trc++) {
+        av_csp_trc_function func = av_csp_trc_func_from_id(trc);
+        const char *name = av_color_transfer_name(trc);
+        if (!func)
+            continue;
 
+        for (int i = 0; i < FF_ARRAY_ELEMS(test_data); i++) {
+            double result = func(test_data[i]);
+            printf("trc=%s calling func(%f) expected=%f\n",
+                    name, test_data[i], result);
+        }
+    }
 }
diff --git a/tests/ref/fate/color_utils b/tests/ref/fate/color_utils
index 10f8055916..34f97d53b6 100644
--- a/tests/ref/fate/color_utils
+++ b/tests/ref/fate/color_utils
@@ -1,304 +1,304 @@
-AVColorTransferCharacteristic=1 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=1 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=1 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=1 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=1 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=1 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=1 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=1 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=1 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=1 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=1 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=1 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=1 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=1 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=1 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=1 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=1 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=1 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=1 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=4 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=4 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=4 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=4 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=4 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=4 calling func(0.003162) expected=0.073053
-AVColorTransferCharacteristic=4 calling func(0.005000) expected=0.089966
-AVColorTransferCharacteristic=4 calling func(0.009000) expected=0.117520
-AVColorTransferCharacteristic=4 calling func(0.015000) expected=0.148235
-AVColorTransferCharacteristic=4 calling func(0.100000) expected=0.351119
-AVColorTransferCharacteristic=4 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=4 calling func(52.370000) expected=6.045068
-AVColorTransferCharacteristic=4 calling func(125.098765) expected=8.980424
-AVColorTransferCharacteristic=4 calling func(1999.111230) expected=31.650490
-AVColorTransferCharacteristic=4 calling func(6945.443000) expected=55.747738
-AVColorTransferCharacteristic=4 calling func(15123.456700) expected=79.403820
-AVColorTransferCharacteristic=4 calling func(19845.889230) expected=89.843491
-AVColorTransferCharacteristic=4 calling func(98678.423100) expected=186.252024
-AVColorTransferCharacteristic=4 calling func(99999.899998) expected=187.381657
-AVColorTransferCharacteristic=5 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=5 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=5 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=5 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=5 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=5 calling func(0.003162) expected=0.127980
-AVColorTransferCharacteristic=5 calling func(0.005000) expected=0.150731
-AVColorTransferCharacteristic=5 calling func(0.009000) expected=0.185940
-AVColorTransferCharacteristic=5 calling func(0.015000) expected=0.223154
-AVColorTransferCharacteristic=5 calling func(0.100000) expected=0.439397
-AVColorTransferCharacteristic=5 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=5 calling func(52.370000) expected=4.111100
-AVColorTransferCharacteristic=5 calling func(125.098765) expected=5.610724
-AVColorTransferCharacteristic=5 calling func(1999.111230) expected=15.096294
-AVColorTransferCharacteristic=5 calling func(6945.443000) expected=23.552429
-AVColorTransferCharacteristic=5 calling func(15123.456700) expected=31.098005
-AVColorTransferCharacteristic=5 calling func(19845.889230) expected=34.267494
-AVColorTransferCharacteristic=5 calling func(98678.423100) expected=60.764620
-AVColorTransferCharacteristic=5 calling func(99999.899998) expected=61.054001
-AVColorTransferCharacteristic=6 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=6 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=6 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=6 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=6 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=6 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=6 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=6 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=6 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=6 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=6 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=6 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=6 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=6 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=6 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=6 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=6 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=6 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=6 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=7 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=7 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=7 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=7 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=7 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=7 calling func(0.003162) expected=0.012649
-AVColorTransferCharacteristic=7 calling func(0.005000) expected=0.020000
-AVColorTransferCharacteristic=7 calling func(0.009000) expected=0.036000
-AVColorTransferCharacteristic=7 calling func(0.015000) expected=0.060000
-AVColorTransferCharacteristic=7 calling func(0.100000) expected=0.282875
-AVColorTransferCharacteristic=7 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=7 calling func(52.370000) expected=6.487781
-AVColorTransferCharacteristic=7 calling func(125.098765) expected=9.653524
-AVColorTransferCharacteristic=7 calling func(1999.111230) expected=33.873408
-AVColorTransferCharacteristic=7 calling func(6945.443000) expected=59.410079
-AVColorTransferCharacteristic=7 calling func(15123.456700) expected=84.368216
-AVColorTransferCharacteristic=7 calling func(19845.889230) expected=95.357247
-AVColorTransferCharacteristic=7 calling func(98678.423100) expected=196.364477
-AVColorTransferCharacteristic=7 calling func(99999.899998) expected=197.544167
-AVColorTransferCharacteristic=8 calling func(-0.100000) expected=-0.100000
-AVColorTransferCharacteristic=8 calling func(-0.018054) expected=-0.018054
-AVColorTransferCharacteristic=8 calling func(-0.010000) expected=-0.010000
-AVColorTransferCharacteristic=8 calling func(-0.004490) expected=-0.004490
-AVColorTransferCharacteristic=8 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=8 calling func(0.003162) expected=0.003162
-AVColorTransferCharacteristic=8 calling func(0.005000) expected=0.005000
-AVColorTransferCharacteristic=8 calling func(0.009000) expected=0.009000
-AVColorTransferCharacteristic=8 calling func(0.015000) expected=0.015000
-AVColorTransferCharacteristic=8 calling func(0.100000) expected=0.100000
-AVColorTransferCharacteristic=8 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=8 calling func(52.370000) expected=52.370000
-AVColorTransferCharacteristic=8 calling func(125.098765) expected=125.098765
-AVColorTransferCharacteristic=8 calling func(1999.111230) expected=1999.111230
-AVColorTransferCharacteristic=8 calling func(6945.443000) expected=6945.443000
-AVColorTransferCharacteristic=8 calling func(15123.456700) expected=15123.456700
-AVColorTransferCharacteristic=8 calling func(19845.889230) expected=19845.889230
-AVColorTransferCharacteristic=8 calling func(98678.423100) expected=98678.423100
-AVColorTransferCharacteristic=8 calling func(99999.899998) expected=99999.899998
-AVColorTransferCharacteristic=9 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(0.003162) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(0.005000) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(0.009000) expected=0.000000
-AVColorTransferCharacteristic=9 calling func(0.015000) expected=0.088046
-AVColorTransferCharacteristic=9 calling func(0.100000) expected=0.500000
-AVColorTransferCharacteristic=9 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=9 calling func(52.370000) expected=1.859541
-AVColorTransferCharacteristic=9 calling func(125.098765) expected=2.048627
-AVColorTransferCharacteristic=9 calling func(1999.111230) expected=2.650418
-AVColorTransferCharacteristic=9 calling func(6945.443000) expected=2.920850
-AVColorTransferCharacteristic=9 calling func(15123.456700) expected=3.089826
-AVColorTransferCharacteristic=9 calling func(19845.889230) expected=3.148835
-AVColorTransferCharacteristic=9 calling func(98678.423100) expected=3.497111
-AVColorTransferCharacteristic=9 calling func(99999.899998) expected=3.500000
-AVColorTransferCharacteristic=10 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(0.003162) expected=0.000000
-AVColorTransferCharacteristic=10 calling func(0.005000) expected=0.079588
-AVColorTransferCharacteristic=10 calling func(0.009000) expected=0.181697
-AVColorTransferCharacteristic=10 calling func(0.015000) expected=0.270437
-AVColorTransferCharacteristic=10 calling func(0.100000) expected=0.600000
-AVColorTransferCharacteristic=10 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=10 calling func(52.370000) expected=1.687633
-AVColorTransferCharacteristic=10 calling func(125.098765) expected=1.838901
-AVColorTransferCharacteristic=10 calling func(1999.111230) expected=2.320335
-AVColorTransferCharacteristic=10 calling func(6945.443000) expected=2.536680
-AVColorTransferCharacteristic=10 calling func(15123.456700) expected=2.671860
-AVColorTransferCharacteristic=10 calling func(19845.889230) expected=2.719068
-AVColorTransferCharacteristic=10 calling func(98678.423100) expected=2.997689
-AVColorTransferCharacteristic=10 calling func(99999.899998) expected=3.000000
-AVColorTransferCharacteristic=11 calling func(-0.100000) expected=-0.290748
-AVColorTransferCharacteristic=11 calling func(-0.018054) expected=-0.081243
-AVColorTransferCharacteristic=11 calling func(-0.010000) expected=-0.045000
-AVColorTransferCharacteristic=11 calling func(-0.004490) expected=-0.020205
-AVColorTransferCharacteristic=11 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=11 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=11 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=11 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=11 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=11 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=11 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=11 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=11 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=11 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=11 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=11 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=11 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=11 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=11 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=12 calling func(-0.100000) expected=-0.206787
-AVColorTransferCharacteristic=12 calling func(-0.018054) expected=-0.109049
-AVColorTransferCharacteristic=12 calling func(-0.010000) expected=-0.089387
-AVColorTransferCharacteristic=12 calling func(-0.004490) expected=-0.020205
-AVColorTransferCharacteristic=12 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=12 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=12 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=12 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=12 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=12 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=12 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=12 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=12 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=12 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=12 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=12 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=12 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=12 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=12 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=13 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=13 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=13 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=13 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=13 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=13 calling func(0.003162) expected=0.040849
-AVColorTransferCharacteristic=13 calling func(0.005000) expected=0.061009
-AVColorTransferCharacteristic=13 calling func(0.009000) expected=0.093202
-AVColorTransferCharacteristic=13 calling func(0.015000) expected=0.128354
-AVColorTransferCharacteristic=13 calling func(0.100000) expected=0.349190
-AVColorTransferCharacteristic=13 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=13 calling func(52.370000) expected=5.434552
-AVColorTransferCharacteristic=13 calling func(125.098765) expected=7.835561
-AVColorTransferCharacteristic=13 calling func(1999.111230) expected=24.983090
-AVColorTransferCharacteristic=13 calling func(6945.443000) expected=42.013863
-AVColorTransferCharacteristic=13 calling func(15123.456700) expected=58.125003
-AVColorTransferCharacteristic=13 calling func(19845.889230) expected=65.100117
-AVColorTransferCharacteristic=13 calling func(98678.423100) expected=127.054607
-AVColorTransferCharacteristic=13 calling func(99999.899998) expected=127.761115
-AVColorTransferCharacteristic=14 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=14 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=14 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=14 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=14 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=14 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=14 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=14 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=14 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=14 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=14 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=14 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=14 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=14 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=14 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=14 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=14 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=14 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=14 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=15 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=15 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=15 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=15 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=15 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=15 calling func(0.003162) expected=0.014230
-AVColorTransferCharacteristic=15 calling func(0.005000) expected=0.022500
-AVColorTransferCharacteristic=15 calling func(0.009000) expected=0.040500
-AVColorTransferCharacteristic=15 calling func(0.015000) expected=0.067500
-AVColorTransferCharacteristic=15 calling func(0.100000) expected=0.290748
-AVColorTransferCharacteristic=15 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=15 calling func(52.370000) expected=6.427531
-AVColorTransferCharacteristic=15 calling func(125.098765) expected=9.558517
-AVColorTransferCharacteristic=15 calling func(1999.111230) expected=33.512490
-AVColorTransferCharacteristic=15 calling func(6945.443000) expected=58.768794
-AVColorTransferCharacteristic=15 calling func(15123.456700) expected=83.452916
-AVColorTransferCharacteristic=15 calling func(19845.889230) expected=94.321297
-AVColorTransferCharacteristic=15 calling func(98678.423100) expected=194.219568
-AVColorTransferCharacteristic=15 calling func(99999.899998) expected=195.386306
-AVColorTransferCharacteristic=16 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=16 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=16 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=16 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=16 calling func(0.000000) expected=0.000001
-AVColorTransferCharacteristic=16 calling func(0.003162) expected=0.011839
-AVColorTransferCharacteristic=16 calling func(0.005000) expected=0.015076
-AVColorTransferCharacteristic=16 calling func(0.009000) expected=0.020379
-AVColorTransferCharacteristic=16 calling func(0.015000) expected=0.026255
-AVColorTransferCharacteristic=16 calling func(0.100000) expected=0.062337
-AVColorTransferCharacteristic=16 calling func(1.000000) expected=0.149946
-AVColorTransferCharacteristic=16 calling func(52.370000) expected=0.444693
-AVColorTransferCharacteristic=16 calling func(125.098765) expected=0.530719
-AVColorTransferCharacteristic=16 calling func(1999.111230) expected=0.827376
-AVColorTransferCharacteristic=16 calling func(6945.443000) expected=0.961586
-AVColorTransferCharacteristic=16 calling func(15123.456700) expected=1.042921
-AVColorTransferCharacteristic=16 calling func(19845.889230) expected=1.070677
-AVColorTransferCharacteristic=16 calling func(98678.423100) expected=1.225908
-AVColorTransferCharacteristic=16 calling func(99999.899998) expected=1.227127
-AVColorTransferCharacteristic=17 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=17 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=17 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=17 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=17 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=17 calling func(0.003162) expected=0.105659
-AVColorTransferCharacteristic=17 calling func(0.005000) expected=0.126018
-AVColorTransferCharacteristic=17 calling func(0.009000) expected=0.157985
-AVColorTransferCharacteristic=17 calling func(0.015000) expected=0.192284
-AVColorTransferCharacteristic=17 calling func(0.100000) expected=0.398869
-AVColorTransferCharacteristic=17 calling func(1.000000) expected=0.967043
-AVColorTransferCharacteristic=17 calling func(52.370000) expected=4.432321
-AVColorTransferCharacteristic=17 calling func(125.098765) expected=6.195572
-AVColorTransferCharacteristic=17 calling func(1999.111230) expected=17.988639
-AVColorTransferCharacteristic=17 calling func(6945.443000) expected=29.041734
-AVColorTransferCharacteristic=17 calling func(15123.456700) expected=39.174525
-AVColorTransferCharacteristic=17 calling func(19845.889230) expected=43.490646
-AVColorTransferCharacteristic=17 calling func(98678.423100) expected=80.593559
-AVColorTransferCharacteristic=17 calling func(99999.899998) expected=81.006971
-AVColorTransferCharacteristic=18 calling func(-0.100000) expected=0.000000
-AVColorTransferCharacteristic=18 calling func(-0.018054) expected=0.000000
-AVColorTransferCharacteristic=18 calling func(-0.010000) expected=0.000000
-AVColorTransferCharacteristic=18 calling func(-0.004490) expected=0.000000
-AVColorTransferCharacteristic=18 calling func(0.000000) expected=0.000000
-AVColorTransferCharacteristic=18 calling func(0.003162) expected=0.097400
-AVColorTransferCharacteristic=18 calling func(0.005000) expected=0.122474
-AVColorTransferCharacteristic=18 calling func(0.009000) expected=0.164317
-AVColorTransferCharacteristic=18 calling func(0.015000) expected=0.212132
-AVColorTransferCharacteristic=18 calling func(0.100000) expected=0.544089
-AVColorTransferCharacteristic=18 calling func(1.000000) expected=1.000000
-AVColorTransferCharacteristic=18 calling func(52.370000) expected=1.712092
-AVColorTransferCharacteristic=18 calling func(125.098765) expected=1.867862
-AVColorTransferCharacteristic=18 calling func(1999.111230) expected=2.363502
-AVColorTransferCharacteristic=18 calling func(6945.443000) expected=2.586219
-AVColorTransferCharacteristic=18 calling func(15123.456700) expected=2.725380
-AVColorTransferCharacteristic=18 calling func(19845.889230) expected=2.773978
-AVColorTransferCharacteristic=18 calling func(98678.423100) expected=3.060803
-AVColorTransferCharacteristic=18 calling func(99999.899998) expected=3.063182
+trc=bt709 calling func(-0.100000) expected=0.000000
+trc=bt709 calling func(-0.018054) expected=0.000000
+trc=bt709 calling func(-0.010000) expected=0.000000
+trc=bt709 calling func(-0.004490) expected=0.000000
+trc=bt709 calling func(0.000000) expected=0.000000
+trc=bt709 calling func(0.003162) expected=0.014230
+trc=bt709 calling func(0.005000) expected=0.022500
+trc=bt709 calling func(0.009000) expected=0.040500
+trc=bt709 calling func(0.015000) expected=0.067500
+trc=bt709 calling func(0.100000) expected=0.290748
+trc=bt709 calling func(1.000000) expected=1.000000
+trc=bt709 calling func(52.370000) expected=6.427531
+trc=bt709 calling func(125.098765) expected=9.558517
+trc=bt709 calling func(1999.111230) expected=33.512490
+trc=bt709 calling func(6945.443000) expected=58.768794
+trc=bt709 calling func(15123.456700) expected=83.452916
+trc=bt709 calling func(19845.889230) expected=94.321297
+trc=bt709 calling func(98678.423100) expected=194.219568
+trc=bt709 calling func(99999.899998) expected=195.386306
+trc=bt470m calling func(-0.100000) expected=0.000000
+trc=bt470m calling func(-0.018054) expected=0.000000
+trc=bt470m calling func(-0.010000) expected=0.000000
+trc=bt470m calling func(-0.004490) expected=0.000000
+trc=bt470m calling func(0.000000) expected=0.000000
+trc=bt470m calling func(0.003162) expected=0.073053
+trc=bt470m calling func(0.005000) expected=0.089966
+trc=bt470m calling func(0.009000) expected=0.117520
+trc=bt470m calling func(0.015000) expected=0.148235
+trc=bt470m calling func(0.100000) expected=0.351119
+trc=bt470m calling func(1.000000) expected=1.000000
+trc=bt470m calling func(52.370000) expected=6.045068
+trc=bt470m calling func(125.098765) expected=8.980424
+trc=bt470m calling func(1999.111230) expected=31.650490
+trc=bt470m calling func(6945.443000) expected=55.747738
+trc=bt470m calling func(15123.456700) expected=79.403820
+trc=bt470m calling func(19845.889230) expected=89.843491
+trc=bt470m calling func(98678.423100) expected=186.252024
+trc=bt470m calling func(99999.899998) expected=187.381657
+trc=bt470bg calling func(-0.100000) expected=0.000000
+trc=bt470bg calling func(-0.018054) expected=0.000000
+trc=bt470bg calling func(-0.010000) expected=0.000000
+trc=bt470bg calling func(-0.004490) expected=0.000000
+trc=bt470bg calling func(0.000000) expected=0.000000
+trc=bt470bg calling func(0.003162) expected=0.127980
+trc=bt470bg calling func(0.005000) expected=0.150731
+trc=bt470bg calling func(0.009000) expected=0.185940
+trc=bt470bg calling func(0.015000) expected=0.223154
+trc=bt470bg calling func(0.100000) expected=0.439397
+trc=bt470bg calling func(1.000000) expected=1.000000
+trc=bt470bg calling func(52.370000) expected=4.111100
+trc=bt470bg calling func(125.098765) expected=5.610724
+trc=bt470bg calling func(1999.111230) expected=15.096294
+trc=bt470bg calling func(6945.443000) expected=23.552429
+trc=bt470bg calling func(15123.456700) expected=31.098005
+trc=bt470bg calling func(19845.889230) expected=34.267494
+trc=bt470bg calling func(98678.423100) expected=60.764620
+trc=bt470bg calling func(99999.899998) expected=61.054001
+trc=smpte170m calling func(-0.100000) expected=0.000000
+trc=smpte170m calling func(-0.018054) expected=0.000000
+trc=smpte170m calling func(-0.010000) expected=0.000000
+trc=smpte170m calling func(-0.004490) expected=0.000000
+trc=smpte170m calling func(0.000000) expected=0.000000
+trc=smpte170m calling func(0.003162) expected=0.014230
+trc=smpte170m calling func(0.005000) expected=0.022500
+trc=smpte170m calling func(0.009000) expected=0.040500
+trc=smpte170m calling func(0.015000) expected=0.067500
+trc=smpte170m calling func(0.100000) expected=0.290748
+trc=smpte170m calling func(1.000000) expected=1.000000
+trc=smpte170m calling func(52.370000) expected=6.427531
+trc=smpte170m calling func(125.098765) expected=9.558517
+trc=smpte170m calling func(1999.111230) expected=33.512490
+trc=smpte170m calling func(6945.443000) expected=58.768794
+trc=smpte170m calling func(15123.456700) expected=83.452916
+trc=smpte170m calling func(19845.889230) expected=94.321297
+trc=smpte170m calling func(98678.423100) expected=194.219568
+trc=smpte170m calling func(99999.899998) expected=195.386306
+trc=smpte240m calling func(-0.100000) expected=0.000000
+trc=smpte240m calling func(-0.018054) expected=0.000000
+trc=smpte240m calling func(-0.010000) expected=0.000000
+trc=smpte240m calling func(-0.004490) expected=0.000000
+trc=smpte240m calling func(0.000000) expected=0.000000
+trc=smpte240m calling func(0.003162) expected=0.012649
+trc=smpte240m calling func(0.005000) expected=0.020000
+trc=smpte240m calling func(0.009000) expected=0.036000
+trc=smpte240m calling func(0.015000) expected=0.060000
+trc=smpte240m calling func(0.100000) expected=0.282875
+trc=smpte240m calling func(1.000000) expected=1.000000
+trc=smpte240m calling func(52.370000) expected=6.487781
+trc=smpte240m calling func(125.098765) expected=9.653524
+trc=smpte240m calling func(1999.111230) expected=33.873408
+trc=smpte240m calling func(6945.443000) expected=59.410079
+trc=smpte240m calling func(15123.456700) expected=84.368216
+trc=smpte240m calling func(19845.889230) expected=95.357247
+trc=smpte240m calling func(98678.423100) expected=196.364477
+trc=smpte240m calling func(99999.899998) expected=197.544167
+trc=linear calling func(-0.100000) expected=-0.100000
+trc=linear calling func(-0.018054) expected=-0.018054
+trc=linear calling func(-0.010000) expected=-0.010000
+trc=linear calling func(-0.004490) expected=-0.004490
+trc=linear calling func(0.000000) expected=0.000000
+trc=linear calling func(0.003162) expected=0.003162
+trc=linear calling func(0.005000) expected=0.005000
+trc=linear calling func(0.009000) expected=0.009000
+trc=linear calling func(0.015000) expected=0.015000
+trc=linear calling func(0.100000) expected=0.100000
+trc=linear calling func(1.000000) expected=1.000000
+trc=linear calling func(52.370000) expected=52.370000
+trc=linear calling func(125.098765) expected=125.098765
+trc=linear calling func(1999.111230) expected=1999.111230
+trc=linear calling func(6945.443000) expected=6945.443000
+trc=linear calling func(15123.456700) expected=15123.456700
+trc=linear calling func(19845.889230) expected=19845.889230
+trc=linear calling func(98678.423100) expected=98678.423100
+trc=linear calling func(99999.899998) expected=99999.899998
+trc=log100 calling func(-0.100000) expected=0.000000
+trc=log100 calling func(-0.018054) expected=0.000000
+trc=log100 calling func(-0.010000) expected=0.000000
+trc=log100 calling func(-0.004490) expected=0.000000
+trc=log100 calling func(0.000000) expected=0.000000
+trc=log100 calling func(0.003162) expected=0.000000
+trc=log100 calling func(0.005000) expected=0.000000
+trc=log100 calling func(0.009000) expected=0.000000
+trc=log100 calling func(0.015000) expected=0.088046
+trc=log100 calling func(0.100000) expected=0.500000
+trc=log100 calling func(1.000000) expected=1.000000
+trc=log100 calling func(52.370000) expected=1.859541
+trc=log100 calling func(125.098765) expected=2.048627
+trc=log100 calling func(1999.111230) expected=2.650418
+trc=log100 calling func(6945.443000) expected=2.920850
+trc=log100 calling func(15123.456700) expected=3.089826
+trc=log100 calling func(19845.889230) expected=3.148835
+trc=log100 calling func(98678.423100) expected=3.497111
+trc=log100 calling func(99999.899998) expected=3.500000
+trc=log316 calling func(-0.100000) expected=0.000000
+trc=log316 calling func(-0.018054) expected=0.000000
+trc=log316 calling func(-0.010000) expected=0.000000
+trc=log316 calling func(-0.004490) expected=0.000000
+trc=log316 calling func(0.000000) expected=0.000000
+trc=log316 calling func(0.003162) expected=0.000000
+trc=log316 calling func(0.005000) expected=0.079588
+trc=log316 calling func(0.009000) expected=0.181697
+trc=log316 calling func(0.015000) expected=0.270437
+trc=log316 calling func(0.100000) expected=0.600000
+trc=log316 calling func(1.000000) expected=1.000000
+trc=log316 calling func(52.370000) expected=1.687633
+trc=log316 calling func(125.098765) expected=1.838901
+trc=log316 calling func(1999.111230) expected=2.320335
+trc=log316 calling func(6945.443000) expected=2.536680
+trc=log316 calling func(15123.456700) expected=2.671860
+trc=log316 calling func(19845.889230) expected=2.719068
+trc=log316 calling func(98678.423100) expected=2.997689
+trc=log316 calling func(99999.899998) expected=3.000000
+trc=iec61966-2-4 calling func(-0.100000) expected=-0.290748
+trc=iec61966-2-4 calling func(-0.018054) expected=-0.081243
+trc=iec61966-2-4 calling func(-0.010000) expected=-0.045000
+trc=iec61966-2-4 calling func(-0.004490) expected=-0.020205
+trc=iec61966-2-4 calling func(0.000000) expected=0.000000
+trc=iec61966-2-4 calling func(0.003162) expected=0.014230
+trc=iec61966-2-4 calling func(0.005000) expected=0.022500
+trc=iec61966-2-4 calling func(0.009000) expected=0.040500
+trc=iec61966-2-4 calling func(0.015000) expected=0.067500
+trc=iec61966-2-4 calling func(0.100000) expected=0.290748
+trc=iec61966-2-4 calling func(1.000000) expected=1.000000
+trc=iec61966-2-4 calling func(52.370000) expected=6.427531
+trc=iec61966-2-4 calling func(125.098765) expected=9.558517
+trc=iec61966-2-4 calling func(1999.111230) expected=33.512490
+trc=iec61966-2-4 calling func(6945.443000) expected=58.768794
+trc=iec61966-2-4 calling func(15123.456700) expected=83.452916
+trc=iec61966-2-4 calling func(19845.889230) expected=94.321297
+trc=iec61966-2-4 calling func(98678.423100) expected=194.219568
+trc=iec61966-2-4 calling func(99999.899998) expected=195.386306
+trc=bt1361e calling func(-0.100000) expected=-0.206787
+trc=bt1361e calling func(-0.018054) expected=-0.109049
+trc=bt1361e calling func(-0.010000) expected=-0.089387
+trc=bt1361e calling func(-0.004490) expected=-0.020205
+trc=bt1361e calling func(0.000000) expected=0.000000
+trc=bt1361e calling func(0.003162) expected=0.014230
+trc=bt1361e calling func(0.005000) expected=0.022500
+trc=bt1361e calling func(0.009000) expected=0.040500
+trc=bt1361e calling func(0.015000) expected=0.067500
+trc=bt1361e calling func(0.100000) expected=0.290748
+trc=bt1361e calling func(1.000000) expected=1.000000
+trc=bt1361e calling func(52.370000) expected=6.427531
+trc=bt1361e calling func(125.098765) expected=9.558517
+trc=bt1361e calling func(1999.111230) expected=33.512490
+trc=bt1361e calling func(6945.443000) expected=58.768794
+trc=bt1361e calling func(15123.456700) expected=83.452916
+trc=bt1361e calling func(19845.889230) expected=94.321297
+trc=bt1361e calling func(98678.423100) expected=194.219568
+trc=bt1361e calling func(99999.899998) expected=195.386306
+trc=iec61966-2-1 calling func(-0.100000) expected=0.000000
+trc=iec61966-2-1 calling func(-0.018054) expected=0.000000
+trc=iec61966-2-1 calling func(-0.010000) expected=0.000000
+trc=iec61966-2-1 calling func(-0.004490) expected=0.000000
+trc=iec61966-2-1 calling func(0.000000) expected=0.000000
+trc=iec61966-2-1 calling func(0.003162) expected=0.040849
+trc=iec61966-2-1 calling func(0.005000) expected=0.061009
+trc=iec61966-2-1 calling func(0.009000) expected=0.093202
+trc=iec61966-2-1 calling func(0.015000) expected=0.128354
+trc=iec61966-2-1 calling func(0.100000) expected=0.349190
+trc=iec61966-2-1 calling func(1.000000) expected=1.000000
+trc=iec61966-2-1 calling func(52.370000) expected=5.434552
+trc=iec61966-2-1 calling func(125.098765) expected=7.835561
+trc=iec61966-2-1 calling func(1999.111230) expected=24.983090
+trc=iec61966-2-1 calling func(6945.443000) expected=42.013863
+trc=iec61966-2-1 calling func(15123.456700) expected=58.125003
+trc=iec61966-2-1 calling func(19845.889230) expected=65.100117
+trc=iec61966-2-1 calling func(98678.423100) expected=127.054607
+trc=iec61966-2-1 calling func(99999.899998) expected=127.761115
+trc=bt2020-10 calling func(-0.100000) expected=0.000000
+trc=bt2020-10 calling func(-0.018054) expected=0.000000
+trc=bt2020-10 calling func(-0.010000) expected=0.000000
+trc=bt2020-10 calling func(-0.004490) expected=0.000000
+trc=bt2020-10 calling func(0.000000) expected=0.000000
+trc=bt2020-10 calling func(0.003162) expected=0.014230
+trc=bt2020-10 calling func(0.005000) expected=0.022500
+trc=bt2020-10 calling func(0.009000) expected=0.040500
+trc=bt2020-10 calling func(0.015000) expected=0.067500
+trc=bt2020-10 calling func(0.100000) expected=0.290748
+trc=bt2020-10 calling func(1.000000) expected=1.000000
+trc=bt2020-10 calling func(52.370000) expected=6.427531
+trc=bt2020-10 calling func(125.098765) expected=9.558517
+trc=bt2020-10 calling func(1999.111230) expected=33.512490
+trc=bt2020-10 calling func(6945.443000) expected=58.768794
+trc=bt2020-10 calling func(15123.456700) expected=83.452916
+trc=bt2020-10 calling func(19845.889230) expected=94.321297
+trc=bt2020-10 calling func(98678.423100) expected=194.219568
+trc=bt2020-10 calling func(99999.899998) expected=195.386306
+trc=bt2020-12 calling func(-0.100000) expected=0.000000
+trc=bt2020-12 calling func(-0.018054) expected=0.000000
+trc=bt2020-12 calling func(-0.010000) expected=0.000000
+trc=bt2020-12 calling func(-0.004490) expected=0.000000
+trc=bt2020-12 calling func(0.000000) expected=0.000000
+trc=bt2020-12 calling func(0.003162) expected=0.014230
+trc=bt2020-12 calling func(0.005000) expected=0.022500
+trc=bt2020-12 calling func(0.009000) expected=0.040500
+trc=bt2020-12 calling func(0.015000) expected=0.067500
+trc=bt2020-12 calling func(0.100000) expected=0.290748
+trc=bt2020-12 calling func(1.000000) expected=1.000000
+trc=bt2020-12 calling func(52.370000) expected=6.427531
+trc=bt2020-12 calling func(125.098765) expected=9.558517
+trc=bt2020-12 calling func(1999.111230) expected=33.512490
+trc=bt2020-12 calling func(6945.443000) expected=58.768794
+trc=bt2020-12 calling func(15123.456700) expected=83.452916
+trc=bt2020-12 calling func(19845.889230) expected=94.321297
+trc=bt2020-12 calling func(98678.423100) expected=194.219568
+trc=bt2020-12 calling func(99999.899998) expected=195.386306
+trc=smpte2084 calling func(-0.100000) expected=0.000000
+trc=smpte2084 calling func(-0.018054) expected=0.000000
+trc=smpte2084 calling func(-0.010000) expected=0.000000
+trc=smpte2084 calling func(-0.004490) expected=0.000000
+trc=smpte2084 calling func(0.000000) expected=0.000001
+trc=smpte2084 calling func(0.003162) expected=0.011839
+trc=smpte2084 calling func(0.005000) expected=0.015076
+trc=smpte2084 calling func(0.009000) expected=0.020379
+trc=smpte2084 calling func(0.015000) expected=0.026255
+trc=smpte2084 calling func(0.100000) expected=0.062337
+trc=smpte2084 calling func(1.000000) expected=0.149946
+trc=smpte2084 calling func(52.370000) expected=0.444693
+trc=smpte2084 calling func(125.098765) expected=0.530719
+trc=smpte2084 calling func(1999.111230) expected=0.827376
+trc=smpte2084 calling func(6945.443000) expected=0.961586
+trc=smpte2084 calling func(15123.456700) expected=1.042921
+trc=smpte2084 calling func(19845.889230) expected=1.070677
+trc=smpte2084 calling func(98678.423100) expected=1.225908
+trc=smpte2084 calling func(99999.899998) expected=1.227127
+trc=smpte428 calling func(-0.100000) expected=0.000000
+trc=smpte428 calling func(-0.018054) expected=0.000000
+trc=smpte428 calling func(-0.010000) expected=0.000000
+trc=smpte428 calling func(-0.004490) expected=0.000000
+trc=smpte428 calling func(0.000000) expected=0.000000
+trc=smpte428 calling func(0.003162) expected=0.105659
+trc=smpte428 calling func(0.005000) expected=0.126018
+trc=smpte428 calling func(0.009000) expected=0.157985
+trc=smpte428 calling func(0.015000) expected=0.192284
+trc=smpte428 calling func(0.100000) expected=0.398869
+trc=smpte428 calling func(1.000000) expected=0.967043
+trc=smpte428 calling func(52.370000) expected=4.432321
+trc=smpte428 calling func(125.098765) expected=6.195572
+trc=smpte428 calling func(1999.111230) expected=17.988639
+trc=smpte428 calling func(6945.443000) expected=29.041734
+trc=smpte428 calling func(15123.456700) expected=39.174525
+trc=smpte428 calling func(19845.889230) expected=43.490646
+trc=smpte428 calling func(98678.423100) expected=80.593559
+trc=smpte428 calling func(99999.899998) expected=81.006971
+trc=arib-std-b67 calling func(-0.100000) expected=0.000000
+trc=arib-std-b67 calling func(-0.018054) expected=0.000000
+trc=arib-std-b67 calling func(-0.010000) expected=0.000000
+trc=arib-std-b67 calling func(-0.004490) expected=0.000000
+trc=arib-std-b67 calling func(0.000000) expected=0.000000
+trc=arib-std-b67 calling func(0.003162) expected=0.097400
+trc=arib-std-b67 calling func(0.005000) expected=0.122474
+trc=arib-std-b67 calling func(0.009000) expected=0.164317
+trc=arib-std-b67 calling func(0.015000) expected=0.212132
+trc=arib-std-b67 calling func(0.100000) expected=0.544089
+trc=arib-std-b67 calling func(1.000000) expected=1.000000
+trc=arib-std-b67 calling func(52.370000) expected=1.712092
+trc=arib-std-b67 calling func(125.098765) expected=1.867862
+trc=arib-std-b67 calling func(1999.111230) expected=2.363502
+trc=arib-std-b67 calling func(6945.443000) expected=2.586219
+trc=arib-std-b67 calling func(15123.456700) expected=2.725380
+trc=arib-std-b67 calling func(19845.889230) expected=2.773978
+trc=arib-std-b67 calling func(98678.423100) expected=3.060803
+trc=arib-std-b67 calling func(99999.899998) expected=3.063182
-- 
2.47.0



More information about the ffmpeg-devel mailing list