swscale/tests/swscale: Highlight cases that worsened

also highlight cases that worsened alot in uppercase

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-02-14 22:19:04 +01:00
parent f7770ec9a4
commit 6ebe4ebee3
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 9 additions and 0 deletions

View File

@ -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);