summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encodeframe.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-04-19 16:28:20 -0700
committerYaowu Xu <yaowu@google.com>2013-04-24 15:58:03 -0700
commitbcf82cf503ed8c1c4db16d1200beb879434b5de7 (patch)
treef3c495f62e441fe78871e8a16ff4e4d1ad74278d /vp9/encoder/vp9_encodeframe.c
parenta2d46434b55dd9ded71b4c7b3560ce7964962bb0 (diff)
downloadlibvpx-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/encoder/vp9_encodeframe.c')
-rw-r--r--vp9/encoder/vp9_encodeframe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index 5bc164400..7dc77d91f 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -579,8 +579,7 @@ static void set_offsets(VP9_COMP *cpi,
// Set up distance of MB to edge of frame in 1/8th pel units
assert(!(mb_col & (bw - 1)) && !(mb_row & (bh - 1)));
- 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);
/* set up source buffers */
setup_pred_block(&x->src, cpi->Source, mb_row, mb_col, NULL, NULL);