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
953b8c5a
Commit
953b8c5a
authored
Mar 09, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_waveform: use intensity for other components too
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a008a7cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
vf_waveform.c
libavfilter/vf_waveform.c
+12
-12
No files found.
libavfilter/vf_waveform.c
View file @
953b8c5a
...
...
@@ -688,9 +688,9 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out,
target
=
d0
+
x
+
d0_signed_linesize
*
c0
;
update
(
target
,
max
,
intensity
);
target
=
d1
+
x
+
d1_signed_linesize
*
(
c0
-
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d1
+
x
+
d1_signed_linesize
*
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
c0_data
+=
c0_linesize
;
c1_data
+=
c1_linesize
;
...
...
@@ -721,16 +721,16 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out,
target
=
d0_data
-
c0
;
update
(
target
,
max
,
intensity
);
target
=
d1_data
-
(
c0
-
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d1_data
-
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
}
else
{
target
=
d0_data
+
c0
;
update
(
target
,
max
,
intensity
);
target
=
d1_data
+
(
c0
-
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d1_data
+
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
}
}
...
...
@@ -791,10 +791,10 @@ static void aflat(WaveformContext *s, AVFrame *in, AVFrame *out,
update
(
target
,
max
,
intensity
);
target
=
d1
+
x
+
d1_signed_linesize
*
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d2
+
x
+
d2_signed_linesize
*
(
c0
+
c2
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
c0_data
+=
c0_linesize
;
c1_data
+=
c1_linesize
;
...
...
@@ -829,16 +829,16 @@ static void aflat(WaveformContext *s, AVFrame *in, AVFrame *out,
target
=
d0_data
-
c0
;
update
(
target
,
max
,
intensity
);
target
=
d1_data
-
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d2_data
-
(
c0
+
c2
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
}
else
{
target
=
d0_data
+
c0
;
update
(
target
,
max
,
intensity
);
target
=
d1_data
+
(
c0
+
c1
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
target
=
d2_data
+
(
c0
+
c2
);
update
(
target
,
max
,
1
);
update
(
target
,
max
,
intensity
);
}
}
...
...
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