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
68def271
Commit
68def271
authored
May 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/interlace: remove request frame hack
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
ed1c8350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
vf_interlace.c
libavfilter/vf_interlace.c
+1
-16
No files found.
libavfilter/vf_interlace.c
View file @
68def271
...
...
@@ -51,7 +51,6 @@ typedef struct {
enum
ScanMode
scan
;
// top or bottom field first scanning
int
lowpass
;
// enable or disable low pass filterning
AVFrame
*
cur
,
*
next
;
// the two frames from which the new one is obtained
int
got_output
;
// signal an output frame is reday to request_frame()
}
InterlaceContext
;
#define OFFSET(x) offsetof(InterlaceContext, x)
...
...
@@ -115,6 +114,7 @@ static int config_out_props(AVFilterLink *outlink)
// half framerate
outlink
->
time_base
.
num
*=
2
;
outlink
->
frame_rate
.
den
*=
2
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"%s interlacing %s lowpass filter
\n
"
,
s
->
scan
==
MODE_TFF
?
"tff"
:
"bff"
,
(
s
->
lowpass
)
?
"with"
:
"without"
);
...
...
@@ -205,20 +205,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_frame_free
(
&
s
->
next
);
ret
=
ff_filter_frame
(
outlink
,
out
);
s
->
got_output
=
1
;
return
ret
;
}
static
int
request_frame
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
InterlaceContext
*
s
=
ctx
->
priv
;
int
ret
=
0
;
s
->
got_output
=
0
;
while
(
ret
>=
0
&&
!
s
->
got_output
)
ret
=
ff_request_frame
(
ctx
->
inputs
[
0
]);
return
ret
;
}
...
...
@@ -237,7 +223,6 @@ static const AVFilterPad outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_out_props
,
.
request_frame
=
request_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