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
1eb4e731
Commit
1eb4e731
authored
May 08, 2018
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/swaprect: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
parent
8d6354aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
vf_swaprect.c
libavfilter/vf_swaprect.c
+10
-10
No files found.
libavfilter/vf_swaprect.c
View file @
1eb4e731
...
...
@@ -151,32 +151,32 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
x2
[
0
]
=
av_clip
(
x2
[
0
],
0
,
inlink
->
w
-
1
);
y2
[
0
]
=
av_clip
(
y2
[
0
],
0
,
inlink
->
w
-
1
);
ah
[
1
]
=
ah
[
2
]
=
FF
_CEIL_RSHIFT
(
h
,
s
->
desc
->
log2_chroma_h
);
ah
[
1
]
=
ah
[
2
]
=
AV
_CEIL_RSHIFT
(
h
,
s
->
desc
->
log2_chroma_h
);
ah
[
0
]
=
ah
[
3
]
=
h
;
aw
[
1
]
=
aw
[
2
]
=
FF
_CEIL_RSHIFT
(
w
,
s
->
desc
->
log2_chroma_w
);
aw
[
1
]
=
aw
[
2
]
=
AV
_CEIL_RSHIFT
(
w
,
s
->
desc
->
log2_chroma_w
);
aw
[
0
]
=
aw
[
3
]
=
w
;
w
=
FFMIN3
(
w
,
inlink
->
w
-
x1
[
0
],
inlink
->
w
-
x2
[
0
]);
h
=
FFMIN3
(
h
,
inlink
->
h
-
y1
[
0
],
inlink
->
h
-
y2
[
0
]);
ph
[
1
]
=
ph
[
2
]
=
FF
_CEIL_RSHIFT
(
h
,
s
->
desc
->
log2_chroma_h
);
ph
[
1
]
=
ph
[
2
]
=
AV
_CEIL_RSHIFT
(
h
,
s
->
desc
->
log2_chroma_h
);
ph
[
0
]
=
ph
[
3
]
=
h
;
pw
[
1
]
=
pw
[
2
]
=
FF
_CEIL_RSHIFT
(
w
,
s
->
desc
->
log2_chroma_w
);
pw
[
1
]
=
pw
[
2
]
=
AV
_CEIL_RSHIFT
(
w
,
s
->
desc
->
log2_chroma_w
);
pw
[
0
]
=
pw
[
3
]
=
w
;
lh
[
1
]
=
lh
[
2
]
=
FF
_CEIL_RSHIFT
(
inlink
->
h
,
s
->
desc
->
log2_chroma_h
);
lh
[
1
]
=
lh
[
2
]
=
AV
_CEIL_RSHIFT
(
inlink
->
h
,
s
->
desc
->
log2_chroma_h
);
lh
[
0
]
=
lh
[
3
]
=
inlink
->
h
;
lw
[
1
]
=
lw
[
2
]
=
FF
_CEIL_RSHIFT
(
inlink
->
w
,
s
->
desc
->
log2_chroma_w
);
lw
[
1
]
=
lw
[
2
]
=
AV
_CEIL_RSHIFT
(
inlink
->
w
,
s
->
desc
->
log2_chroma_w
);
lw
[
0
]
=
lw
[
3
]
=
inlink
->
w
;
x1
[
1
]
=
x1
[
2
]
=
FF
_CEIL_RSHIFT
(
x1
[
0
],
s
->
desc
->
log2_chroma_w
);
x1
[
1
]
=
x1
[
2
]
=
AV
_CEIL_RSHIFT
(
x1
[
0
],
s
->
desc
->
log2_chroma_w
);
x1
[
0
]
=
x1
[
3
]
=
x1
[
0
];
y1
[
1
]
=
y1
[
2
]
=
FF
_CEIL_RSHIFT
(
y1
[
0
],
s
->
desc
->
log2_chroma_h
);
y1
[
1
]
=
y1
[
2
]
=
AV
_CEIL_RSHIFT
(
y1
[
0
],
s
->
desc
->
log2_chroma_h
);
y1
[
0
]
=
y1
[
3
]
=
y1
[
0
];
x2
[
1
]
=
x2
[
2
]
=
FF
_CEIL_RSHIFT
(
x2
[
0
],
s
->
desc
->
log2_chroma_w
);
x2
[
1
]
=
x2
[
2
]
=
AV
_CEIL_RSHIFT
(
x2
[
0
],
s
->
desc
->
log2_chroma_w
);
x2
[
0
]
=
x2
[
3
]
=
x2
[
0
];
y2
[
1
]
=
y2
[
2
]
=
FF
_CEIL_RSHIFT
(
y2
[
0
],
s
->
desc
->
log2_chroma_h
);
y2
[
1
]
=
y2
[
2
]
=
AV
_CEIL_RSHIFT
(
y2
[
0
],
s
->
desc
->
log2_chroma_h
);
y2
[
0
]
=
y2
[
3
]
=
y2
[
0
];
for
(
p
=
0
;
p
<
s
->
nb_planes
;
p
++
)
{
...
...
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