diff options
author | Mark Reid <mindmark@gmail.com> | 2020-09-28 20:44:33 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-02 14:59:52 +0200 |
commit | 6bf57c6a2a30f80f6182408c9605e11a109b0486 (patch) | |
tree | 3d8bcd5e0cb50d6bf627ffa833d8ef00bdfb485f /tests | |
parent | a191d4166f8fafaf415ebc489ebbc8f6d8d174fe (diff) | |
download | ffmpeg-6bf57c6a2a30f80f6182408c9605e11a109b0486.tar.gz |
libswscale/tests: add floatimg_cmp test
changes since v1:
- made into fate test
- fixed c90 warnings
- tests more intermediate formats
- tested on BE mips too
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/libswscale.mak | 4 | ||||
-rw-r--r-- | tests/ref/fate/sws-floatimg-cmp | 120 |
2 files changed, 124 insertions, 0 deletions
diff --git a/tests/fate/libswscale.mak b/tests/fate/libswscale.mak index 68eb159fec..5ec5f34cc4 100644 --- a/tests/fate/libswscale.mak +++ b/tests/fate/libswscale.mak @@ -2,6 +2,10 @@ FATE_LIBSWSCALE += fate-sws-pixdesc-query fate-sws-pixdesc-query: libswscale/tests/pixdesc_query$(EXESUF) fate-sws-pixdesc-query: CMD = run libswscale/tests/pixdesc_query$(EXESUF) +FATE_LIBSWSCALE += fate-sws-floatimg-cmp +fate-sws-floatimg-cmp: libswscale/tests/floatimg_cmp$(EXESUF) +fate-sws-floatimg-cmp: CMD = run libswscale/tests/floatimg_cmp$(EXESUF) + FATE_LIBSWSCALE += $(FATE_LIBSWSCALE-yes) FATE-$(CONFIG_SWSCALE) += $(FATE_LIBSWSCALE) fate-libswscale: $(FATE_LIBSWSCALE) diff --git a/tests/ref/fate/sws-floatimg-cmp b/tests/ref/fate/sws-floatimg-cmp new file mode 100644 index 0000000000..24204254c4 --- /dev/null +++ b/tests/ref/fate/sws-floatimg-cmp @@ -0,0 +1,120 @@ +gbrpf32le -> yuv444p16le -> gbrpf32le +avg diff: 0.003852 +min diff: 0.000000 +max diff: 0.006638 +gbrpf32le -> yuv444p -> gbrpf32le +avg diff: 0.004316 +min diff: 0.000000 +max diff: 0.012704 +gbrpf32le -> yuv444p9le -> gbrpf32le +avg diff: 0.004053 +min diff: 0.000001 +max diff: 0.009402 +gbrpf32le -> yuv444p10le -> gbrpf32le +avg diff: 0.003960 +min diff: 0.000000 +max diff: 0.008123 +gbrpf32le -> yuv444p12le -> gbrpf32le +avg diff: 0.003878 +min diff: 0.000000 +max diff: 0.007011 +gbrpf32le -> yuv444p14le -> gbrpf32le +avg diff: 0.003868 +min diff: 0.000000 +max diff: 0.006729 +gbrpf32le -> rgb24 -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> bgr24 -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> rgba -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> bgra -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> argb -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> abgr -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> 0rgb -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> 0bgr -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> rgb0 -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> bgr0 -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> rgb48le -> gbrpf32le +avg diff: 0.003851 +min diff: 0.000000 +max diff: 0.007076 +gbrpf32le -> bgr48le -> gbrpf32le +avg diff: 0.003851 +min diff: 0.000000 +max diff: 0.007076 +gbrpf32le -> rgba64le -> gbrpf32le +avg diff: 0.003851 +min diff: 0.000000 +max diff: 0.007076 +gbrpf32le -> bgra64le -> gbrpf32le +avg diff: 0.003851 +min diff: 0.000000 +max diff: 0.007076 +gbrpf32le -> gbrp -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> gbrap -> gbrpf32le +avg diff: 0.004122 +min diff: 0.000000 +max diff: 0.008975 +gbrpf32le -> gbrp9le -> gbrpf32le +avg diff: 0.007737 +min diff: 0.000000 +max diff: 0.014009 +gbrpf32le -> gbrp10le -> gbrpf32le +avg diff: 0.007662 +min diff: 0.000000 +max diff: 0.013605 +gbrpf32le -> gbrap10le -> gbrpf32le +avg diff: 0.007662 +min diff: 0.000000 +max diff: 0.013605 +gbrpf32le -> gbrp12le -> gbrpf32le +avg diff: 0.007622 +min diff: 0.000000 +max diff: 0.013335 +gbrpf32le -> gbrap12le -> gbrpf32le +avg diff: 0.007622 +min diff: 0.000000 +max diff: 0.013335 +gbrpf32le -> gbrp14le -> gbrpf32le +avg diff: 0.007620 +min diff: 0.000000 +max diff: 0.013232 +gbrpf32le -> gbrp16le -> gbrpf32le +avg diff: 0.007680 +min diff: 0.000000 +max diff: 0.013275 +gbrpf32le -> gbrap16le -> gbrpf32le +avg diff: 0.007680 +min diff: 0.000000 +max diff: 0.013275 |