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
f0250cc4
Commit
f0250cc4
authored
May 01, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/overlay: simpler up-rounded w/h computations.
parent
570d63ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_overlay.c
libavfilter/vf_overlay.c
+4
-4
No files found.
libavfilter/vf_overlay.c
View file @
f0250cc4
...
...
@@ -478,10 +478,10 @@ static void blend_image(AVFilterContext *ctx,
for
(
i
=
0
;
i
<
3
;
i
++
)
{
int
hsub
=
i
?
over
->
hsub
:
0
;
int
vsub
=
i
?
over
->
vsub
:
0
;
int
src_wp
=
FF
ALIGN
(
src_w
,
1
<<
hsub
)
>>
hsub
;
int
src_hp
=
FF
ALIGN
(
src_h
,
1
<<
vsub
)
>>
vsub
;
int
dst_wp
=
FF
ALIGN
(
dst_w
,
1
<<
hsub
)
>>
hsub
;
int
dst_hp
=
FF
ALIGN
(
dst_h
,
1
<<
vsub
)
>>
vsub
;
int
src_wp
=
FF
_CEIL_RSHIFT
(
src_w
,
hsub
)
;
int
src_hp
=
FF
_CEIL_RSHIFT
(
src_h
,
vsub
)
;
int
dst_wp
=
FF
_CEIL_RSHIFT
(
dst_w
,
hsub
)
;
int
dst_hp
=
FF
_CEIL_RSHIFT
(
dst_h
,
vsub
)
;
int
yp
=
y
>>
vsub
;
int
xp
=
x
>>
hsub
;
uint8_t
*
s
,
*
sp
,
*
d
,
*
dp
,
*
a
,
*
ap
;
...
...
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