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
7d5297b3
Commit
7d5297b3
authored
May 21, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_split: fix various nits
parent
eb97d4d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
vf_split.c
libavfilter/vf_split.c
+17
-15
No files found.
libavfilter/vf_split.c
View file @
7d5297b3
/*
* Video splitter
* copyright (c) 2007 Bobby Bingham
* Copyright (c) 2007 Bobby Bingham
*
* This file is part of FFmpeg.
*
...
...
@@ -19,32 +18,36 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file
* Video splitter
*/
#include "avfilter.h"
static
void
start_frame
(
AVFilterLink
*
link
,
AVFilterBufferRef
*
picref
)
static
void
start_frame
(
AVFilterLink
*
in
link
,
AVFilterBufferRef
*
picref
)
{
avfilter_start_frame
(
link
->
dst
->
outputs
[
0
],
avfilter_start_frame
(
in
link
->
dst
->
outputs
[
0
],
avfilter_ref_buffer
(
picref
,
~
AV_PERM_WRITE
));
avfilter_start_frame
(
link
->
dst
->
outputs
[
1
],
avfilter_start_frame
(
in
link
->
dst
->
outputs
[
1
],
avfilter_ref_buffer
(
picref
,
~
AV_PERM_WRITE
));
}
static
void
end_frame
(
AVFilterLink
*
link
)
static
void
end_frame
(
AVFilterLink
*
in
link
)
{
avfilter_end_frame
(
link
->
dst
->
outputs
[
0
]);
avfilter_end_frame
(
link
->
dst
->
outputs
[
1
]);
avfilter_end_frame
(
in
link
->
dst
->
outputs
[
0
]);
avfilter_end_frame
(
in
link
->
dst
->
outputs
[
1
]);
avfilter_unref_buffer
(
link
->
cur_buf
);
avfilter_unref_buffer
(
in
link
->
cur_buf
);
}
static
void
draw_slice
(
AVFilterLink
*
link
,
int
y
,
int
h
,
int
slice_dir
)
static
void
draw_slice
(
AVFilterLink
*
in
link
,
int
y
,
int
h
,
int
slice_dir
)
{
avfilter_draw_slice
(
link
->
dst
->
outputs
[
0
],
y
,
h
,
slice_dir
);
avfilter_draw_slice
(
link
->
dst
->
outputs
[
1
],
y
,
h
,
slice_dir
);
avfilter_draw_slice
(
in
link
->
dst
->
outputs
[
0
],
y
,
h
,
slice_dir
);
avfilter_draw_slice
(
in
link
->
dst
->
outputs
[
1
],
y
,
h
,
slice_dir
);
}
AVFilter
avfilter_vf_split
=
{
AVFilter
avfilter_vf_split
=
{
.
name
=
"split"
,
.
inputs
=
(
AVFilterPad
[])
{{
.
name
=
"default"
,
...
...
@@ -60,4 +63,3 @@ AVFilter avfilter_vf_split =
.
type
=
AVMEDIA_TYPE_VIDEO
,
},
{
.
name
=
NULL
}},
};
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