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
7f154bd5
Commit
7f154bd5
authored
Dec 08, 2012
by
Matthieu Bouron
Committed by
Stefano Sabatini
Dec 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/setfield: switch to filter_frame API
Signed-off-by:
Stefano Sabatini
<
stefasab@gmail.com
>
parent
4cd40ef3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vf_setfield.c
libavfilter/vf_setfield.c
+7
-7
No files found.
libavfilter/vf_setfield.c
View file @
7f154bd5
...
...
@@ -24,6 +24,7 @@
*/
#include "avfilter.h"
#include "internal.h"
#include "video.h"
enum
SetFieldMode
{
...
...
@@ -69,18 +70,17 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return
0
;
}
static
int
start_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
in
picref
)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
picref
)
{
SetFieldContext
*
setfield
=
inlink
->
dst
->
priv
;
AVFilterBufferRef
*
outpicref
=
avfilter_ref_buffer
(
inpicref
,
~
0
);
if
(
setfield
->
mode
==
MODE_PROG
)
{
out
picref
->
video
->
interlaced
=
0
;
picref
->
video
->
interlaced
=
0
;
}
else
if
(
setfield
->
mode
!=
MODE_AUTO
)
{
out
picref
->
video
->
interlaced
=
1
;
out
picref
->
video
->
top_field_first
=
setfield
->
mode
;
picref
->
video
->
interlaced
=
1
;
picref
->
video
->
top_field_first
=
setfield
->
mode
;
}
return
ff_
start_frame
(
inlink
->
dst
->
outputs
[
0
],
out
picref
);
return
ff_
filter_frame
(
inlink
->
dst
->
outputs
[
0
],
picref
);
}
static
const
AVFilterPad
setfield_inputs
[]
=
{
...
...
@@ -88,7 +88,7 @@ static const AVFilterPad setfield_inputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
get_video_buffer
=
ff_null_get_video_buffer
,
.
start_frame
=
start
_frame
,
.
filter_frame
=
filter
_frame
,
},
{
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