Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
f9aa96f6
Commit
f9aa96f6
authored
Apr 26, 2017
by
Debargha Mukherjee
Browse files
Silence some compiler warnigns for warped motion
Change-Id: I73f82b418625009d9634c1750aa82ce2dfa85abb
parent
5a24dc8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/warped_motion.c
View file @
f9aa96f6
...
...
@@ -203,8 +203,8 @@ void project_points_hortrapezoid(int32_t *mat, int *points, int *proj,
if
(
subsampling_x
)
xp
=
(
xp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
if
(
subsampling_y
)
yp
=
(
yp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
*
(
proj
++
)
=
xp
;
*
(
proj
++
)
=
yp
;
*
(
proj
++
)
=
(
int
)
xp
;
*
(
proj
++
)
=
(
int
)
yp
;
points
+=
stride_points
-
2
;
proj
+=
stride_proj
-
2
;
...
...
@@ -236,8 +236,8 @@ void project_points_vertrapezoid(int32_t *mat, int *points, int *proj,
if
(
subsampling_x
)
xp
=
(
xp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
if
(
subsampling_y
)
yp
=
(
yp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
*
(
proj
++
)
=
xp
;
*
(
proj
++
)
=
yp
;
*
(
proj
++
)
=
(
int
)
xp
;
*
(
proj
++
)
=
(
int
)
yp
;
points
+=
stride_points
-
2
;
proj
+=
stride_proj
-
2
;
...
...
@@ -269,8 +269,8 @@ void project_points_homography(int32_t *mat, int *points, int *proj,
if
(
subsampling_x
)
xp
=
(
xp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
if
(
subsampling_y
)
yp
=
(
yp
-
(
1
<<
(
WARPEDPIXEL_PREC_BITS
-
1
)))
/
2
;
*
(
proj
++
)
=
xp
;
*
(
proj
++
)
=
yp
;
*
(
proj
++
)
=
(
int
)
xp
;
*
(
proj
++
)
=
(
int
)
yp
;
points
+=
stride_points
-
2
;
proj
+=
stride_proj
-
2
;
...
...
@@ -764,9 +764,9 @@ int get_shear_params(WarpedMotionParams *wm) {
int64_t
v
;
v
=
((
int64_t
)
mat
[
4
]
<<
WARPEDMODEL_PREC_BITS
)
*
y
;
wm
->
gamma
=
clamp
(
ROUND_POWER_OF_TWO_SIGNED_64
(
v
,
shift
),
INT16_MIN
,
INT16_MAX
);
clamp
(
(
int
)
ROUND_POWER_OF_TWO_SIGNED_64
(
v
,
shift
),
INT16_MIN
,
INT16_MAX
);
v
=
((
int64_t
)
mat
[
3
]
*
mat
[
4
])
*
y
;
wm
->
delta
=
clamp
(
mat
[
5
]
-
ROUND_POWER_OF_TWO_SIGNED_64
(
v
,
shift
)
-
wm
->
delta
=
clamp
(
mat
[
5
]
-
(
int
)
ROUND_POWER_OF_TWO_SIGNED_64
(
v
,
shift
)
-
(
1
<<
WARPEDMODEL_PREC_BITS
),
INT16_MIN
,
INT16_MAX
);
if
(
!
is_affine_shear_allowed
(
wm
->
alpha
,
wm
->
beta
,
wm
->
gamma
,
wm
->
delta
))
...
...
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