diff options
author | Yaowu Xu <yaowu@google.com> | 2013-04-19 16:28:20 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2013-04-24 15:58:03 -0700 |
commit | bcf82cf503ed8c1c4db16d1200beb879434b5de7 (patch) | |
tree | f3c495f62e441fe78871e8a16ff4e4d1ad74278d /vp9/decoder/vp9_decodemv.c | |
parent | a2d46434b55dd9ded71b4c7b3560ce7964962bb0 (diff) | |
download | libvpx-bcf82cf503ed8c1c4db16d1200beb879434b5de7.tar libvpx-bcf82cf503ed8c1c4db16d1200beb879434b5de7.tar.gz libvpx-bcf82cf503ed8c1c4db16d1200beb879434b5de7.tar.bz2 libvpx-bcf82cf503ed8c1c4db16d1200beb879434b5de7.zip |
Merge two similar functions into one
Function set_mb_row() and set_mb_col() do similar work and are always
called together, this commit merged them into a single function for
clarity and easy maintainence. This was a TODO item.
Change-Id: I956bd9ed6afb8b2b0469b20fd8bc893b26f8a0f3
Diffstat (limited to 'vp9/decoder/vp9_decodemv.c')
-rw-r--r-- | vp9/decoder/vp9_decodemv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c index a0733524d..65e81b997 100644 --- a/vp9/decoder/vp9_decodemv.c +++ b/vp9/decoder/vp9_decodemv.c @@ -620,8 +620,7 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, // Distance of Mb to the various image edges. // These specified to 8th pel as they are always compared to MV values // that are in 1/8th pel units - set_mb_row(cm, xd, mb_row, bh); - set_mb_col(cm, xd, mb_col, bw); + set_mb_row_col(cm, xd, mb_row, bh, mb_col, bw); mb_to_top_edge = xd->mb_to_top_edge - LEFT_TOP_MARGIN; mb_to_bottom_edge = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN; |