summaryrefslogtreecommitdiffstats
path: root/libavutil/tests
Commit message (Collapse)AuthorAgeFilesLines
* avutil: Add NV24 and NV42 pixel formatsPhilip Langdale2019-05-121-0/+1
| | | | | | | | | | | | | These are the 4:4:4 variants of the semi-planar NV12/NV21 formats. These formats are not used much, so we've never had a reason to add them until now. VDPAU recently added support HEVC 4:4:4 content and when you use the OpenGL interop, the returned surfaces are in NV24 format, so we need the pixel format for media players, even if there's no direct use within ffmpeg. Separately, there are apparently webcams that use NV24, but I've never seen one.
* avutil/tests/random_seed: seeds[] is uint32_t, therefore use PRIX32 macroPeter Ross2018-12-161-1/+1
| | | | squelch format type warning
* avutil/tests/parseutils: add some big duration testsMarton Balint2018-10-071-0/+4
| | | | Signed-off-by: Marton Balint <[email protected]>
* lavutil/pixelutils: add sad_32x32 in pixelutils API.Jun Zhao2018-07-311-1/+1
| | | | | | add sad_32x32 in pixelutils API, and update the fate. Signed-off-by: Jun Zhao <[email protected]>
* libavutil/encryption_info: Add unit tests.Jacob Trimble2018-06-272-0/+177
| | | | | Signed-off-by: Jacob Trimble <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avutil/gitignore: Ignore integer test binary.Jacob Trimble2018-06-271-0/+1
| | | | | Signed-off-by: Jacob Trimble <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* tests/bprint: Replace the number by macro for bprint initJun Zhao2018-06-171-6/+6
| | | | | | Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <[email protected]>
* hwcontext: Add test for device creation and derivationMark Thompson2018-05-212-0/+227
| | | | | | This uses any devices it can find on the host system - on a system with no hardware device support or in builds with no support included it will do nothing and pass.
* avutil/pixdesc: add AV_PIX_FMT_FLAG_ALPHA to AV_PIX_FMT_PAL8Marton Balint2018-04-301-4/+0
| | | | Signed-off-by: Marton Balint <[email protected]>
* avutil/integer: move the test to the corresponding subdirectoryJames Almer2018-03-201-0/+49
| | | | | | | And actually enable it. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* crc: add AV_CRC_8_SBC as a 8 bits CRC with polynomial 0x1DAurelien Jacobs2018-03-071-3/+4
|
* avutil/aes_ctr: Add method to set 16-byte IV.Jacob Trimble2018-01-231-1/+1
| | | | | Signed-off-by: Jacob Trimble <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* It has been replaced by C11 stdatomic.h and is now unused.Anton Khirnov2018-01-051-38/+0
| | | | | (cherry picked from commit 5cc0057f4910c8c72421b812c8f337ef6c43696c) Signed-off-by: James Almer <[email protected]>
* avutil: add AVX-512 flagsJames Darnley2017-12-241-0/+1
|
* Merge commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24'James Almer2017-11-011-3/+3
|\ | | | | | | | | | | | | * commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24': Convert all AVClass struct declarations to designated initializers. Merged-by: James Almer <[email protected]>
| * Convert all AVClass struct declarations to designated initializers.Diego Biurrun2017-06-121-3/+3
| |
* | avutil/tests/hmac: remove superfluous loopJames Almer2017-10-221-13/+1
| | | | | | | | | | | | The gap in enum values has been removed. Signed-off-by: James Almer <[email protected]>
* | add missing ignore filesJesse Liu2017-09-101-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | lavu/tests: move timer.h include earlierClément Bœsch2017-09-086-3/+15
| | | | | | | | | | In the next commit, timer.h will require a _GNU_SOURCE to be set before including system headers. This commit prevents compilation failures.
* | lavu/tests/des: rename crypt to crypt_refClément Bœsch2017-09-081-3/+3
| | | | | | | | | | This will prevent a symbol clash with crypt(3) after unistd.h is included.
* | fate: update pixfmt_best test to check for endiannessTobias Rapp2017-07-271-0/+14
| | | | | | | | Signed-off-by: Tobias Rapp <[email protected]>
* | pixdesc: Add a test for av_find_best_pix_fmt_of_2()Mark Thompson2017-07-181-0/+125
| |
* | avutil/tests: remove float_dsp testJames Almer2017-06-142-358/+0
| | | | | | | | | | | | It's been ported to checkasm. Signed-off-by: James Almer <[email protected]>
* | Merge commit 'b83aea73404f6f9314e72fe5d6238deaffa12b2c'Clément Bœsch2017-05-191-16/+19
|\| | | | | | | | | | | | | | | | | * commit 'b83aea73404f6f9314e72fe5d6238deaffa12b2c': des-test: Pass the proper types to av_des_*() functions See 183c3fa48acaf4561d5269ab9a766d13ae70140c Merged-by: Clément Bœsch <[email protected]>
| * des-test: Pass the proper types to av_des_*() functionsDiego Biurrun2017-01-241-16/+19
| | | | | | | | Fixes a number of incompatible pointer type warnings.
| * avutil: fix data race in av_get_cpu_flags()Wan-Teh Chang2016-12-082-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the one-time initialization in av_get_cpu_flags() thread-safe. The static variables |flags|, |cpuflags_mask|, and |checked| in libavutil/cpu.c are read and written using normal load and store operations. These are considered as data races. The fix is to use atomic load and store operations. Remove the |checked| variable because the invalid value of -1 for |flags| can be used to indicate the same condition. Rename |flags| to |cpu_flags| and move it to file scope. The fix can be verified by running the libavutil/tests/cpu_init.c test program under ThreadSanitizer: ./configure --toolchain=clang-tsan make libavutil/tests/cpu_init libavutil/tests/cpu_init There should be no warnings from ThreadSanitizer. Co-author: Dmitry Vyukov of Google, who suggested the data race fix. Signed-off-by: Wan-Teh Chang <[email protected]>
| * lavu: remove the custom atomic APIAnton Khirnov2016-10-021-35/+0
| | | | | | | | It has been replaced by C11 stdatomic.h and is now unused.
* | avutil/avstring: improve av_strreplace implementSteven Liu2017-04-111-0/+16
| | | | | | | | | | | | | | | | Use AVBprint to implement av_strreplace add av_strreplace test case TEST_STRREPLACE Reviewed-by: Nicolas George <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* | avutil/float_dsp: add test for vector_dmac_scalarJames Almer2017-04-101-0/+24
| |
* | avutil/tests/dict: Check return of av_dict_parse_string()Michael Niedermayer2017-03-301-1/+4
| | | | | | | | | | | | Fixes: CID1396402 Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/lfg: Remove debugging start/stop timerMichael Niedermayer2017-03-081-3/+0
| | | | | | | | | | | | Fixes code with qemu ARM Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/lfg.c: added proper normality testThomas Turner2017-03-081-22/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Chen-Shapiro(CS) test was used to test normality for Lagged Fibonacci PRNG. Normality Hypothesis Test: The null hypothesis formally tests if the population the sample represents is normally-distributed. For CS, when the normality hypothesis is True, the distribution of QH will have a mean close to 1. Information on CS can be found here: http://www.stata-journal.com/sjpdf.html?articlenum=st0264 http://www.originlab.com/doc/Origin-Help/NormalityTest-Algorithm Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | add locale month names to av_small_strptimeMicah Galizia2017-02-261-0/+7
| | | | | | | | | | Signed-off-by: Micah Galizia <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests: add aes_ctr, audio_fifo and imgutils to .gitignoreMatthieu Bouron2017-01-171-0/+3
| |
* | avutil/tests/audio_fifo.c: pass by reference for efficiency and change ↵Thomas Turner2017-01-131-15/+15
| | | | | | | | | | | | | | datatype to const Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests: added selftest for aes_ctr.cThomas Turner2017-01-021-0/+65
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests: improved code coverage for atomicThomas Turner2017-01-011-1/+5
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/audio_fifo.c: Memory leak and tab space fixesThomas Turner2016-12-311-6/+14
| | | | | | | | | | | | | | | | | | | | | | Prevents memory leak when read_samples_from_audio_fifo() is called more than once by deallocating before reallocating more memory. Fixes space indentation for contents in ERROR(). Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/audio_fifo.c: use av_malloc() family of functionsThomas Turner2016-12-311-13/+9
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/audio_fifo.c: Corrected test error messagesThomas Turner2016-12-281-2/+2
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | tests/audio_fifo: fix buffer allocation for non planar formatsJames Almer2016-12-231-3/+3
| | | | | | | | Signed-off-by: James Almer <[email protected]>
* | avutil/tests/random_seed: eliminate gotoMichael Niedermayer2016-12-231-5/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests: Improved code coverage for random_seedThomas Turner2016-12-231-13/+21
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | tests/avstring: free the pointer after calls to av_d2str()James Almer2016-12-221-2/+4
| | | | | | | | | | | | Fixes memleaks. Signed-off-by: James Almer <[email protected]>
* | avutil: Added selftest for libavutil/audio_fifo.cThomas Turner2016-12-211-0/+196
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil: Improved test coverage for avstring.cThomas Turner2016-12-201-1/+25
| | | | | | | | | | Signed-off-by: Thomas Turner <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests/imgutils: Remove unused variableMichael Niedermayer2016-12-131-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/tests: run the cpu_init.c test conditionally on HAVE_THREADSWan-Teh Chang2016-12-101-7/+0
| | | | | | | | | | | | | | Suggested by Diego Biurrun and James Almer. Signed-off-by: Wan-Teh Chang <[email protected]> Signed-off-by: James Almer <[email protected]>
* | avutil/cpu_init: remove unnecessary arguments to the main() functionWan-Teh Chang2016-12-101-1/+1
| | | | | | | | Signed-off-by: James Almer <[email protected]>
* | fate: add av_image_check_size() testMichael Niedermayer2016-12-101-0/+37
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>