swscale/tests/swscale: Test a wider range of flag combinations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-02-14 21:52:18 +01:00
parent 35ab103c30
commit 885a802f24
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 4 additions and 2 deletions

View File

@ -296,8 +296,10 @@ static void selfTest(const uint8_t * const ref[4], int refStride[4],
enum AVPixelFormat srcFormat_in, enum AVPixelFormat srcFormat_in,
enum AVPixelFormat dstFormat_in) enum AVPixelFormat dstFormat_in)
{ {
const int flags[] = { SWS_FAST_BILINEAR, SWS_BILINEAR, SWS_BICUBIC, const int flags[] = { SWS_FAST_BILINEAR,
SWS_X, SWS_POINT, SWS_AREA, 0 }; SWS_BILINEAR, SWS_BICUBIC,
SWS_X|SWS_BITEXACT , SWS_POINT , SWS_AREA|SWS_ACCURATE_RND,
SWS_BICUBIC|SWS_FULL_CHR_H_INT|SWS_FULL_CHR_H_INP, 0};
const int srcW = w; const int srcW = w;
const int srcH = h; const int srcH = h;
const int dstW[] = { srcW - srcW / 3, srcW, srcW + srcW / 3, 0 }; const int dstW[] = { srcW - srcW / 3, srcW, srcW + srcW / 3, 0 };