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
571f33de
Commit
571f33de
authored
Aug 07, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_showspectrum: improve dB scale description
parent
f0adb99d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+12
-0
No files found.
libavfilter/avf_showspectrum.c
View file @
571f33de
...
...
@@ -1181,6 +1181,18 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
memset
(
s
->
outpicref
->
data
[
1
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
1
)
*
s
->
outpicref
->
linesize
[
1
]
+
s
->
w
+
s
->
start_x
+
20
,
av_clip_uint8
(
out
[
1
]),
10
);
memset
(
s
->
outpicref
->
data
[
2
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
1
)
*
s
->
outpicref
->
linesize
[
2
]
+
s
->
w
+
s
->
start_x
+
20
,
av_clip_uint8
(
out
[
2
]),
10
);
}
for
(
y
=
0
;
ch
==
0
&&
y
<
h
;
y
+=
h
/
10
)
{
float
value
=
120
.
0
*
log10
(
1
.
-
y
/
(
float
)
h
);
char
*
text
;
if
(
value
<
-
120
)
break
;
text
=
av_asprintf
(
"%.0f dB"
,
value
);
if
(
!
text
)
continue
;
drawtext
(
s
->
outpicref
,
s
->
w
+
s
->
start_x
+
35
,
s
->
start_y
+
y
-
5
,
text
,
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