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
c2bbcf16
Commit
c2bbcf16
authored
Mar 28, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_waveform: optimize 16bit lowpass filter
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
ff982e02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
vf_waveform.c
libavfilter/vf_waveform.c
+20
-4
No files found.
libavfilter/vf_waveform.c
View file @
c2bbcf16
...
...
@@ -651,6 +651,22 @@ static av_always_inline void lowpass16(WaveformContext *s,
envelope16
(
s
,
out
,
plane
,
plane
,
column
?
offset_x
:
offset_y
);
}
#define LOWPASS16_FUNC(name, column, mirror) \
static void lowpass16_##name(WaveformContext *s, \
AVFrame *in, AVFrame *out, \
int component, int intensity, \
int offset_y, int offset_x, \
int unused1, int unused2) \
{ \
lowpass16(s, in, out, component, intensity, \
offset_y, offset_x, column, mirror); \
}
LOWPASS16_FUNC
(
column_mirror
,
1
,
1
)
LOWPASS16_FUNC
(
column
,
1
,
0
)
LOWPASS16_FUNC
(
row_mirror
,
0
,
1
)
LOWPASS16_FUNC
(
row
,
0
,
0
)
static
av_always_inline
void
lowpass
(
WaveformContext
*
s
,
AVFrame
*
in
,
AVFrame
*
out
,
int
component
,
int
intensity
,
...
...
@@ -2424,10 +2440,10 @@ static int config_input(AVFilterLink *inlink)
case
0x1000
:
s
->
waveform
=
lowpass_row_mirror
;
break
;
case
0x0100
:
s
->
waveform
=
lowpass_column
;
break
;
case
0x0000
:
s
->
waveform
=
lowpass_row
;
break
;
case
0x1110
:
case
0x1010
:
case
0x0110
:
case
0x0010
:
s
->
waveform
=
lowpass16
;
break
;
case
0x1110
:
s
->
waveform
=
lowpass16_column_mirror
;
break
;
case
0x1010
:
s
->
waveform
=
lowpass16_row_mirror
;
break
;
case
0x0110
:
s
->
waveform
=
lowpass16_column
;
break
;
case
0x0010
:
s
->
waveform
=
lowpass16
_row
;
break
;
case
0x1101
:
case
0x1001
:
case
0x0101
:
...
...
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