rcombs
f8e284be69
swscale: introduce isSwappedChroma
3 years ago
rcombs
e5d83463c8
swscale: introduce isDataInHighBits
3 years ago
Mark Reid
6bf57c6a2a
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>
4 years ago
Michael Niedermayer
663f024415
swscale/tests/swscale: use 1 for indicating erros
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years ago
Michael Niedermayer
24c575e0aa
swscale/tests/swscale: Initialize res to a non random error code
...
Regression since: 3adffab073
-1 is consistent what other error paths return
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years ago
Michael Niedermayer
ec27c1827c
swscale/tests/swscale: Fix incorrect return code check
...
Regression since: 3adffab073
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years ago
Lynne
3adffab073
swscale/tests: check return value of sws_scale
4 years ago
Michael Niedermayer
9d269301f0
swscale/tests/swscale: Lengthen pixfmt name buffer to 21 bytes
...
Some formats use longer names than 12.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Adam Richter
b8ed493061
libswcale: Fix possible string overflow in test.
...
In libswcale/tests/swcale.c, the function fileTest() calls sscanf in
an argument of "%12s" on character srcStr[] and dstStr[], which are
only 12 bytes. So, if the input string is 12 characters, a
terminating null byte can be written past the end of these arrays.
This bug was found by cppcheck.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Philip Langdale
4fa4f1d7a9
swscale: Add test for isSemiPlanarYUV to pixdesc_query
...
Lauri had asked me what the semi planar formats were and that reminded
me that we could add it to pixdesc_query so we know exactly what the
list is.
6 years ago
Clément Bœsch
797c232ef8
sws/tests/pixdesc_query: fix use of free() instead of av_free()
...
Fix CID 1415949
7 years ago
Clément Bœsch
4158fba3cd
sws/tests/pixdesc_query: replace rgb based pix fmts with endianess agnostic names
...
Fixes ticket #6554
7 years ago
Clément Bœsch
d2c70fc887
sws/tests/pixdesc_query: sort pixel formats
7 years ago
Clément Bœsch
ca23d3491d
sws/tests/pixdesc_query: save every pix fmts in a list
...
This will be required for the next commit.
7 years ago
Michael Niedermayer
7796f29065
libswscale/tests/swscale: Fix uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
0fd0d4fd0a
swscale-test: const correctness
8 years ago
Clément Bœsch
99dd6fe62c
sws/tests/pixdesc_query: remove func wrappers
8 years ago
Clément Bœsch
d6635daded
swscale: remove unused is{RGB,BGR}inBytes
8 years ago
Clément Bœsch
08e1376d81
fate: add fate-sws-pixdesc-query
...
Test the pixel format querying within libswscale.
8 years ago
Diego Biurrun
5c0e2b13eb
swscale-test: const correctness for pointer variable
...
libswscale/swscale-test.c:369:20: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [-Wincompatible-pointer-types]
libswscale/swscale.h:207:5: note: expected ‘const uint8_t * const* {aka const unsigned char * const*}’ but argument is of type ‘uint8_t ** {aka unsigned char **}’
8 years ago
Diego Biurrun
1263b2039e
Adjust printf conversion specifiers to match variable signedness
8 years ago
Michael Niedermayer
7a6c288c2b
swscale/tests/swscale: add cpuflags option
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
facdfe4080
swscale: Add proper ff_ prefix to init functions
...
They are internal symbols that should not be exported.
based on a patch by Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago