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
3b2e99fe
Commit
3b2e99fe
authored
Aug 08, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_perspective: factor u cliping code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c11c1801
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vf_perspective.c
libavfilter/vf_perspective.c
+4
-8
No files found.
libavfilter/vf_perspective.c
View file @
3b2e99fe
...
...
@@ -301,19 +301,15 @@ static void resample_linear(PerspectiveContext *s,
sum
=
(
sum
+
(
1
<<
(
SUB_PIXEL_BITS
-
1
)))
>>
SUB_PIXEL_BITS
;
}
}
else
{
if
(
u
<
0
)
u
=
0
;
else
u
=
w
-
1
;
if
((
unsigned
)
v
<
(
unsigned
)(
h
-
1
)){
if
(
u
<
0
)
u
=
0
;
else
u
=
w
-
1
;
index
=
u
+
v
*
src_linesize
;
sum
=
subVI
*
src
[
index
]
+
subV
*
src
[
index
+
src_linesize
];
sum
=
(
sum
+
(
1
<<
(
SUB_PIXEL_BITS
-
1
)))
>>
SUB_PIXEL_BITS
;
}
else
{
if
(
u
<
0
)
u
=
0
;
else
u
=
w
-
1
;
if
(
v
<
0
)
v
=
0
;
else
...
...
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