Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
549258b1
Commit
549258b1
authored
11 years ago
by
Ronald S. Bultje
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "border mvref issue" into experimental
parents
7f99844e
75459d65
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_mvref_common.c
+7
-8
vp9/common/vp9_mvref_common.c
with
7 additions
and
8 deletions
vp9/common/vp9_mvref_common.c
+
7
−
8
View file @
549258b1
...
...
@@ -152,6 +152,7 @@ void vp9_find_mv_refs_idx(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
int
split_count
=
0
;
int
(
*
mv_ref_search
)[
2
];
const
int
mi_col
=
get_mi_col
(
xd
);
const
int
mi_row
=
get_mi_row
(
xd
);
int
intra_count
=
0
;
int
zero_count
=
0
;
int
newmv_count
=
0
;
...
...
@@ -171,10 +172,10 @@ void vp9_find_mv_refs_idx(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
// Look at nearest neigbours
for
(
i
=
0
;
i
<
2
;
++
i
)
{
const
int
mi_search_col
=
mi_col
+
mv_ref_search
[
i
][
0
];
const
int
mi_search_row
=
mi_row
+
mv_ref_search
[
i
][
1
];
if
((
mi_search_col
>=
cm
->
cur_tile_mi_col_start
)
&&
(
mi_search_col
<
cm
->
cur_tile_mi_col_end
)
&&
((
mv_ref_search
[
i
][
1
]
<<
6
)
>=
xd
->
mb_to_top_edge
)
&&
((
-
mv_ref_search
[
i
][
1
]
<<
6
)
<=
xd
->
mb_to_bottom_edge
))
{
(
mi_search_row
>=
0
)
&&
(
mi_search_row
<
cm
->
mi_rows
))
{
int
b
;
candidate_mi
=
here
+
mv_ref_search
[
i
][
0
]
+
...
...
@@ -206,11 +207,10 @@ void vp9_find_mv_refs_idx(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
for
(
i
=
2
;
(
i
<
MVREF_NEIGHBOURS
)
&&
(
refmv_count
<
MAX_MV_REF_CANDIDATES
);
++
i
)
{
const
int
mi_search_col
=
mi_col
+
mv_ref_search
[
i
][
0
];
const
int
mi_search_row
=
mi_row
+
mv_ref_search
[
i
][
1
];
if
((
mi_search_col
>=
cm
->
cur_tile_mi_col_start
)
&&
(
mi_search_col
<
cm
->
cur_tile_mi_col_end
)
&&
((
mv_ref_search
[
i
][
1
]
<<
6
)
>=
xd
->
mb_to_top_edge
)
&&
((
-
mv_ref_search
[
i
][
1
]
<<
6
)
<=
xd
->
mb_to_bottom_edge
))
{
(
mi_search_row
>=
0
)
&&
(
mi_search_row
<
cm
->
mi_rows
))
{
candidate_mi
=
here
+
mv_ref_search
[
i
][
0
]
+
(
mv_ref_search
[
i
][
1
]
*
xd
->
mode_info_stride
);
...
...
@@ -237,11 +237,10 @@ void vp9_find_mv_refs_idx(VP9_COMMON *cm, MACROBLOCKD *xd, MODE_INFO *here,
for
(
i
=
0
;
(
i
<
MVREF_NEIGHBOURS
)
&&
(
refmv_count
<
MAX_MV_REF_CANDIDATES
);
++
i
)
{
const
int
mi_search_col
=
mi_col
+
mv_ref_search
[
i
][
0
];
const
int
mi_search_row
=
mi_row
+
mv_ref_search
[
i
][
1
];
if
((
mi_search_col
>=
cm
->
cur_tile_mi_col_start
)
&&
(
mi_search_col
<
cm
->
cur_tile_mi_col_end
)
&&
((
mv_ref_search
[
i
][
1
]
<<
6
)
>=
xd
->
mb_to_top_edge
)
&&
((
-
mv_ref_search
[
i
][
1
]
<<
6
)
<=
xd
->
mb_to_bottom_edge
))
{
(
mi_search_row
>=
0
)
&&
(
mi_search_row
<
cm
->
mi_rows
))
{
candidate_mi
=
here
+
mv_ref_search
[
i
][
0
]
+
(
mv_ref_search
[
i
][
1
]
*
xd
->
mode_info_stride
);
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets