summaryrefslogtreecommitdiff
path: root/libavutil/fixed_dsp.c
Commit message (Collapse)AuthorAgeFilesLines
* lavu/fixed_dsp: add missing av_restrict qualifiersJohannes Kauffmann2022-10-041-1/+1
| | | | | | | | | | The butterflies_fixed function pointer declaration specifies av_restrict for the first two pointer arguments. So the corresponding function definitions should honor this declaration. MSVC emits warning C4113 for this. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavu/fixeddsp: RISC-V V butterflies_fixedRémi Denis-Courmont2022-09-271-1/+3
|
* all: Replace if (ARCH_FOO) checks by #if ARCH_FOOAndreas Rheinhardt2022-06-151-2/+3
| | | | | | | | | | | | | | | | | | This is more spec-compliant because it does not rely on dead-code elimination by the compiler. Especially MSVC has problems with this, as can be seen in https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/296373.html or https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/297022.html This commit does not eliminate every instance where we rely on dead code elimination: It only tackles branching to the initialization of arch-specific dsp code, not e.g. all uses of CONFIG_ and HAVE_ checks. But maybe it is already enough to compile FFmpeg with MSVC with whole-programm-optimizations enabled (if one does not disable too many components). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-0/+1
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/fixed_dsp: Fix integer overflows in butterflies_fixed_c()Michael Niedermayer2020-09-191-1/+2
| | | | | | | | Fixes: signed integer overflow: 0 - -2147483648 cannot be represented in type 'int' Fixes: 23646/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5480991098667008 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* x86/fixed_dsp: add ff_butterflies_fixed_sse2James Almer2016-01-161-0/+3
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/fixed_dsp: remove ff_ prefix from static functionJames Almer2015-06-201-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libavutil: Add new fixed dsp functions.Nedeljko Babic2015-06-031-0/+62
| | | | | | | Add functions needed for implementation of fixed point aac dec. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: Cosmetic changes to fixed_dsp file.Nedeljko Babic2015-05-291-5/+5
| | | | | | | | | Names of functions vector_fmul_window_fixed_c and vector_fmul_window_fixed_scaled_c are changed by removing "_fixed" from the name since it is redundant. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/fixed_dsp: Check for av_malloc() failureMichael Niedermayer2015-02-221-0/+4
| | | | | | Fixes CID1271051 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/fixed_dsp: Use av_clip_int16() instead of the non optimized ↵Michael Niedermayer2015-02-151-2/+2
| | | | | | av_clip_int16_c() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/fixed_dsp: remove redundant castMichael Niedermayer2014-04-011-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: Add fixed_dspNedeljko Babic2014-04-011-0/+98
Signed-off-by: Nedeljko Babic <nbabic@mips.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>