Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b5ae61d2
Commit
b5ae61d2
authored
Jan 11, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_anlmdn: do not trim first samples
Instead denoise from start, assumming missing samples are silence.
parent
0c0fc889
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
af_anlmdn.c
libavfilter/af_anlmdn.c
+5
-0
No files found.
libavfilter/af_anlmdn.c
View file @
b5ae61d2
...
...
@@ -135,6 +135,7 @@ static int config_output(AVFilterLink *outlink)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
AudioNLMeansContext
*
s
=
ctx
->
priv
;
int
ret
;
s
->
K
=
av_rescale
(
s
->
pd
,
outlink
->
sample_rate
,
AV_TIME_BASE
);
s
->
S
=
av_rescale
(
s
->
rd
,
outlink
->
sample_rate
,
AV_TIME_BASE
);
...
...
@@ -159,6 +160,10 @@ static int config_output(AVFilterLink *outlink)
if
(
!
s
->
fifo
)
return
AVERROR
(
ENOMEM
);
ret
=
av_audio_fifo_write
(
s
->
fifo
,
(
void
**
)
s
->
in
->
extended_data
,
s
->
K
+
s
->
S
);
if
(
ret
<
0
)
return
ret
;
s
->
pdiff_lut_scale
=
1
.
f
/
MAX_DIFF
*
WEIGHT_LUT_SIZE
;
for
(
int
i
=
0
;
i
<
WEIGHT_LUT_SIZE
;
i
++
)
{
float
w
=
-
i
/
s
->
pdiff_lut_scale
;
...
...
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