summaryrefslogtreecommitdiff
path: root/libavcodec/fft-test.c
Commit message (Collapse)AuthorAge
* fft-test: Use the float fabs() versionVittorio Giovara2015-06-12
| | | | | | Fixes clang warning "absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]".
* lavc: Use av_gettime_relativeOlivier Langlois2014-10-24
| | | | | | | | Whenever av_gettime() is used to measure relative period of time, av_gettime_relative() is prefered as it guarantee monotonic time on supported platforms. Signed-off-by: Martin Storsjö <martin@martin.st>
* fft-test: Pass the right struct members instead of castingDiego Biurrun2014-07-25
|
* dct/rdft: Remove duplicate typedefs for context structsDiego Biurrun2014-07-25
| | | | | | | The typedefs also exist in the avfft.h header and since typedefs cannot be legally redefined in C, the code fails to compile with some compilers. This reverts commits 11c7155cce and 57f1b1dcc7.
* fft-test: Pass correct struct members to (i)dct functionsDiego Biurrun2014-07-23
| | | | This fixes a number of incompatible pointer type warnings.
* fft-test: K&R formatting cosmeticsDiego Biurrun2014-07-23
| | | | Also rearrange #includes into canonical order.
* fft-test: Check memory allocationsDiego Biurrun2014-07-23
|
* fft-test: Drop unnecessary pointer indirection for context structsDiego Biurrun2014-07-23
|
* fft-test: Reduce variable scope where sensibly possibleDiego Biurrun2014-07-23
| | | | Also merge variable declaration and initialization.
* fft-test: Make global exptab variable staticDiego Biurrun2014-07-23
|
* fft-test: Comment some #endifsDiego Biurrun2014-07-22
|
* fft-test: Drop unnecessary #ifdefs around header includesDiego Biurrun2014-07-22
|
* fate: Add dependencies for dct/fft/mdct/rdft testsDiego Biurrun2014-06-26
|
* Rename CONFIG_FFT_FLOAT ---> FFT_FLOATDiego Biurrun2014-01-06
| | | | | The define does not originate from configure, so it should not have a name that is CONFIG_-prefixed.
* fft-test: add a missing #includeAnton Khirnov2013-10-26
| | | | stdio.h needed for printf since 7177df90a043bd59e172843fc7cb9e767080ea12
* fft-test: Remove possibility of returning restricted exit codeDerek Buitenhuis2013-10-25
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* dct/fft-test: use a replacement getopt() if the system has none present.Ronald S. Bultje2012-07-11
| | | | | | | This allows compiling and running these tests on systems lacking a built- in version of getopt(), such as MSVC. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Use av_gettime() in various placesMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fft-test: add option to set cpuflag maskMans Rullgard2012-04-25
| | | | | | This can be useful for testing. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tests/tools/examples: Replace direct exit() calls by return.Diego Biurrun2011-12-08
|
* Move some variable declarations below the proper #ifdefs.Diego Biurrun2011-06-26
| | | | This avoids warnings about set-but-unused variables.
* Fixed-point support in fft-testMans Rullgard2011-04-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move dct and rdft definitions to separate filesMans Rullgard2011-03-20
| | | | | | | 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-19
| | | | | | | 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-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fft-test: format error output more readablyMåns Rullgård2010-08-16
| | | | Originally committed as revision 24799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fft-test: free buffers before exitingMåns Rullgård2010-08-06
| | | | Originally committed as revision 24708 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fft-test: exit with non-zero status if test failedMåns Rullgård2010-08-04
| | | | Originally committed as revision 24693 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add help for (I)RDFT test in fft-testVitor Sessak2010-04-03
| | | | Originally committed as revision 22793 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make code using 1d-DCT consistent with the API changeVitor Sessak2010-04-03
| | | | Originally committed as revision 22792 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Give RDFT types more meaningful namesMåns Rullgård2010-03-07
| | | | Originally committed as revision 22290 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update include directives in fft-test.cMåns Rullgård2010-03-07
| | | | Originally committed as revision 22289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Floating point discrete cosine transformVitor Sessak2010-01-20
| | | | Originally committed as revision 21338 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fft-test: Add RDFT/IRDFT support.Alex Converse2010-01-11
| | | | Originally committed as revision 21141 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fft-test: Replace do_mdct with a tf_transform enum and switch on it.Alex Converse2010-01-11
| | | | Originally committed as revision 21140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fft-test: whitespace cosmeticsAlex Converse2010-01-08
| | | | Originally committed as revision 21085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge FFTContext and MDCTContextMåns Rullgård2009-09-20
| | | | Originally committed as revision 19931 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bring back some randomness in fft-test. (regression in r18070)Loren Merritt2009-08-22
| | | | Originally committed as revision 19679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support for testing (i)MDCT output scale factor in fft-test tool.Siarhei Siamashka2009-05-20
| | | | Originally committed as revision 18877 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support for getting (i)MDCT output multiplied by a constant scaling factor.Siarhei Siamashka2009-05-16
| | | | | | | | Scaling (i)MDCT output has no runtime overhead and can be used to improve performance of audio codecs. All the changes are only needed in 'ff_mdct_init' function and slow down initialization a bit. Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).Diego Biurrun2009-04-10
| | | | Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark non-exported functions in test and example programs as static.Diego Biurrun2009-03-31
| | | | Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace random() usage in test programs by av_lfg_*().Diego Biurrun2009-03-20
| | | | Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove mdct tmp bufferLoren Merritt2008-08-12
| | | | Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't set mm_flags in fft-test, since it doesn't do anything anyway.Alexander Strange2008-06-25
| | | | Originally committed as revision 13968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define mm_flags/support to be 0 on architectures where they don't exist.Alexander Strange2008-06-24
| | | | | | | Make sure we don't try to set them if that's the case. This lets dct-test and fft-test build with --disable-mmx on x86, but not yet on ARM. Originally committed as revision 13957 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove redundant mm_flags declaration, fixes the warning:Diego Biurrun2008-06-24
| | | | | | | libavcodec.a(dsputil_ppc.o): warning: definition of `mm_flags' overriding common fft-test.o: warning: common is here Originally committed as revision 13940 to svn://svn.ffmpeg.org/ffmpeg/trunk
* making reference models have the same APIMarc Hoffman2007-08-01
| | | | Originally committed as revision 9861 to svn://svn.ffmpeg.org/ffmpeg/trunk