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
de1100a0
Commit
de1100a0
authored
May 21, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_split: define draw_slice() before end_frame()
Improve logical coherence, fix nit.
parent
88fc2e41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vf_split.c
libavfilter/vf_split.c
+6
-6
No files found.
libavfilter/vf_split.c
View file @
de1100a0
...
...
@@ -33,6 +33,12 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
avfilter_ref_buffer
(
picref
,
~
AV_PERM_WRITE
));
}
static
void
draw_slice
(
AVFilterLink
*
inlink
,
int
y
,
int
h
,
int
slice_dir
)
{
avfilter_draw_slice
(
inlink
->
dst
->
outputs
[
0
],
y
,
h
,
slice_dir
);
avfilter_draw_slice
(
inlink
->
dst
->
outputs
[
1
],
y
,
h
,
slice_dir
);
}
static
void
end_frame
(
AVFilterLink
*
inlink
)
{
avfilter_end_frame
(
inlink
->
dst
->
outputs
[
0
]);
...
...
@@ -41,12 +47,6 @@ static void end_frame(AVFilterLink *inlink)
avfilter_unref_buffer
(
inlink
->
cur_buf
);
}
static
void
draw_slice
(
AVFilterLink
*
inlink
,
int
y
,
int
h
,
int
slice_dir
)
{
avfilter_draw_slice
(
inlink
->
dst
->
outputs
[
0
],
y
,
h
,
slice_dir
);
avfilter_draw_slice
(
inlink
->
dst
->
outputs
[
1
],
y
,
h
,
slice_dir
);
}
AVFilter
avfilter_vf_split
=
{
.
name
=
"split"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Pass on the input to two outputs."
),
...
...
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