Andreas Rheinhardt
636631d9db
Remove unnecessary libavutil/(avutil|common|internal).h inclusions
...
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>
3 years ago
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
9 years ago
Diego Biurrun
439929859a
testprogs: Clean up #includes
9 years ago
Derek Buitenhuis
327c439f81
timefilter: Handle memory allocation failure
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago
Derek Buitenhuis
069ceea7da
timefilter: Fix typo in allocation failure message
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago
Derek Buitenhuis
6ef30976e0
timefilter: Handle memory allocation failure
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago
Michael Niedermayer
bc4e798562
avdevice/timefilter: 2nd try at avoiding rounding issues
...
This hopefully fixes fate-timefilter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
d6fd1242f3
avdevice/timefilter-test: provide more space for the printout to allow larger values
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2b9590ebab
avdevice/timefilter-test: dont try to optimize par1 for n0=0 case
...
for the n0=0 case there are multiple solutions and different
platforms pick different ones
This should reduce the issues with fate and the timefilter test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
66487d73c3
avdevice/timefilter: cleanup the formating of the test output
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
12 years ago
Diego Biurrun
62ae37decd
timefilter: De-doxygenize normal code comments and drop silly ones
12 years ago
Diego Biurrun
14d3e7ad11
Remove some silly disabled code.
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Nicolas George
8a9ae37fee
timefilter: allow to evaluate at other times.
13 years ago
Nicolas George
9bbe6ed1e0
timefilter: allow variable periods.
...
Initially found and designed by Michael Niedermayer.
13 years ago
Nicolas George
3073aadf2d
timefilter: internally compute feedback factors.
...
The feedback factors for the timefilter are directly computed from
the expected period. This commit changes the init function to accept
the period itself and compute the feedback factors internally,
rather than having all client code duplicate the formulas.
This commit also actually fixes the formulas: the current code had
sqrt(2*o), but the correct formula, both theoretically and according
to experimental testing, is sqrt(2)*o.
Furthermore, it adds an exponential to feedback factors larger than
1 with large periods.
13 years ago
Michael Niedermayer
a5bf9b351c
timefilter: better selftest code.
...
Add support for divergence detection and variable period.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Yordan Makariev
0c5d78a898
4xm, timefilter: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
13 years ago
Anton Khirnov
5dd35b43f1
Move timefilter code from lavf to lavd.
...
It's only used in the JACK device.
Fixes linking shared lavd with JACK enabled.
13 years ago
Diego Biurrun
70ad9842a5
Fix compilation of timefilter test program.
...
The printf function is forbidden in library code, but not in test programs,
so #undefine the printf macro that disables the system printf function.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
cc7b62afd2
Replace rand() usage by av_lfg_get().
...
Originally committed as revision 18420 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
a2085cccfa
cosmetics: Align output columns.
...
Originally committed as revision 18419 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
8507bde0f3
Add my name to copyright & author as requested by the original author.
...
Originally committed as revision 17858 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
8b2fa9659a
Add code to the self test to print jitter & drift.
...
Originally committed as revision 17857 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
e0c98063e7
Add '#undef rand' to fix test program build.
...
Originally committed as revision 17850 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
6d16718e5d
cosmetics: Fix test program warnings.
...
Originally committed as revision 17849 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
bc3057f499
Vertical align.
...
Originally committed as revision 17847 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
2e51dedd24
Better name for integrator2_state.
...
Originally committed as revision 17846 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
3228491027
Add clock_period parameter, this should make the code easier to use.
...
Originally committed as revision 17845 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
1b85ec1ea2
Selftest code.
...
Originally committed as revision 17844 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
8537591abc
Fix bug with time==0 being special.
...
Originally committed as revision 17843 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
494065ca36
Adapt first factor.
...
Originally committed as revision 17842 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
55b5859867
Merge ff_timefilter_read() and ff_timefilter_update(), this simplifies API and
...
avoids calling them in the wrong order.
Originally committed as revision 17841 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
08ffd3708b
Allow timespans to vary.
...
No change in performance if they do not vary.
Originally committed as revision 17840 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
28e947e458
Reorder operations, 20% improved performance, 1 variable less.
...
Originally committed as revision 17839 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
f982c6d87a
Timefilter code by Olivier Guilyardi o list O samalyse o com
...
Originally committed as revision 17838 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago