Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
3cf5baf1
Commit
3cf5baf1
authored
Dec 20, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add overlap for speed detection sync search.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
3aec6fc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wmspeed.cc
src/wmspeed.cc
+2
-2
No files found.
src/wmspeed.cc
View file @
3cf5baf1
...
...
@@ -218,12 +218,12 @@ void
SpeedSync
::
compare
(
double
relative_speed
)
{
const
int
steps_per_frame
=
Params
::
frame_size
/
Params
::
sync_search_step
;
const
int
pad_start
=
frames_per_block
*
steps_per_frame
;
const
int
pad_start
=
frames_per_block
*
steps_per_frame
+
/* add a bit of overlap to handle boundaries */
steps_per_frame
;
const
double
relative_speed_inv
=
1
/
relative_speed
;
Score
best_score
;
assert
(
steps_per_frame
*
Params
::
sync_search_step
==
Params
::
frame_size
);
// FIXME: pad_start must be scaled with speed
for
(
int
offset
=
-
pad_start
;
offset
<
0
;
offset
++
)
{
double
sync_quality
=
0
;
...
...
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