Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
7e8e507b
Commit
7e8e507b
authored
Apr 06, 2015
by
hkuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary mv clamp with on demand border extension.
Change-Id: Ia2956f06f409b9b0ca8320ca4c1ea5680e938402
parent
5668dcc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodeframe.c
+5
-5
No files found.
vp9/decoder/vp9_decodeframe.c
View file @
7e8e507b
...
...
@@ -1816,9 +1816,6 @@ void dec_build_inter_predictors(VP9Decoder *const pbi, MACROBLOCKD *xd,
int
is_scaled
,
int
ref
)
{
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
uint8_t
*
const
dst
=
dst_buf
->
buf
+
dst_buf
->
stride
*
y
+
x
;
const
MV
mv_q4
=
clamp_mv_to_umv_border_sb
(
xd
,
mv
,
bw
,
bh
,
pd
->
subsampling_x
,
pd
->
subsampling_y
);
MV32
scaled_mv
;
int
xs
,
ys
,
x0
,
y0
,
x0_16
,
y0_16
,
frame_width
,
frame_height
,
buf_stride
,
subpel_x
,
subpel_y
;
...
...
@@ -1837,6 +1834,9 @@ void dec_build_inter_predictors(VP9Decoder *const pbi, MACROBLOCKD *xd,
}
if
(
is_scaled
)
{
const
MV
mv_q4
=
clamp_mv_to_umv_border_sb
(
xd
,
mv
,
bw
,
bh
,
pd
->
subsampling_x
,
pd
->
subsampling_y
);
// Co-ordinate of containing block to pixel precision.
int
x_start
=
(
-
xd
->
mb_to_left_edge
>>
(
3
+
pd
->
subsampling_x
));
int
y_start
=
(
-
xd
->
mb_to_top_edge
>>
(
3
+
pd
->
subsampling_y
));
...
...
@@ -1868,8 +1868,8 @@ void dec_build_inter_predictors(VP9Decoder *const pbi, MACROBLOCKD *xd,
x0_16
=
x0
<<
SUBPEL_BITS
;
y0_16
=
y0
<<
SUBPEL_BITS
;
scaled_mv
.
row
=
mv
_q4
.
row
;
scaled_mv
.
col
=
mv
_q4
.
col
;
scaled_mv
.
row
=
mv
->
row
*
(
1
<<
(
1
-
pd
->
subsampling_y
))
;
scaled_mv
.
col
=
mv
->
col
*
(
1
<<
(
1
-
pd
->
subsampling_x
))
;
xs
=
ys
=
16
;
}
subpel_x
=
scaled_mv
.
col
&
SUBPEL_MASK
;
...
...
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