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
d0bf1aa3
Commit
d0bf1aa3
authored
Jun 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_showspectrum: improve axes drawing
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5ee20307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+4
-3
No files found.
libavfilter/avf_showspectrum.c
View file @
d0bf1aa3
...
...
@@ -1099,14 +1099,15 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
}
if
(
s
->
orientation
==
VERTICAL
)
{
int
h
=
s
->
mode
==
SEPARATE
?
s
->
h
/
s
->
nb_display_channels
:
s
->
h
;
int
hh
=
s
->
mode
==
SEPARATE
?
-
(
s
->
h
%
s
->
nb_display_channels
)
+
1
:
1
;
for
(
ch
=
0
;
ch
<
(
s
->
mode
==
SEPARATE
?
s
->
nb_display_channels
:
1
);
ch
++
)
{
for
(
y
=
0
;
y
<
h
;
y
+=
20
)
{
dst
=
s
->
outpicref
->
data
[
0
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
1
)
*
s
->
outpicref
->
linesize
[
0
];
dst
=
s
->
outpicref
->
data
[
0
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
hh
)
*
s
->
outpicref
->
linesize
[
0
];
dst
[
s
->
start_x
-
2
]
=
200
;
dst
[
s
->
start_x
+
s
->
w
+
1
]
=
200
;
}
for
(
y
=
0
;
y
<
h
;
y
+=
40
)
{
dst
=
s
->
outpicref
->
data
[
0
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
1
)
*
s
->
outpicref
->
linesize
[
0
];
dst
=
s
->
outpicref
->
data
[
0
]
+
(
s
->
start_y
+
h
*
(
ch
+
1
)
-
y
-
hh
)
*
s
->
outpicref
->
linesize
[
0
];
dst
[
s
->
start_x
-
3
]
=
200
;
dst
[
s
->
start_x
+
s
->
w
+
2
]
=
200
;
}
...
...
@@ -1135,7 +1136,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
if
(
!
units
)
return
AVERROR
(
ENOMEM
);
drawtext
(
s
->
outpicref
,
s
->
start_x
-
8
*
strlen
(
units
)
-
4
,
h
*
(
ch
+
1
)
+
s
->
start_y
-
y
-
4
,
units
,
0
);
drawtext
(
s
->
outpicref
,
s
->
start_x
-
8
*
strlen
(
units
)
-
4
,
h
*
(
ch
+
1
)
+
s
->
start_y
-
y
-
4
-
hh
,
units
,
0
);
av_free
(
units
);
}
}
...
...
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