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
dec354ba
Commit
dec354ba
authored
Nov 09, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_fade: reindent after previous commit
parent
8c1fb50d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
vf_fade.c
libavfilter/vf_fade.c
+17
-17
No files found.
libavfilter/vf_fade.c
View file @
dec354ba
...
...
@@ -237,27 +237,27 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
fade
->
is_packed_rgb
?
4
:
1
,
// pixstep for 8 bit packed formats
1
,
outpic
->
data
[
plane
],
outpic
->
linesize
[
plane
]);
}
else
{
/* luma or rgb plane */
fade_plane
(
y
,
h
,
inlink
->
w
,
fade
->
factor
,
fade
->
black_level
,
fade
->
black_level_scaled
,
0
,
1
,
// offset & pixstep for Y plane or RGB packed format
fade
->
bpp
,
outpic
->
data
[
0
],
outpic
->
linesize
[
0
]);
if
(
outpic
->
data
[
1
]
&&
outpic
->
data
[
2
])
{
/* chroma planes */
for
(
plane
=
1
;
plane
<
3
;
plane
++
)
{
for
(
i
=
0
;
i
<
h
;
i
++
)
{
p
=
outpic
->
data
[
plane
]
+
((
y
+
i
)
>>
fade
->
vsub
)
*
outpic
->
linesize
[
plane
];
for
(
j
=
0
;
j
<
inlink
->
w
>>
fade
->
hsub
;
j
++
)
{
/* 8421367 = ((128 << 1) + 1) << 15. It is an integer
* representation of 128.5. The .5 is for rounding
* purposes. */
*
p
=
((
*
p
-
128
)
*
fade
->
factor
+
8421367
)
>>
16
;
p
++
;
/* luma or rgb plane */
fade_plane
(
y
,
h
,
inlink
->
w
,
fade
->
factor
,
fade
->
black_level
,
fade
->
black_level_scaled
,
0
,
1
,
// offset & pixstep for Y plane or RGB packed format
fade
->
bpp
,
outpic
->
data
[
0
],
outpic
->
linesize
[
0
]);
if
(
outpic
->
data
[
1
]
&&
outpic
->
data
[
2
])
{
/* chroma planes */
for
(
plane
=
1
;
plane
<
3
;
plane
++
)
{
for
(
i
=
0
;
i
<
h
;
i
++
)
{
p
=
outpic
->
data
[
plane
]
+
((
y
+
i
)
>>
fade
->
vsub
)
*
outpic
->
linesize
[
plane
];
for
(
j
=
0
;
j
<
inlink
->
w
>>
fade
->
hsub
;
j
++
)
{
/* 8421367 = ((128 << 1) + 1) << 15. It is an integer
* representation of 128.5. The .5 is for rounding
* purposes. */
*
p
=
((
*
p
-
128
)
*
fade
->
factor
+
8421367
)
>>
16
;
p
++
;
}
}
}
}
}
}
}
avfilter_draw_slice
(
inlink
->
dst
->
outputs
[
0
],
y
,
h
,
slice_dir
);
...
...
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