Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
62ae37de
Commit
62ae37de
authored
Oct 05, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timefilter: De-doxygenize normal code comments and drop silly ones
parent
e67b0f99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
timefilter.c
libavdevice/timefilter.c
+2
-5
No files found.
libavdevice/timefilter.c
View file @
62ae37de
...
...
@@ -28,8 +28,8 @@
#include "timefilter.h"
struct
TimeFilter
{
//
/
Delay Locked Loop data. These variables refer to mathematical
//
/
concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf
// Delay Locked Loop data. These variables refer to mathematical
// concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf
double
cycle_time
;
double
feedback2_factor
;
double
feedback3_factor
;
...
...
@@ -62,15 +62,12 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period)
{
self
->
count
++
;
if
(
self
->
count
==
1
)
{
/// init loop
self
->
cycle_time
=
system_time
;
}
else
{
double
loop_error
;
self
->
cycle_time
+=
self
->
clock_period
*
period
;
/// calculate loop error
loop_error
=
system_time
-
self
->
cycle_time
;
/// update loop
self
->
cycle_time
+=
FFMAX
(
self
->
feedback2_factor
,
1
.
0
/
self
->
count
)
*
loop_error
;
self
->
clock_period
+=
self
->
feedback3_factor
*
loop_error
/
period
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment