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
bbd44f6c
Commit
bbd44f6c
authored
Dec 02, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/mp: switch to ff_filter_frame.
parent
586c2528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
vf_mp.c
libavfilter/vf_mp.c
+5
-19
No files found.
libavfilter/vf_mp.c
View file @
bbd44f6c
...
...
@@ -589,10 +589,7 @@ int ff_vf_next_put_image(struct vf_instance *vf,mp_image_t *mpi, double pts){
if
(
pts
!=
MP_NOPTS_VALUE
)
picref
->
pts
=
pts
*
av_q2d
(
outlink
->
time_base
);
ff_start_frame
(
outlink
,
avfilter_ref_buffer
(
picref
,
~
0
));
ff_draw_slice
(
outlink
,
0
,
picref
->
video
->
h
,
1
);
ff_end_frame
(
outlink
);
avfilter_unref_buffer
(
picref
);
ff_filter_frame
(
outlink
,
picref
);
m
->
frame_returned
++
;
return
1
;
...
...
@@ -806,20 +803,9 @@ static int request_frame(AVFilterLink *outlink)
return
ret
;
}
static
int
start_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
picref
)
{
return
0
;
}
static
int
null_draw_slice
(
AVFilterLink
*
link
,
int
y
,
int
h
,
int
slice_dir
)
{
return
0
;
}
static
int
end_frame
(
AVFilterLink
*
inlink
)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
inpic
)
{
MPContext
*
m
=
inlink
->
dst
->
priv
;
AVFilterBufferRef
*
inpic
=
inlink
->
cur_buf
;
int
i
;
double
pts
=
MP_NOPTS_VALUE
;
mp_image_t
*
mpi
=
ff_new_mp_image
(
inpic
->
video
->
w
,
inpic
->
video
->
h
);
...
...
@@ -841,6 +827,8 @@ static int end_frame(AVFilterLink *inlink)
mpi
->
flags
|=
MP_IMGFLAG_PRESERVE
;
if
(
m
->
vf
.
put_image
(
&
m
->
vf
,
mpi
,
pts
)
==
0
){
av_log
(
m
->
avfctx
,
AV_LOG_DEBUG
,
"put_image() says skip
\n
"
);
}
else
{
avfilter_unref_buffer
(
inpic
);
}
ff_free_mp_image
(
mpi
);
return
0
;
...
...
@@ -850,9 +838,7 @@ static const AVFilterPad mp_inputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
start_frame
=
start_frame
,
.
draw_slice
=
null_draw_slice
,
.
end_frame
=
end_frame
,
.
filter_frame
=
filter_frame
,
.
config_props
=
config_inprops
,
.
min_perms
=
AV_PERM_READ
,
},
...
...
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