aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avfft.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec: remove deprecated FF_API_AVFFTJames Almer2025-03-281-268/+0
| | | | | | Deprecated since 2023-09-01. Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/avfft: fix RDFT wrapper strideLynne2024-04-101-1/+1
| | | | | | | | | | | | Per the lavu/tx docs: > * For forward transforms (R2C), stride must be the spacing between two > * samples in bytes. For inverse transforms, the stride must be set > * to the spacing between two complex values in bytes. The code did the reverse. The stride parameter is currently not respected for RDFT transforms, but has to be correct, for a potential future change.
* avfft: avoid overreads with RDFT API usersLynne2024-02-091-6/+25
| | | | | | | | | | The new API requires an extra array member at the very end, which old API users did not do. This disables in-place RDFT transforms and instead does the transform out of place by copying once, there shouldn't be a significant loss of speed as our in-place FFT requires a reorder which is likely more expensive in the majority of cases to do.
* avcoded/fft: Fix memory leak if ctx2 is usedSebastian Ramacher2023-11-121-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/fft: Use av_mallocz to avoid invalid free/uninitSebastian Ramacher2023-11-121-4/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/mem: Don't include avutil.hAndreas Rheinhardt2023-09-071-3/+4
| | | | | | | | | It is not necessary at all. So remove it. This also breaks an inclusion cycle mem.h->avutil.h->common.h->mem.h. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfft: wrap lavu/tx instead of ff_dctLynne2023-09-011-11/+51
|
* avfft: wrap lavu/tx instead of ff_rdftLynne2023-09-011-11/+34
|
* avfft: wrap lavu/tx instead of ff_mdctLynne2023-09-011-13/+30
|
* avfft: wrap lavu/tx instead of ff_fftLynne2023-09-011-9/+31
|
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-34/+0
|\ | | | | | | | | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/avfft: Add simple self testMichael Niedermayer2015-02-061-0/+34
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/avfft: init context to 0.Nicolas George2013-09-041-1/+1
| | | | | | | | Prevent an invalid free in case of init failure.
* | Merge commit 'bd8ac882140a38868c33c000a430a1292a352533'Michael Niedermayer2013-05-061-4/+4
|\| | | | | | | | | | | | | * commit 'bd8ac882140a38868c33c000a430a1292a352533': avcodec: Add av_cold attributes to end functions missing them Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Add av_cold attributes to end functions missing themDiego Biurrun2013-05-051-4/+4
| |
* | Merge commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487'Michael Niedermayer2013-05-051-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487': avcodec: Add av_cold attributes to init functions missing them Conflicts: libavcodec/aacpsy.c libavcodec/atrac3.c libavcodec/dvdsubdec.c libavcodec/ffv1.c libavcodec/ffv1enc.c libavcodec/h261enc.c libavcodec/h264_parser.c libavcodec/h264dsp.c libavcodec/h264pred.c libavcodec/libschroedingerenc.c libavcodec/libxvid_rc.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/proresdsp.c libavcodec/rangecoder.c libavcodec/videodsp.c libavcodec/x86/proresdsp_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-041-0/+1
| |
* | Merge remote-tracking branch 'newdev/master'Michael Niedermayer2011-03-211-2/+4
|\| | | | | | | Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Move dct and rdft definitions to separate filesMans Rullgard2011-03-201-0/+2
| | | | | | | | | | | | | | This leaves fft.h with only the core FFT and MDCT definitions thus making it more managable. Signed-off-by: Mans Rullgard <mans@mansr.com>
| * fft: remove inline wrappers for function pointersMans Rullgard2011-03-191-2/+2
| | | | | | | | | | | | | | This removes the rather pointless wrappers (one not even inline) for calling the fft_calc and related function pointers. Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avfft: remove useless parensMåns Rullgård2010-07-131-1/+1
| | | | Originally committed as revision 24229 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l: really fix fft external API init functionsMåns Rullgård2010-07-131-12/+4
| | | | Originally committed as revision 24228 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avfft: make init functions return NULL on failure as intendedMåns Rullgård2010-07-121-0/+8
| | | | Originally committed as revision 24219 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the discrete sine/cosine transforms DCT-I and DST-IVitor Sessak2010-03-231-1/+1
| | | | Originally committed as revision 22649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Create a public API for FFT family of functionsMåns Rullgård2010-03-071-0/+142
Originally committed as revision 22291 to svn://svn.ffmpeg.org/ffmpeg/trunk