diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-14 22:19:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-15 23:07:44 +0100 |
commit | 6ebe4ebee3241d7cedd8f7ae6ba6c970f2e6e594 (patch) | |
tree | 5b95a849b9040d2e0603ea66f7149c7d6afc3d21 /libswscale/tests | |
parent | f7770ec9a4c9f3db3dcc198a390edc8780e1bb89 (diff) | |
download | ffmpeg-6ebe4ebee3241d7cedd8f7ae6ba6c970f2e6e594.tar.gz |
swscale/tests/swscale: Highlight cases that worsened
also highlight cases that worsened alot in uppercase
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/tests')
-rw-r--r-- | libswscale/tests/swscale.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index 68434fb7ba..32e1f96be2 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -285,6 +285,15 @@ static int doTest(const uint8_t * const ref[4], int refStride[4], int w, int h, av_free(out[i]); } + if(r){ + if(ssdY>r->ssdY*1.02+1 || ssdU>r->ssdU*1.02+1 || ssdV>r->ssdV*1.02+1|| ssdA>r->ssdA*1.02+1) + printf("WORSE SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"", + r->ssdY, r->ssdU, r->ssdV, r->ssdA); + else if(ssdY>r->ssdY || ssdU>r->ssdU || ssdV>r->ssdV|| ssdA>r->ssdA) + printf("worse SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"", + r->ssdY, r->ssdU, r->ssdV, r->ssdA); + } + printf(" CRC=%08x SSD=%5"PRId64 ",%5"PRId64 ",%5"PRId64 ",%5"PRId64 "\n", crc, ssdY, ssdU, ssdV, ssdA); |