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
34304677
Commit
34304677
authored
Mar 30, 2018
by
Martin Vignali
Committed by
Paul B Mahol
Mar 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/showvolume : add comment for orientation condition
parent
cdd6a525
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
avf_showvolume.c
libavfilter/avf_showvolume.c
+4
-4
No files found.
libavfilter/avf_showvolume.c
View file @
34304677
...
...
@@ -222,7 +222,7 @@ static void drawtext(AVFrame *pic, int x, int y, const char *txt, int o)
for
(
i
=
0
;
txt
[
i
];
i
++
)
{
int
char_y
,
mask
;
if
(
o
)
{
if
(
o
)
{
/* vertical orientation */
for
(
char_y
=
font_height
-
1
;
char_y
>=
0
;
char_y
--
)
{
uint8_t
*
p
=
pic
->
data
[
0
]
+
(
y
+
i
*
10
)
*
pic
->
linesize
[
0
]
+
x
*
4
;
for
(
mask
=
0x80
;
mask
;
mask
>>=
1
)
{
...
...
@@ -231,7 +231,7 @@ static void drawtext(AVFrame *pic, int x, int y, const char *txt, int o)
p
+=
pic
->
linesize
[
0
];
}
}
}
else
{
}
else
{
/* horizontal orientation */
uint8_t
*
p
=
pic
->
data
[
0
]
+
y
*
pic
->
linesize
[
0
]
+
(
x
+
i
*
8
)
*
4
;
for
(
char_y
=
0
;
char_y
<
font_height
;
char_y
++
)
{
for
(
mask
=
0x80
;
mask
;
mask
>>=
1
)
{
...
...
@@ -285,7 +285,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
}
}
if
(
s
->
orientation
)
{
if
(
s
->
orientation
)
{
/* vertical */
for
(
c
=
0
;
c
<
inlink
->
channels
;
c
++
)
{
float
*
src
=
(
float
*
)
insamples
->
extended_data
[
c
];
uint32_t
*
lut
=
s
->
color_lut
+
s
->
w
*
c
;
...
...
@@ -313,7 +313,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
drawtext
(
s
->
out
,
c
*
(
s
->
h
+
s
->
b
)
+
(
s
->
h
-
10
)
/
2
,
outlink
->
h
-
35
,
channel_name
,
1
);
}
}
}
else
{
}
else
{
/* horizontal */
for
(
c
=
0
;
c
<
inlink
->
channels
;
c
++
)
{
float
*
src
=
(
float
*
)
insamples
->
extended_data
[
c
];
uint32_t
*
lut
=
s
->
color_lut
+
s
->
w
*
c
;
...
...
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