mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
Make selfTest() perform tests where both the input and output formats
are supported, avoid pointless loops. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30377 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2c6df2c120
commit
85d89af72e
@ -198,10 +198,16 @@ static void selfTest(uint8_t *ref[4], int refStride[4], int w, int h)
|
|||||||
enum PixelFormat srcFormat, dstFormat;
|
enum PixelFormat srcFormat, dstFormat;
|
||||||
|
|
||||||
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
|
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
|
||||||
|
if (!sws_isSupportedInput(srcFormat))
|
||||||
|
continue;
|
||||||
|
|
||||||
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
|
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
|
if (!sws_isSupportedOutput(dstFormat))
|
||||||
|
continue;
|
||||||
|
|
||||||
printf("%s -> %s\n",
|
printf("%s -> %s\n",
|
||||||
sws_format_name(srcFormat),
|
sws_format_name(srcFormat),
|
||||||
sws_format_name(dstFormat));
|
sws_format_name(dstFormat));
|
||||||
|
Loading…
Reference in New Issue
Block a user