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
a53a9f1c
Commit
a53a9f1c
authored
Dec 29, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afir: implement non-uniform partitioned convolution
Using multiple frequency delay lines.
parent
300dc45f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
62 deletions
+129
-62
filters.texi
doc/filters.texi
+2
-2
af_afir.c
libavfilter/af_afir.c
+121
-59
af_afir.h
libavfilter/af_afir.h
+6
-1
No files found.
doc/filters.texi
View file @
a53a9f1c
...
@@ -1231,14 +1231,14 @@ Set video stream size. This option is used only when @var{response} is enabled.
...
@@ -1231,14 +1231,14 @@ Set video stream size. This option is used only when @var{response} is enabled.
Set
video
stream
frame
rate
.
This
option
is
used
only
when
@
var
{
response
}
is
enabled
.
Set
video
stream
frame
rate
.
This
option
is
used
only
when
@
var
{
response
}
is
enabled
.
@
item
minp
@
item
minp
Set
minimal
partition
size
used
for
convolution
.
Default
is
@
var
{
16
}.
Set
minimal
partition
size
used
for
convolution
.
Default
is
@
var
{
8192
}.
Allowed
range
is
from
@
var
{
16
}
to
@
var
{
32768
}.
Allowed
range
is
from
@
var
{
16
}
to
@
var
{
32768
}.
Lower
values
decreases
latency
at
cost
of
higher
CPU
usage
.
Lower
values
decreases
latency
at
cost
of
higher
CPU
usage
.
@
item
maxp
@
item
maxp
Set
maximal
partition
size
used
for
convolution
.
Default
is
@
var
{
8192
}.
Set
maximal
partition
size
used
for
convolution
.
Default
is
@
var
{
8192
}.
Allowed
range
is
from
@
var
{
16
}
to
@
var
{
32768
}.
Allowed
range
is
from
@
var
{
16
}
to
@
var
{
32768
}.
Lower
values
decreases
latency
at
cost
of
higher
CPU
usage
.
Lower
values
may
increase
CPU
usage
.
@
end
table
@
end
table
@
subsection
Examples
@
subsection
Examples
...
...
libavfilter/af_afir.c
View file @
a53a9f1c
This diff is collapsed.
Click to expand it.
libavfilter/af_afir.h
View file @
a53a9f1c
...
@@ -37,14 +37,18 @@ typedef struct AudioFIRSegment {
...
@@ -37,14 +37,18 @@ typedef struct AudioFIRSegment {
int
block_size
;
int
block_size
;
int
fft_length
;
int
fft_length
;
int
coeff_size
;
int
coeff_size
;
int
segment_size
;
int
input_size
;
int
input_offset
;
int
*
output_offset
;
int
*
part_index
;
int
*
part_index
;
AVFrame
*
sum
;
AVFrame
*
sum
;
AVFrame
*
block
;
AVFrame
*
block
;
AVFrame
*
buffer
;
AVFrame
*
buffer
;
AVFrame
*
coeff
;
AVFrame
*
coeff
;
AVFrame
*
input
;
AVFrame
*
output
;
RDFTContext
**
rdft
,
**
irdft
;
RDFTContext
**
rdft
,
**
irdft
;
}
AudioFIRSegment
;
}
AudioFIRSegment
;
...
@@ -80,6 +84,7 @@ typedef struct AudioFIRContext {
...
@@ -80,6 +84,7 @@ typedef struct AudioFIRContext {
AVFrame
*
in
[
2
];
AVFrame
*
in
[
2
];
AVFrame
*
video
;
AVFrame
*
video
;
int
min_part_size
;
int64_t
pts
;
int64_t
pts
;
AVFloatDSPContext
*
fdsp
;
AVFloatDSPContext
*
fdsp
;
...
...
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