[FFmpeg-devel] [FFmpeg-cvslog] avutil/tests/color_utils: add tests for av_csp_itu_eotf

Michael Niedermayer michael at niedermayer.cc
Fri Dec 6 22:11:42 EET 2024


Hi

On Thu, Dec 05, 2024 at 11:28:58AM +0000, Niklas Haas wrote:
> ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Mon Nov 25 14:10:46 2024 +0100| [7b73ea501dc738c52daf2a2fef0c41b4ce95928f] | committer: Niklas Haas
> 
> avutil/tests/color_utils: add tests for av_csp_itu_eotf
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b73ea501dc738c52daf2a2fef0c41b4ce95928f
> ---
> 
>  libavutil/tests/color_utils.c |  110 ++
>  tests/ref/fate/color_utils    | 2650 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 2760 insertions(+)

does not work on x86-32

--- src/tests/ref/fate/color_utils      2024-12-06 21:09:00.541865625 +0100
+++ tests/data/fate/color_utils 2024-12-06 21:10:00.406330276 +0100
@@ -263,2692 +263,4 @@
 trc=smpte2084 calling func(15123.456700) expected=1.042921 roundtrip=15123.456700
 trc=smpte2084 calling func(19845.889230) expected=1.070677 roundtrip=19845.889230
 trc=smpte2084 calling func(98678.423100) expected=1.225908 roundtrip=98678.423100
-trc=smpte2084 calling func(99999.899998) expected=1.227127 roundtrip=99999.899998
-trc=smpte428 calling func(-0.100000) expected=0.000000 roundtrip=0.000000
-trc=smpte428 calling func(-0.018054) expected=0.000000 roundtrip=0.000000
-trc=smpte428 calling func(-0.010000) expected=0.000000 roundtrip=0.000000
-trc=smpte428 calling func(-0.004490) expected=0.000000 roundtrip=0.000000
-trc=smpte428 calling func(0.000000) expected=0.000000 roundtrip=0.000000
...
-trc=arib-std-b67 EOTF(50, 1.5, {0.3}) = {4.33808}
-trc=arib-std-b67 EOTF(50, 1.5, {0.4}) = {5.84815}
-trc=arib-std-b67 EOTF(50, 1.5, {0.5}) = {8.08169}
-trc=arib-std-b67 EOTF(50, 1.5, {0.6}) = {11.3853}
-trc=arib-std-b67 EOTF(50, 1.5, {0.7}) = {16.2716}
-trc=arib-std-b67 EOTF(50, 1.5, {0.8}) = {23.4989}
-trc=arib-std-b67 EOTF(50, 1.5, {0.9}) = {34.1888}
-trc=arib-std-b67 EOTF(50, 1.5, {1}) = {50}
-trc=arib-std-b67 EOTF(100, 1.5, {0}) = {1.5}
-trc=arib-std-b67 EOTF(100, 1.5, {0.1}) = {2.82113}
-trc=arib-std-b67 EOTF(100, 1.5, {0.2}) = {4.55608}
-trc=arib-std-b67 EOTF(100, 1.5, {0.3}) = {6.70485}
-trc=arib-std-b67 EOTF(100, 1.5, {0.4}) = {9.31566}
-trc=arib-std-b67 EOTF(100, 1.5, {0.5}) = {13.1594}
-trc=arib-std-b67 EOTF(100, 1.5, {0.6}) = {19.1309}
-trc=arib-std-b67 EOTF(100, 1.5, {0.7}) = {28.4082}
-trc=arib-std-b67 EOTF(100, 1.5, {0.8}) = {42.8211}
-trc=arib-std-b67 EOTF(100, 1.5, {0.9}) = {65.2128}
-trc=arib-std-b67 EOTF(100, 1.5, {1}) = {100}
-trc=arib-std-b67 EOTF(203, 1.5, {0}) = {1.5}
-trc=arib-std-b67 EOTF(203, 1.5, {0.1}) = {3.70512}
-trc=arib-std-b67 EOTF(203, 1.5, {0.2}) = {6.89058}
-trc=arib-std-b67 EOTF(203, 1.5, {0.3}) = {11.0564}
-trc=arib-std-b67 EOTF(203, 1.5, {0.4}) = {16.2025}
-trc=arib-std-b67 EOTF(203, 1.5, {0.5}) = {23.1645}
-trc=arib-std-b67 EOTF(203, 1.5, {0.6}) = {34.3482}
-trc=arib-std-b67 EOTF(203, 1.5, {0.7}) = {52.3484}
-trc=arib-std-b67 EOTF(203, 1.5, {0.8}) = {81.3198}
-trc=arib-std-b67 EOTF(203, 1.5, {0.9}) = {127.949}
-trc=arib-std-b67 EOTF(203, 1.5, {1}) = {203}
-trc=arib-std-b67 EOTF(1000, 1.5, {0}) = {1.5}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.1}) = {5.88189}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.2}) = {13.9736}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.3}) = {26.3592}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.4}) = {43.5217}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.5}) = {67.6771}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.6}) = {109.808}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.7}) = {184.977}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.8}) = {319.786}
-trc=arib-std-b67 EOTF(1000, 1.5, {0.9}) = {562.396}
-trc=arib-std-b67 EOTF(1000, 1.5, {1}) = {1000}
-trc=arib-std-b67 EOTF(10000, 1.5, {0}) = {1.5}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.1}) = {9.61469}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.2}) = {31.0816}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.3}) = {73.4178}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.4}) = {144.725}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.5}) = {262.813}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.6}) = {505.341}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.7}) = {1022.34}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.8}) = {2142.19}
-trc=arib-std-b67 EOTF(10000, 1.5, {0.9}) = {4594.07}
-trc=arib-std-b67 EOTF(10000, 1.5, {1}) = {10000}
+  FAIL
Test color_utils failed. Look at tests/data/fate/color_utils.err for details.
threads=1
make: *** [src/tests/Makefile:311: fate-color_utils] Error 1


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Some people wanted to paint the bikeshed green, some blue and some pink.
People argued and fought, when they finally agreed, only rust was left.
-------------- 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/20241206/83feda24/attachment.sig>


More information about the ffmpeg-devel mailing list