mirror of https://git.ffmpeg.org/ffmpeg.git
timefilter: De-doxygenize normal code comments and drop silly ones
This commit is contained in:
parent
e67b0f9952
commit
62ae37decd
|
@ -28,8 +28,8 @@
|
||||||
#include "timefilter.h"
|
#include "timefilter.h"
|
||||||
|
|
||||||
struct TimeFilter {
|
struct TimeFilter {
|
||||||
/// Delay Locked Loop data. These variables refer to mathematical
|
// Delay Locked Loop data. These variables refer to mathematical
|
||||||
/// concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf
|
// concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf
|
||||||
double cycle_time;
|
double cycle_time;
|
||||||
double feedback2_factor;
|
double feedback2_factor;
|
||||||
double feedback3_factor;
|
double feedback3_factor;
|
||||||
|
@ -62,15 +62,12 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period)
|
||||||
{
|
{
|
||||||
self->count++;
|
self->count++;
|
||||||
if (self->count == 1) {
|
if (self->count == 1) {
|
||||||
/// init loop
|
|
||||||
self->cycle_time = system_time;
|
self->cycle_time = system_time;
|
||||||
} else {
|
} else {
|
||||||
double loop_error;
|
double loop_error;
|
||||||
self->cycle_time += self->clock_period * period;
|
self->cycle_time += self->clock_period * period;
|
||||||
/// calculate loop error
|
|
||||||
loop_error = system_time - self->cycle_time;
|
loop_error = system_time - self->cycle_time;
|
||||||
|
|
||||||
/// update loop
|
|
||||||
self->cycle_time += FFMAX(self->feedback2_factor, 1.0 / self->count) * loop_error;
|
self->cycle_time += FFMAX(self->feedback2_factor, 1.0 / self->count) * loop_error;
|
||||||
self->clock_period += self->feedback3_factor * loop_error / period;
|
self->clock_period += self->feedback3_factor * loop_error / period;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue