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
a64c9afe
Commit
a64c9afe
authored
May 02, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/blend: merge config_input_top into config_output
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
990b1380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
vf_blend.c
libavfilter/vf_blend.c
+7
-12
No files found.
libavfilter/vf_blend.c
View file @
a64c9afe
...
...
@@ -295,13 +295,15 @@ static int config_output(AVFilterLink *outlink)
AVFilterContext
*
ctx
=
outlink
->
src
;
AVFilterLink
*
toplink
=
ctx
->
inputs
[
TOP
];
AVFilterLink
*
bottomlink
=
ctx
->
inputs
[
BOTTOM
];
BlendContext
*
b
=
ctx
->
priv
;
const
AVPixFmtDescriptor
*
pix_desc
=
av_pix_fmt_desc_get
(
toplink
->
format
);
if
(
toplink
->
format
!=
bottomlink
->
format
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"inputs must be of same pixel format
\n
"
);
return
AVERROR
(
EINVAL
);
}
if
(
toplink
->
w
!=
bottomlink
->
w
||
toplink
->
h
!=
bottomlink
->
h
||
if
(
toplink
->
w
!=
bottomlink
->
w
||
toplink
->
h
!=
bottomlink
->
h
||
toplink
->
sample_aspect_ratio
.
num
!=
bottomlink
->
sample_aspect_ratio
.
num
||
toplink
->
sample_aspect_ratio
.
den
!=
bottomlink
->
sample_aspect_ratio
.
den
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"First input link %s parameters "
...
...
@@ -317,21 +319,15 @@ static int config_output(AVFilterLink *outlink)
}
outlink
->
w
=
toplink
->
w
;
outlink
->
h
=
bottom
link
->
h
;
outlink
->
h
=
top
link
->
h
;
outlink
->
time_base
=
toplink
->
time_base
;
outlink
->
sample_aspect_ratio
=
toplink
->
sample_aspect_ratio
;
outlink
->
frame_rate
=
toplink
->
frame_rate
;
return
0
;
}
static
int
config_input_top
(
AVFilterLink
*
inlink
)
{
BlendContext
*
b
=
inlink
->
dst
->
priv
;
const
AVPixFmtDescriptor
*
pix_desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
b
->
hsub
=
pix_desc
->
log2_chroma_w
;
b
->
vsub
=
pix_desc
->
log2_chroma_h
;
b
->
nb_planes
=
av_pix_fmt_count_planes
(
inlink
->
format
);
b
->
nb_planes
=
av_pix_fmt_count_planes
(
toplink
->
format
);
return
0
;
}
...
...
@@ -435,7 +431,6 @@ static const AVFilterPad blend_inputs[] = {
{
.
name
=
"top"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_input_top
,
.
filter_frame
=
filter_frame
,
},{
.
name
=
"bottom"
,
...
...
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