summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-10-01 09:50:21 -0700
committerYaowu Xu <yaowu@google.com>2013-10-28 16:36:41 -0700
commit8ab0a2031b3e18639add0110a14b36a65109ec62 (patch)
treeea05418c4f766e32ba1e963f6511f6287edc2b8a
parent16bb20631bbe46398c50bff6c891a8df7c9590b7 (diff)
downloadlibvpx-8ab0a2031b3e18639add0110a14b36a65109ec62.tar.gz
fix build with MSVC
near is a key word, changed to use nearmv instead. Change-Id: Ib54438c431b2b2521a62fc7b61a9c127dd7bc01e
-rw-r--r--vp9/decoder/vp9_decodemv.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c
index b337e1a4a..9edf095cb 100644
--- a/vp9/decoder/vp9_decodemv.c
+++ b/vp9/decoder/vp9_decodemv.c
@@ -419,7 +419,7 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
const BLOCK_SIZE bsize = mbmi->sb_type;
const int allow_hp = xd->allow_high_precision_mv;
- int_mv nearest[2], near[2], best[2];
+ int_mv nearest[2], nearmv[2], best[2];
uint8_t inter_mode_ctx;
MV_REFERENCE_FRAME ref0;
int is_compound;
@@ -444,7 +444,7 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
// nearest, nearby
if (bsize < BLOCK_8X8 || mbmi->mode != ZEROMV) {
- vp9_find_best_ref_mvs(xd, mbmi->ref_mvs[ref0], &nearest[0], &near[0]);
+ vp9_find_best_ref_mvs(xd, mbmi->ref_mvs[ref0], &nearest[0], &nearmv[0]);
best[0].as_int = nearest[0].as_int;
}
@@ -454,7 +454,7 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
ref1, mbmi->ref_mvs[ref1], mi_row, mi_col);
if (bsize < BLOCK_8X8 || mbmi->mode != ZEROMV) {
- vp9_find_best_ref_mvs(xd, mbmi->ref_mvs[ref1], &nearest[1], &near[1]);
+ vp9_find_best_ref_mvs(xd, mbmi->ref_mvs[ref1], &nearest[1], &nearmv[1]);
best[1].as_int = nearest[1].as_int;
}
}
@@ -475,11 +475,13 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
b_mode = read_inter_mode(cm, r, inter_mode_ctx);
if (b_mode == NEARESTMV || b_mode == NEARMV) {
- vp9_append_sub8x8_mvs_for_idx(cm, xd, &nearest[0], &near[0], j, 0,
+ vp9_append_sub8x8_mvs_for_idx(cm, xd, &nearest[0],
+ &nearmv[0], j, 0,
mi_row, mi_col);
if (is_compound)
- vp9_append_sub8x8_mvs_for_idx(cm, xd, &nearest[1], &near[1], j, 1,
+ vp9_append_sub8x8_mvs_for_idx(cm, xd, &nearest[1],
+ &nearmv[1], j, 1,
mi_row, mi_col);
}
@@ -497,9 +499,9 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
block[1].as_int = nearest[1].as_int;
break;
case NEARMV:
- block[0].as_int = near[0].as_int;
+ block[0].as_int = nearmv[0].as_int;
if (is_compound)
- block[1].as_int = near[1].as_int;
+ block[1].as_int = nearmv[1].as_int;
break;
case ZEROMV:
block[0].as_int = 0;
@@ -526,9 +528,9 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi,
} else {
switch (mbmi->mode) {
case NEARMV:
- mv0->as_int = near[0].as_int;
+ mv0->as_int = nearmv[0].as_int;
if (is_compound)
- mv1->as_int = near[1].as_int;
+ mv1->as_int = nearmv[1].as_int;
break;
case NEARESTMV: