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
003bd88d
Commit
003bd88d
authored
Oct 30, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/drawbox: reindent after previous commit
parent
1b3fdd97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
vf_drawbox.c
libavfilter/vf_drawbox.c
+9
-9
No files found.
libavfilter/vf_drawbox.c
View file @
003bd88d
...
...
@@ -144,17 +144,17 @@ static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir)
(
x
-
xb
<
3
)
||
(
xb
+
drawbox
->
w
-
x
<
4
))
row
[
0
][
x
]
=
0xff
-
row
[
0
][
x
];
}
else
{
for
(
x
=
FFMAX
(
xb
,
0
);
x
<
(
xb
+
drawbox
->
w
)
&&
x
<
picref
->
video
->
w
;
x
++
)
{
double
alpha
=
(
double
)
drawbox
->
yuv_color
[
A
]
/
255
;
if
((
y
-
yb
<
3
)
||
(
yb
+
drawbox
->
h
-
y
<
4
)
||
(
x
-
xb
<
3
)
||
(
xb
+
drawbox
->
w
-
x
<
4
))
{
row
[
0
][
x
]
=
(
1
-
alpha
)
*
row
[
0
][
x
]
+
alpha
*
drawbox
->
yuv_color
[
Y
];
row
[
1
][
x
>>
drawbox
->
hsub
]
=
(
1
-
alpha
)
*
row
[
1
][
x
>>
drawbox
->
hsub
]
+
alpha
*
drawbox
->
yuv_color
[
U
];
row
[
2
][
x
>>
drawbox
->
hsub
]
=
(
1
-
alpha
)
*
row
[
2
][
x
>>
drawbox
->
hsub
]
+
alpha
*
drawbox
->
yuv_color
[
V
];
for
(
x
=
FFMAX
(
xb
,
0
);
x
<
(
xb
+
drawbox
->
w
)
&&
x
<
picref
->
video
->
w
;
x
++
)
{
double
alpha
=
(
double
)
drawbox
->
yuv_color
[
A
]
/
255
;
if
((
y
-
yb
<
3
)
||
(
yb
+
drawbox
->
h
-
y
<
4
)
||
(
x
-
xb
<
3
)
||
(
xb
+
drawbox
->
w
-
x
<
4
))
{
row
[
0
][
x
]
=
(
1
-
alpha
)
*
row
[
0
][
x
]
+
alpha
*
drawbox
->
yuv_color
[
Y
];
row
[
1
][
x
>>
drawbox
->
hsub
]
=
(
1
-
alpha
)
*
row
[
1
][
x
>>
drawbox
->
hsub
]
+
alpha
*
drawbox
->
yuv_color
[
U
];
row
[
2
][
x
>>
drawbox
->
hsub
]
=
(
1
-
alpha
)
*
row
[
2
][
x
>>
drawbox
->
hsub
]
+
alpha
*
drawbox
->
yuv_color
[
V
];
}
}
}
}
}
return
ff_draw_slice
(
inlink
->
dst
->
outputs
[
0
],
y0
,
h
,
1
);
...
...
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