Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
0be4d3b1
Commit
0be4d3b1
authored
Jul 19, 2016
by
Sarah Parker
Committed by
Gerrit Code Review
Jul 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Change order of warped motion parameters" into nextgenv2
parents
054689b2
78ea3b3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
vp10/common/warped_motion.c
vp10/common/warped_motion.c
+12
-12
vp10/decoder/decodeframe.c
vp10/decoder/decodeframe.c
+4
-4
No files found.
vp10/common/warped_motion.c
View file @
0be4d3b1
...
...
@@ -116,19 +116,19 @@ void projectPointsRotZoom(int *mat, int *points, int *proj,
const
int
x
=
*
(
points
++
),
y
=
*
(
points
++
);
if
(
subsampling_x
)
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
0
]
*
2
*
x
+
mat
[
1
]
*
2
*
y
+
mat
[
2
]
+
(
mat
[
0
]
+
mat
[
1
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
mat
[
2
]
*
2
*
x
+
mat
[
3
]
*
2
*
y
+
mat
[
0
]
+
(
mat
[
2
]
+
mat
[
3
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
WARPEDDIFF_PREC_BITS
+
1
);
else
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
0
]
*
x
+
mat
[
1
]
*
y
+
mat
[
2
],
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
2
]
*
x
+
mat
[
3
]
*
y
+
mat
[
0
],
WARPEDDIFF_PREC_BITS
);
if
(
subsampling_y
)
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
-
mat
[
1
]
*
2
*
x
+
mat
[
0
]
*
2
*
y
+
mat
[
3
]
+
(
-
mat
[
1
]
+
mat
[
0
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
-
mat
[
3
]
*
2
*
x
+
mat
[
2
]
*
2
*
y
+
mat
[
1
]
+
(
-
mat
[
3
]
+
mat
[
2
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
WARPEDDIFF_PREC_BITS
+
1
);
else
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
-
mat
[
1
]
*
x
+
mat
[
0
]
*
y
+
mat
[
3
],
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
-
mat
[
3
]
*
x
+
mat
[
2
]
*
y
+
mat
[
1
],
WARPEDDIFF_PREC_BITS
);
points
+=
stride_points
-
2
;
proj
+=
stride_proj
-
2
;
...
...
@@ -146,19 +146,19 @@ static void projectPointsAffine(int *mat, int *points, int *proj,
const
int
x
=
*
(
points
++
),
y
=
*
(
points
++
);
if
(
subsampling_x
)
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
0
]
*
2
*
x
+
mat
[
1
]
*
2
*
y
+
mat
[
4
]
+
(
mat
[
0
]
+
mat
[
1
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
mat
[
2
]
*
2
*
x
+
mat
[
3
]
*
2
*
y
+
mat
[
0
]
+
(
mat
[
2
]
+
mat
[
3
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
WARPEDDIFF_PREC_BITS
+
1
);
else
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
0
]
*
x
+
mat
[
1
]
*
y
+
mat
[
4
],
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
2
]
*
x
+
mat
[
3
]
*
y
+
mat
[
0
],
WARPEDDIFF_PREC_BITS
);
if
(
subsampling_y
)
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
2
]
*
2
*
x
+
mat
[
3
]
*
2
*
y
+
mat
[
5
]
+
(
mat
[
2
]
+
mat
[
3
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
mat
[
4
]
*
2
*
x
+
mat
[
5
]
*
2
*
y
+
mat
[
1
]
+
(
mat
[
4
]
+
mat
[
5
]
-
(
1
<<
WARPEDMODEL_PREC_BITS
))
/
2
,
WARPEDDIFF_PREC_BITS
+
1
);
else
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
2
]
*
x
+
mat
[
3
]
*
y
+
mat
[
5
],
*
(
proj
++
)
=
ROUND_POWER_OF_TWO_SIGNED
(
mat
[
4
]
*
x
+
mat
[
5
]
*
y
+
mat
[
1
],
WARPEDDIFF_PREC_BITS
);
points
+=
stride_points
-
2
;
proj
+=
stride_proj
-
2
;
...
...
vp10/decoder/decodeframe.c
View file @
0be4d3b1
...
...
@@ -3464,16 +3464,16 @@ static void read_global_motion_params(Global_Motion_Params *params,
break
;
case
GLOBAL_ROTZOOM
:
params
->
motion_params
.
wmtype
=
ROTZOOM
;
params
->
motion_params
.
wmmat
[
2
]
=
params
->
motion_params
.
wmmat
[
0
]
=
vp10_read_primitive_symmetric
(
r
,
GM_ABS_TRANS_BITS
)
*
GM_TRANS_DECODE_FACTOR
;
params
->
motion_params
.
wmmat
[
3
]
=
params
->
motion_params
.
wmmat
[
1
]
=
vp10_read_primitive_symmetric
(
r
,
GM_ABS_TRANS_BITS
)
*
GM_TRANS_DECODE_FACTOR
;
params
->
motion_params
.
wmmat
[
0
]
=
params
->
motion_params
.
wmmat
[
2
]
=
(
vp10_read_primitive_symmetric
(
r
,
GM_ABS_ALPHA_BITS
)
*
GM_ALPHA_DECODE_FACTOR
)
+
(
1
<<
WARPEDMODEL_PREC_BITS
);
params
->
motion_params
.
wmmat
[
1
]
=
params
->
motion_params
.
wmmat
[
3
]
=
vp10_read_primitive_symmetric
(
r
,
GM_ABS_ALPHA_BITS
)
*
GM_ALPHA_DECODE_FACTOR
;
break
;
...
...
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