Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-09avcodec/x86/cavsdsp: Remove unused 3DNow-macroAndreas Rheinhardt
Forgotten in 3221aba87989742ea22b639a7bb4af69f4eaa0e7. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-06libavcodec: remove mdct15Lynne
It's not needed nor used by anything anymore, lavu/tx is faster, and better in every way. RIP.
2022-11-06dca_core: convert to lavu/txLynne
Thanks to Martin Storsjö <martin@martin.st> for fixing and testing the arm32 and aarch64 changes.
2022-11-04avcodec/v210enc: add new function for avx2 avx512 avx512iclJames Darnley
Negligible speed difference for avx2 on Zen 2 (Ryzen 5700X) and Broadwell (Xeon E5-2620 v4): 1690±4.3 decicycles vs. 1693±78.4 1439±31.1 decicycles vs 1429±16.7 Moderate speedup with avx512 on Skylake-X (Xeon D-2123IT): 1.22x faster (793±0.8 vs. 649±5.5 decicycles) compared with avx2 Better speedup with avx512icl on Ice Lake (Xeon Silver 4316): 1.77x faster (784±1.8 vs. 442±11.6 decicycles) compared with avx2 Co-authors: Henrik Gramner <henrik@gramner.com> Kieran Kunhya <kierank@obe.tv>
2022-10-20avcodec/mpegvideodsp: Make MpegVideoDSP MPEG-4 onlyAndreas Rheinhardt
It is only used by gmc/gmc1 which is only used by the MPEG-4 decoder, so move it to Mpeg4DecContext and rename it to Mpeg4VideoDSP. Also compile it iff the MPEG-4 decoder is compiled. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-10-14avcodec/svq1enc: Add SVQ1EncDSPContext, make codec context privateAndreas Rheinhardt
Currently, SVQ1EncContext is defined in a header that is also included by the arch-specific code that initializes the one and only dsp function that this encoder uses directly. But the arch-specific functions to set this dsp function do not need anything from SVQ1EncContext. This commit therefore adds a small SVQ1EncDSPContext whose only member is said function pointer and renames svq1enc.h to svq1encdsp.h to avoid exposing unnecessary internals to these init functions (and the whole mpegvideo with it). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-10-10lavc/x86/simple_idct: Fix linking shared libavcodec with MS link.exeCarl Eugen Hoyos
link.exe hangs on empty simple_idct.o Fixes ticket #9909.
2022-10-09avcodec/huffyuvencdsp: Pass pix_fmt directly when initing dspAndreas Rheinhardt
It is the only thing that is actually used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-30avcodec/ac3dsp: Remove unused parameterAndreas Rheinhardt
Forgotten in fd98594a8831ce037a495b6d7e090bd8f81e83a1. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-29avcodec/dirac_dwt: Avoid conversions between function pointers and void*Andreas Rheinhardt
Pointers to void can be converted to any pointer to incomplete or object type and back; but they are nevertheless not completely generic pointers: There is no provision in the C standard that guarantees their convertibility with function pointers. C90 lacks a generic function pointer, C99 made every function pointer a generic function pointer and still disallows the convertibility with void *. Both GCC as well as Clang warn about this when using -pedantic. Therefore use unions to avoid these conversions. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-23x86/lpc: use fused negative multiply-add instructions where usefulJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-23avcodec/lpc: zero the middle odd sample in the outputJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-23avcodec/lpc: use ptrdiff_t for length parametersJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-22x86/aacpsdsp: add ps_hybrid_analysis_fma3James Almer
This replace the sse3 version, which was not really faster than the sse one. Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-22x86/aacpsdsp: precompute constant factorsJames Almer
Inspired by the optimization done to the C version by Rémi Denis-Courmont. Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-22x86/lpc: Fix parameter sign extension, unbreaking checkasm-lpc on x86_64 windowsMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-09-22x86/lpc: fix even scalar loop overreads/writesLynne
Passes checkasm with valgrind, tested to sizes of more than 4000 samples.
2022-09-22x86/lpc: fix odd scalar loop overreads/writesLynne
2022-09-21avcodec/fmtconvert: Remove unused AVCodecContext parameterAndreas Rheinhardt
Unused since d74a8cb7e42f703be5796eeb485f06af710ae8ca. Reviewed-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-21avcodec/blockdsp: Remove unused AVCodecContext parameterAndreas Rheinhardt
Possible since be95df12bb06b183c8d2aea3b0831fdf05466cf3. Reviewed-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-21avcodec/cavsdsp: Remove unused function parameterAndreas Rheinhardt
Reviewed-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-21x86/lpc: implement a new Welch windowing functionLynne
Old one was written with the assumption only even inputs would be given. This very messy replacement supports even and odd inputs, and supports AVX2 for extra speed. The buffers given are usually quite big (4k samples), so the speedup is worth it. The new SSE version is still faster than the old inline asm version by 33%. Also checkasm is provided to make sure this monstrosity works. This fixes some FATE tests.
2022-09-19lavc/vorbisdsp: use ptrdiff_t rather than intptr_tRémi Denis-Courmont
... for a difference between pointers.
2022-09-13avcodec/x86/audiodsp: add scalarproduct avx2Paul B Mahol
2022-09-11avcodec/vp8dsp: Constify src in vp8_mc_funcAndreas Rheinhardt
Reviewed-by: Peter Ross <pross@xvid.org> Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-05avcodec/x86/flacdsp_init: Remove double ';'Andreas Rheinhardt
Inside a function, the second ';' in ";;" is just a null statement, but it is actually illegal outside of functions. Compilers nevertheless accept it without warning, except when in -pedantic mode when e.g. Clang emits a -Wextra-semi warning. Therefore remove the unnecessary ';'. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-05avcodec/x86/flacdsp: fix bug in decorrelationPaul B Mahol
Fixes #9297
2022-08-24avutil/mem_internal: Fix headersAndreas Rheinhardt
Including avassert.h is unnecessary since commit 786be70e28fe739b8e49893fa13ae4652a68d1ea. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-17x86: Don't hardcode the height to 8 in sad8_xy2_mmxMartin Storsjö
The height is hardcoded in some of the me_cmp functions, but not in all of them. But in the case of all other functions, it's hardcoded in the same place in SIMD functions as in the C reference functions, while this one function differs from the behaviour of the C code. (Before 542765ce3eccbca587d54262a512cbdb1407230d, there were a couple other sad8_*_mmx functions with similar hardcoded height.) Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-05avcodec/flacdsp: Split encoder-only parts into a ctx of its ownAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-05avcodec/flacdsp: Remove unused function parameterAndreas Rheinhardt
Forgotten in e609cfd697f8eed7325591f767585041719807d1. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-05avcodec/h264chroma: Constify src in h264_chroma_mc_funcAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-05avcodec/hevcdsp: Constify src pointersAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/mpegvideodsp: Constify src pointersAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/mpegvideoencdsp: Allow pointers to const where possibleAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/me_cmp: Constify me_cmp_func buffer parametersAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/cfhdencdsp: Constify input pointersAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/lossless_videoencdsp: Constify src sub_left_predictAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-31avcodec/videodsp: Constify buf in VideoDSPContext.prefetchAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-28avcodec/vp56: Move VP5-9 range coder functions to a header of their ownAndreas Rheinhardt
Also use a vpx prefix for them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-25avcodec/x86/pngdsp: Remove obsolete ff_add_bytes_l2_mmx()Andreas Rheinhardt
It is overridden by ff_add_bytes_l2_sse2() on any non-ancient CPU. Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-26avcodec/x86/h264_qpel: Remove unused functionsAndreas Rheinhardt
Forgotten in 4011a76494a5ff6844312813bc753aae8e54c2f0. The reason for this is that these functtions are marked as av_always_inline and GCC does not emit warnings if such functions are unused, so this went unnoticed. Yet Clang does, so this commit removes them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/lossless_videodsp: Remove obsolete MMX(EXT) functionsAndreas Rheinhardt
The only systems which benefit from these are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/lossless_videoencdsp: Remove obsolete MMX functionAndreas Rheinhardt
The only systems which benefit from ff_diff_bytes_mmx are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/huffyuvencdsp: Remove obsolete MMX functionAndreas Rheinhardt
The only systems which benefit from ff_diff_int16_mmx are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/dirac_dwt: Remove obsolete MMX functionsAndreas Rheinhardt
The only systems which benefit from these are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/huffyuvdsp: Remove obsolete MMX functionsAndreas Rheinhardt
The only systems which benefit from these are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/vp8dsp: Remove obsolete MMX(EXT) functionsAndreas Rheinhardt
The only systems which benefit from these are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/dcadsp: Remove obsolete SSE functionAndreas Rheinhardt
The only systems which benefit from ff_lfe_fir0_float_sse are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-22avcodec/x86/rv34dsp: Remove obsolete MMX functionAndreas Rheinhardt
The only systems which benefit from ff_rv34_idct_dc_add_mmx are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>