Olivier Langlois
6fdf35fe35
lavc: Use av_gettime_relative
...
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>
10 years ago
Diego Biurrun
165e9df195
fft-test: Pass the right struct members instead of casting
11 years ago
Diego Biurrun
060e4a9e06
dct/rdft: Remove duplicate typedefs for context structs
...
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
.
11 years ago
Michael Niedermayer
629e5e28f7
avcodec/fft-test: fix memory alloc checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
d0de7330b9
fft-test: Pass correct struct members to (i)dct functions
...
This fixes a number of incompatible pointer type warnings.
11 years ago
Diego Biurrun
6133d65861
fft-test: K&R formatting cosmetics
...
Also rearrange #includes into canonical order.
11 years ago
Diego Biurrun
c3c96deb5f
fft-test: Check memory allocations
11 years ago
Diego Biurrun
7288b34585
fft-test: Drop unnecessary pointer indirection for context structs
11 years ago
Diego Biurrun
d445c865f8
fft-test: Reduce variable scope where sensibly possible
...
Also merge variable declaration and initialization.
11 years ago
Diego Biurrun
20ec0daaa1
fft-test: Make global exptab variable static
11 years ago
Diego Biurrun
5be7d8597d
fft-test: Comment some #endifs
11 years ago
Diego Biurrun
57f1b1dcc7
fft-test: Drop unnecessary #ifdefs around header includes
11 years ago
Diego Biurrun
24f45c1622
fate: Add dependencies for dct/fft/mdct/rdft tests
11 years ago
Olivier Langlois
b052bccbe4
lavc: Use av_gettime_relative()
...
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: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
5ec8192949
avcodec/fft-test: use av_malloc_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
99b6357f37
rename CONFIG_FFT_FIXED_32 -> FFT_FIXED_32
...
This matches FFT_FLOAT
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
794fcf79a8
Rename CONFIG_FFT_FLOAT ---> FFT_FLOAT
...
The define does not originate from configure, so it should not
have a name that is CONFIG_-prefixed.
11 years ago
Anton Khirnov
834259528b
fft-test: add a missing #include
...
stdio.h needed for printf since 7177df90a0
11 years ago
Derek Buitenhuis
7177df90a0
fft-test: Remove possibility of returning restricted exit code
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago
Derek Buitenhuis
b2fdf3fc35
fft-test: Remove possibility of returning restricted exit code
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago
Michael Niedermayer
fcaf5fa2ea
avcodec/fft-test: put ff_dct* code under CONFIG_DCT
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nedeljko Babic
18d7074b4e
libavcodec: Implementation of 32 bit fixed point FFT
...
Iterative implementation of 32 bit fixed point split-radix FFT.
Max FFT that can be calculated currently is 2^12.
Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
29619f47c1
fft-test: fix order of operations for calculating the average error
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
e71df841ee
fft-test: switch to new cpu flags API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
667fb97a65
dct/fft-test: use a replacement getopt() if the system has none present.
...
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>
13 years ago
Mans Rullgard
980f81d961
Use av_gettime() in various places
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
b6a6e90a7c
fft-test: add option to set cpuflag mask
...
This can be useful for testing.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
6e1b0cdad9
fft-test: fix all pointer type warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
9a5d6c23c5
tests/tools/examples: Replace direct exit() calls by return.
13 years ago
Diego Biurrun
f3876ea485
Move some variable declarations below the proper #ifdefs.
...
This avoids warnings about set-but-unused variables.
14 years ago
Mans Rullgard
6efe6028ed
Fixed-point support in fft-test
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
0aded9484d
Move dct and rdft definitions to separate files
...
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>
14 years ago
Mans Rullgard
26f548bb59
fft: remove inline wrappers for function pointers
...
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>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Måns Rullgård
ead7ef8251
fft-test: format error output more readably
...
Originally committed as revision 24799 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
85fbad4555
fft-test: free buffers before exiting
...
Originally committed as revision 24708 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a79e921ee6
fft-test: exit with non-zero status if test failed
...
Originally committed as revision 24693 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
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
15 years ago
Vitor Sessak
c99baf05c3
Add help for (I)RDFT test in fft-test
...
Originally committed as revision 22793 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
c2b774a04e
Make code using 1d-DCT consistent with the API change
...
Originally committed as revision 22792 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
41ea18fb0d
Give RDFT types more meaningful names
...
Originally committed as revision 22290 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
3bd8a2ef6c
Update include directives in fft-test.c
...
Originally committed as revision 22289 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
7f3f5f46c2
Floating point discrete cosine transform
...
Originally committed as revision 21338 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
c460833d76
fft-test: Add RDFT/IRDFT support.
...
Originally committed as revision 21141 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
5b37ef8e43
fft-test: Replace do_mdct with a tf_transform enum and switch on it.
...
Originally committed as revision 21140 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
d987a9e9ad
fft-test: whitespace cosmetics
...
Originally committed as revision 21085 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
01b2214758
Merge FFTContext and MDCTContext
...
Originally committed as revision 19931 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Loren Merritt
50b1785a57
bring back some randomness in fft-test. (regression in r18070)
...
Originally committed as revision 19679 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Siarhei Siamashka
34aecf1c87
Support for testing (i)MDCT output scale factor in fft-test tool.
...
Originally committed as revision 18877 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Siarhei Siamashka
7d485f165f
Support for getting (i)MDCT output multiplied by a constant scaling factor.
...
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
16 years ago