summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/snowenc: Fix visual weight calculationMichael Niedermayer2023-03-277-38/+38
| | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 5b5fcadea059ab458a886261a5b7a1cc134b517a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: update reference files after the recent dash manifest muxer changesJames Almer2022-04-084-4/+4
| | | | | | | Missed in 487b49d8f2e1e81dce86230fc957ca2ee9de00ee. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit aa0829d834232b13e513fb88b2b9a2b74918e05c)
* fate/ffmpeg: add missing samples dependency to fate-shortestJames Almer2022-01-161-1/+1
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit b1ef5882e35d1a95e9c4838d0933084773055345)
* avformat/movenc: fix duration in mdhd boxZhao Zhili2022-01-104-4/+4
| | | | | | | | mvhd and tkhd present the post-editlist duration, while mdhd should have the pre-editlist duration. Regression since c2424b1f3. Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit f37e66b3937a914e16d89a9050f042ad89567245)
* fate/subtitles: Fix check for fate-binsub-mksenc testAndreas Rheinhardt2022-01-081-1/+1
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit e852b1b0631c14c81d49230931fac4593e7467e1)
* lavfi/drawutils: re-enable P010 and P016 supportrcombs2022-01-041-0/+2
| | | | These formats now work as expected.
* lavfi/drawutils: overhaul to improve pixel format supportrcombs2022-01-041-10/+10
| | | | | | | | | | | | - No longer mixes u8 and u16 component accesses (this was UB) - De-duplicated 8->16 conversion - De-duplicated component -> plane+offset conversion - De-duplicated planar + packed RGB - No longer calls ff_fill_rgba_map - Removed redundant comp_mask data member - RGB0 and related formats no longer write an alpha value to the 0 byte - Non-planar YA formats now work correctly - High-bit-depth semi-planar YUV now works correctly
* lavfi/drawutils: reject shift-packed formatsrcombs2022-01-041-2/+0
| | | | Disables x2bgr10/x2rgb10 (which did not behave correctly before).
* swscale: introduce isSwappedChromarcombs2022-01-041-0/+5
|
* swscale: introduce isDataInHighBitsrcombs2022-01-041-0/+12
|
* swscale/output: template-ize yuv2nv12cX 10-bit and 16-bit casesrcombs2022-01-0414-42/+42
| | | | | | Fixes incorrect big-endian output introduced in 88d804b7ffa20caab2e8e2809da974c41f7fd8fc Avoids making the filter-time BE check more expensive
* lavc/hevcdec: Parse DOVI RPU NALsNiklas Haas2022-01-041-0/+224
| | | | | | | | | | | | | | | | And expose the parsed values as frame side data. Update FATE results to match. It's worth documenting that this relies on the dovi configuration record being present on the first AVPacket fed to the decoder, which in practice is the case if if the API user has called something like av_format_inject_global_side_data, which is unfortunately not the default. This commit is not the time and place to change that behavior, though. Signed-off-by: Niklas Haas <git@haasn.dev> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate: Limit Dolby Vision RPU test frame countNiklas Haas2022-01-042-500/+1
| | | | | | | | | To avoid the ref for this growing to a very large size when attaching the parsed RPU side data. Since this sample does not have any dynamic metadata, two frames will serve just as well as 100. Signed-off-by: Niklas Haas <git@haasn.dev> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/libswcale: add missing samples dependency to sws-slice testsJames Almer2022-01-031-2/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/imf: TestsPierre-Anthony Lemieux2021-12-312-0/+58
| | | | | Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com> Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
* avformat/mxfenc: fix DNxHD GC element_typeNicolas Gaullier2021-12-271-1/+1
| | | | | | | | | | | | | | | | The values for the essence element type were updated in the spec from 0x05/0x06 (ST2019-4 2008) to 0x0C/0x0D (ST2019-4 2009). Fixes ticket #6380. Thanks-to: Philip de Nier <philip.denier@bbc.co.uk> Thanks-to: Matthieu Bouron <matthieu.bouron@gmail.com> Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: fix DNxHD GC container_ulNicolas Gaullier2021-12-271-1/+1
| | | | | | | Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris> Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Marton Balint <cus@passwd.hu>
* FATE: always pass -nostdin to ffmpegrcombs2021-12-2210-25/+25
| | | | | This avoids making terminal config changes that may not be reverted properly during parallel testing.
* swscale: add P210/P410/P216/P416 outputrcombs2021-12-2219-0/+88
|
* ffprobe: add missing separator when printing side data in compact outputJames Almer2021-12-2215-816/+780
| | | | | | Should fix ticket #7153 Signed-off-by: James Almer <jamrial@gmail.com>
* libavformat: add side_data copy in concat demuxerGerard Sole2021-12-225-2/+5
| | | | | | | | | | | | Adds support for concat demuxer to copy the side data information from the input file to the resulting file. It will behave like the metadata copy, where the metadata of the first file is kept in the the output file. Extract the current code that already performs the stream side_data copy into a separate method and reuse the method in the concat demuxer. Signed-off-by: Gerard Sole <g.sole.ca@gmail.com>
* fate: use single thread for rawvideoLimin Wang2021-12-221-5/+5
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* libswscale: Test AV_CPU_FLAG_SLOW_GATHER for hscale functions.Alan Kelly2021-12-211-1/+1
| | | | | This is instead of EXTERNAL_AVX2_FAST so that the avx2 hscale functions are only used where they are faster.
* checkasm: Use the correct AVTXContext in av_tx testsHenrik Gramner2021-12-201-8/+27
| | | | | Keep a reference to the correct associated context of the reference function and use that context when calling the reference function.
* tests/dnn: Make DNN tests regular libavfilter testsAndreas Rheinhardt2021-12-1912-1395/+20
| | | | | | | | | | | | | | | | | They test libavfilter internal API, so they should be libavfilter test programs (which implies: linked statically to libavfilter to access internal APIs and linked normally (statically or dynamically depending upon the build configuration) against all the other libs). Right now, they are always linked statically against all libs, which is a significant size waste compared to shared libs as all of libavcodec has been pulled in despite not being really used. This also leads to linking failures on systems for which av_export_avutil is intended: libavcodec does not expect to be linked statically against the library providing avpriv_(cga|vga16)_font in this case. This is fixed by this commit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cdgraphics: fix transparency handlingPaul B Mahol2021-12-181-199/+199
|
* x86/swscale: fix minor coding style issuesAlan Kelly2021-12-161-2/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libswscale: Adds ff_hscale8to15_4_avx2 and ff_hscale8to15_X4_avx2 for all ↵Alan Kelly2021-12-151-5/+15
| | | | | | | | | | filter sizes. Fixes so that fate under 64 bit Windows passes. These functions replace all ff_hscale8to15_*_ssse3 when avx2 is available. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: [loongarch] Add support for loongarch SIMD.Shiyou Yin2021-12-151-0/+3
| | | | | | | | | | | LSX and LASX is loongarch SIMD extention. They are enabled by default if compiler support it, and can be disabled with '--disable-lsx' '--disable-lasx'. Change-Id: Ie2608ea61dbd9b7fffadbf0ec2348bad6c124476 Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Reviewed-by: guxiwei <guxiwei-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* FATE: stop using numeric arguments to -vsyncAnton Khirnov2021-12-075-8/+8
| | | | Symbolic names are always preferable.
* fate/ffmpeg: Fix requirements of shortest testsAndreas Rheinhardt2021-12-021-3/+17
| | | | | | | Fixes FATE failures if e.g. libavdevice is disabled. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/ffmpeg: Fix shortest testsAndreas Rheinhardt2021-12-024-216/+212
| | | | | | | | | | | | | | | | | | The mpeg4 encoder is slice-threaded and its output depends upon the number of threads used. Therefore all tests of this encoder use a hardcoded number of threads (ENC_OPTS in fate-run.sh contains "-threads 1"; only the vsynth%-mpeg4-thread tests override this for the mpeg4 encoder, but they also use a hardcoded value to be consistent across different systems); only the new shortest and copy-shortest[12] (implicitly due to the sample used) tests don't and this leads to FATE-failures. Fix this by explicitly setting the thread count. Also switch the shortest test to framecrc, because hashing side data is itchy even though the side data used here (AV_PKT_DATA_QUALITY_STATS) has a defined endianness. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/ffmpeg: add some more flags to the shortest testsJames Almer2021-12-014-155/+155
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffmpeg: add missing bitexact flags to the shortest testsJames Almer2021-12-013-106/+108
| | | | | | Should fix fate failures on some targets. Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffmpeg: add tests for shortest optionJames Almer2021-12-014-0/+389
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/ffprobe: print size of attachment streams (extradata_size)softworkz2021-11-2912-12/+13
| | | | | Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavu/pixfmt: add high-bit-depth semi-planar 4:2:2/4:4:4 formatsrcombs2021-11-282-0/+52
| | | | These are used by VideoToolbox hardware decoders.
* ffmpeg: fix loosing gaps between audio frame timestamps when filteringPaul B Mahol2021-11-183-343/+343
|
* fate: Add test for Dolby Vision RPU side dataDerek Buitenhuis2021-11-172-0/+515
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* ffmpeg: rewrite setting the stream dispositionAnton Khirnov2021-11-169-246/+246
| | | | | | | | | | | | | | | | | | | | | Currently, the code doing this is spread over several places and may behave in unexpected ways. E.g. automatic 'default' marking is only done for streams fed by complex filtergraphs. It is also applied in the order in which the output streams are initialized, which is effectively random. Move processing the dispositions at the end of open_output_file(), when we already have all the necessary information. Apply the automatic default marking only if no explicit -disposition options were supplied by the user, and apply it to the first stream of each type (excluding attached pics) when there is more than one stream of that type and no default markings were copied from the input streams. Explicitly document the new behavior. Changes the results of some tests, where the output file gets a default disposition, while it previously did not.
* lavf/mov: Change default to prefer TFDT time and allow for fallback to SIDX ↵Thilo Borgmann2021-11-051-24/+24
| | | | or TFDT
* swscale/input: fix planar_rgb16_to_a for gbrap10be and gbrap12be formatsMark Reid2021-11-041-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: update ref files after a recent changeJames Almer2021-10-292-5/+5
| | | | | | Missed in 3925b826df365a2365118600bd7910cbca95286d. Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: split negate filter from lut filterPaul B Mahol2021-10-271-50/+50
| | | | | | Using luts for negating is suboptimal. FATE test changes because filter no longer clips values into limited color range.
* avformat/argo_asf: pass name through as metadataZane van Iperen2021-10-151-1/+1
| | | | Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
* fate: update histogram test resultsPaul B Mahol2021-10-141-50/+50
|
* tests/fate-run: Use DEC_OPTS for additional input, tooAndreas Rheinhardt2021-10-081-2/+3
| | | | | | Should fix failures in the cover-art-flac-remux test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/cover-art: Add test for muxing cover arts to FLACAndreas Rheinhardt2021-10-072-0/+120
| | | | | | | | Also covers muxing and demuxing of nonstandard FLAC channel layouts and the multi-dim-quant option of the FLAC encoder (all of which was hitherto uncovered). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* tests/fate-run: Allow multiple inputs for transcode()Andreas Rheinhardt2021-10-071-2/+3
| | | | | | | This allows nicer tests by having a greater range of inputs available (without requiring adding further samples to the fate-suite). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/subtitles: Add scc remux testAndreas Rheinhardt2021-10-072-0/+68
| | | | | | | | | Provides coverage for the muxer. (Thanks to tresh for modifying the whitespace commit hook to allow to push this ref file with tabs.) Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>