aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* checkasm/flacdsp: run lpc benchmarks with an unmodified bufferJames Almer2024-05-121-3/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* riscv: add Zvbb vector bit manipulation extensionRémi Denis-Courmont2024-05-111-0/+1
|
* checkasm: Fix h264chroma test namesunyuechi2024-05-111-17/+17
| | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
* checkasm: add test for fdctRamiro Polla2024-05-115-0/+77
| | | | | Reviewed-by: Martin Storsjö <martin@martin.st> Reviewed-by: Rémi Denis-Courmont <remi@remlab.net>
* libavcodec/motion_est: fix penalty_factor for b framesRamiro Polla2024-05-116-18/+18
| | | | | | In direct_search() and ff_estimate_b_frame_motion(), penalty_factor would be used before being initialized in estimate_motion_b(). Also, the initialization would happen more than once unnecessarily.
* tests/checkasm/svq1enc: Use proper range for inputAndreas Rheinhardt2024-05-091-2/+3
| | | | | | | | | | | | | | | | | ssd_int8_vs_int16 is only called from encode_block() in svq1enc.c; it calls it in stages: At stage 0, the int16_t array contains the difference of two uint16_t. At each of the following stages, the int16_t array is filled by subtracting an int8_t from the current stage's int16_t array. The maximum stage is five, so the int16_t are in the range (-255 - 5 * 127)..(255 + 5 * 128). This commit modifies the checkasm test to only use values from this range, fixing (undefined) integer overflow in the test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* checkasm/blockdsp: use smallest allowed aligned buffers for fill_block_tab testsJames Almer2024-05-081-14/+7
| | | | | | | The requirement is either 8 or 16 bytes alignment, not 32. This should help finding bugs in asm implementations. Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm/blockdsp: don't randomize the buffers for fill_block_tabJames Almer2024-05-081-1/+2
| | | | | | | It ignores and overwrites the previous values. Fixes running the test under ubsan. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opt: add an unsigned option typeJames Almer2024-05-041-2/+30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/opt: test values > INT_MAX for INT64 typeJames Almer2024-05-041-11/+14
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/opt: test negative values for INT and INT64 typesJames Almer2024-05-041-5/+30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm/rv40dsp: add chroma_mc testsunyuechi2024-05-035-0/+81
| | | | | | This is similar to h264. Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
* checkasm/blockdsp: add fill_block testsunyuechi2024-05-031-0/+31
| | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
* fate/scale2ref_keep_aspect: switch to vf_scale ref_*Niklas Haas2024-05-031-2/+1
|
* checkasm: vc1dsp: Align buffers sufficiently for the mspel testsMartin Storsjö2024-04-301-4/+4
| | | | | | This fixes crashes in the mspel tests on x86. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm/vc1dsp: add mspel_pixels testsunyuechi2024-04-291-0/+37
| | | | Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
* fate: allow https for git URLsTimo Rothenpieler2024-04-271-2/+2
|
* opusdsp: add ability to modify deemphasis constantLynne2024-04-271-4/+5
| | | | | | | | | | xHE-AAC relies on the same postfilter mechanism that Opus uses to improve clarity (albeit with a steeper deemphasis filter). The code to apply it is identical, it's still just a simple IIR low-pass filter. This commit makes it possible to use alternative constants.
* fate/iamf: don't demux packets in fate-iamf-5_1-{copy,demux}James Almer2024-04-253-210/+2
| | | | | | | They contain side data whose size is arch dependent. This fixes fate failures on 32bit targets. Signed-off-by: James Almer <jamrial@gmail.com>
* fate/iamf: add a demux textJames Almer2024-04-242-0/+414
| | | | | | Using the same input sample as iamf-5_1-copy, in order to compare both test's output Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/ffmpeg_mux_init: add missing IAMF Param Definition copiesJames Almer2024-04-241-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/iamf: add a remux test with stream group copyingJames Almer2024-04-242-1/+417
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opt: add support for children objects in av_opt_serializeJames Almer2024-04-231-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/opt: test av_opt_find2()James Almer2024-04-231-0/+7
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/test/opt: test the AV_OPT_SERIALIZE_SKIP_DEFAULTS flagJames Almer2024-04-231-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/frame: add a flag to allow overwritting existing entriesJames Almer2024-04-111-11/+11
| | | | | | Enable it only for side data types that don't allow more than one entry. Signed-off-by: James Almer <jamrial@gmail.com>
* tests/movenc: Validate that normal muxer usage doesn't print warningsMartin Storsjö2024-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | We have test to make sure that certain configurations do print warnings. However, the normal operation of the muxer within this test always printed a warning, so those tests to check for extra warnings didn't essentially guard anything. The warning that always was printed, "track 1: codec frame size is not set" was not present in the libav fork where this testcase originated, it was removed in f234e8a32e6c69d7b63f8627f278be7c2c987f43. Set the frame size for the audio stream to silence the warning, and use this frame size in a couple later calculations, and check that one test configuration doesn't print warnings. Setting the frame size apparently changes the rounding of a timestamp in the ismv muxing testcase. Signed-off-by: Martin Storsjö <martin@martin.st>
* tests/checkasm: add exclude_guest for non-x86 linux perfJ. Dekker2024-04-101-0/+3
| | | | | | | | | | | The exclude_guest option only has an effect on x86. Omitting 'exclude_guest' defaults to zero which implies that you can count guest events should you run one. Some non-x86 kernels just ignore it, while others (e.g. the Asahi Linux kernels) require the user to explicitly set the option to 1, i.e. the only behaviour that makes sense when counting guest events isn't supported. Signed-off-by: J. Dekker <jdek@itanimul.li>
* movenc: Allow writing timed ID3 metadataMartin Storsjö2024-04-101-0/+8
| | | | | | | | | | | | | This is based on a spec at https://aomediacodec.github.io/id3-emsg/, further based on ISO/IEC 23009-1:2019. Within libavformat, timed ID3 metadata (already supported by the mpegts demuxer and muxer) is handled as a separate data AVStream with codec type AV_CODEC_ID_TIMED_ID3. However, it doesn't have a corresponding track in the mov file - instead, these events are written as separate toplevel 'emsg' boxes. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat/mov_chan: respect channel order when parsing and creating chnl atomMarton Balint2024-04-091-1/+1
| | | | | | | | Previously we always assumed that the channels are in native order, even if they were not. The new channel layout API allows us to signal the proper channel order, so let's do so. Signed-off-by: Marton Balint <cus@passwd.hu>
* configure, etc: switch to shebang without spaceJ. Dekker2024-04-092-2/+2
| | | | | | | | | Note that the config.sh file is left without a shebang, this file is supposed to be sourced into the current environment. This commit is purely cosmetic. Signed-off-by: J. Dekker <jdek@itanimul.li>
* avcodec/ac3: Implement sum_square_butterfly_float for aarch64 NEONGeoff Hill2024-04-081-0/+26
| | | | | Signed-off-by: Geoff Hill <geoff@geoffhill.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/ac3: Implement sum_square_butterfly_int32 for aarch64 NEONGeoff Hill2024-04-081-0/+27
| | | | | Signed-off-by: Geoff Hill <geoff@geoffhill.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/ac3: Implement ac3_extract_exponents for aarch64 NEONGeoff Hill2024-04-081-0/+38
| | | | | Signed-off-by: Geoff Hill <geoff@geoffhill.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/ac3: Implement ac3_exponent_min for aarch64 NEONGeoff Hill2024-04-081-0/+42
| | | | | Signed-off-by: Geoff Hill <geoff@geoffhill.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/ass,webvttdec: implement more portable curly brace escapesOneric2024-04-061-1/+1
| | | | | | | | | | | | | Unlike what the old comment suggested, standard ASS has no character escape mechanism, but a closing curly bracket doesn't even need one. For manual authored sub files using a full-width variant of an appropriate font and with scaling and spacing modifiers is a common workaround. This is not an option here, but we can still make things much less bad. Now the desired opening bracket still shows up in libass, and standard renders will merely display a backslash in its place instead of stripping the following text like before.
* avcodec/webvttdec: honour bidi marksOneric2024-04-061-1/+1
|
* fate/ffmpeg: Avoid dependency on samplesAndreas Rheinhardt2024-04-055-171/+171
| | | | | | | | | | | | | | | Creating vsynth_lena.yuv needs the FATE suite, yet several tests in ffmpeg.mak without a dependency on samples used it as input file. Fix this by using vsynth1.yuv (which does not have such a dependency) instead. Also use vsynth1.yuv in fate-shortest to avoid the samples dependency in this test, too. Fixes ticket #10947. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/wavpack: Add test for DSDAndreas Rheinhardt2024-04-042-0/+4
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vvc: Rename vvc_?foo->fooAndreas Rheinhardt2024-04-041-3/+3
| | | | | | | | A namespace is unnecessary here given that all these files are already in the vvc subfolder. Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/ffprobe: Fix test requirementsAndreas Rheinhardt2024-04-032-31/+10
| | | | | | | | The ffprobe-test file is generated via ffmpeg and several filters; the requirements for them were missing. Also deduplicate this while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/api: Fix requirements of fate-api-seekAndreas Rheinhardt2024-04-031-1/+1
| | | | | | It relies on the fate-lavf-flv test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/lavf-container: Check earlier for presence of ffmpeg cliAndreas Rheinhardt2024-04-031-1/+1
| | | | | | | | | Several other tests (e.g. concatdec) examine FATE_LAVF_CONTAINER in order to enable or disable tests that depend on samples created by the lavf-container tests; right now this procedure did not account for CONFIG_FFMPEG. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/libswscale: Disable ffmpeg-dependent tests without ffmpegAndreas Rheinhardt2024-04-031-5/+4
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/vvc: add vvc-conformance-IBC_B_Tencent_2James Almer2024-04-022-0/+23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/vvc: add vvc-conformance-SUBPIC_C_ERICSSON_1James Almer2024-04-022-0/+38
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/vvc: disable vvc-conformance-OPI_B_3 and vvc-conformance-VPS_A_3James Almer2024-04-023-14/+2
| | | | | | | | | Both samples rely on a feature our decoder doesn't currently support. Should fix fate failures on some systems where not even the one single frame could be generated. Signed-off-by: James Almer <jamrial@gmail.com>
* fate/fits: Fix tests on BEAndreas Rheinhardt2024-04-022-2/+2
| | | | | | | | | | | | | | | The fits decoder decodes to native pixel formats; so the fitsdec-gbrap16be fate test failed on BE despite its name because the reference file is LE. This patch fixes this by forcing a pixel format; the forced pixel format is BE, causing a change in the reference file. The fitsdec-gbrp16be test was not affected, because its source file (lena-rgb48.png from tne FATE suite) is actually biendian (as if someone had multiplied 8bit content by 257...). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/filter-video: Insert scale, format filters in filter-yadif,bwdif10Andreas Rheinhardt2024-04-021-3/+3
| | | | | | | | The format and the first scale filter ensures that the filter processing actually happens in high bit depth; the second scale filter is only necessary for big endian arches. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/filter-video: Always use little endian pixel formatAndreas Rheinhardt2024-04-021-1/+1
| | | | | | Fixes filter-metadata-signalstats-yuv420p10 on BE arches. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>