summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-11-21 16:37:27 -0800
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2013-11-21 16:37:27 -0800
commitad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf (patch)
treef586619d2a90718e9b7aad885a68821b62ab6eff /vp9/common
parent6042f781f7cf01065f95274235c485f69317957d (diff)
parent79b5a2b1429c32275f6bf9be12f8df9bb087daf9 (diff)
downloadlibvpx-ad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf.tar
libvpx-ad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf.tar.gz
libvpx-ad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf.tar.bz2
libvpx-ad3333e2cd9ecfcf13a96ef4a176df50bbbba2bf.zip
Merge "Removing plane_block_{width, height} functions."
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_blockd.h10
-rw-r--r--vp9/common/vp9_reconinter.c5
2 files changed, 3 insertions, 12 deletions
diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h
index 121947b7e..7b147b424 100644
--- a/vp9/common/vp9_blockd.h
+++ b/vp9/common/vp9_blockd.h
@@ -286,16 +286,6 @@ static BLOCK_SIZE get_plane_block_size(BLOCK_SIZE bsize,
return bs;
}
-static INLINE int plane_block_width(BLOCK_SIZE bsize,
- const struct macroblockd_plane* plane) {
- return 4 << (b_width_log2(bsize) - plane->subsampling_x);
-}
-
-static INLINE int plane_block_height(BLOCK_SIZE bsize,
- const struct macroblockd_plane* plane) {
- return 4 << (b_height_log2(bsize) - plane->subsampling_y);
-}
-
typedef void (*foreach_transformed_block_visitor)(int plane, int block,
BLOCK_SIZE plane_bsize,
TX_SIZE tx_size,
diff --git a/vp9/common/vp9_reconinter.c b/vp9/common/vp9_reconinter.c
index 3add81b99..aa17b85c8 100644
--- a/vp9/common/vp9_reconinter.c
+++ b/vp9/common/vp9_reconinter.c
@@ -106,9 +106,10 @@ static void build_inter_predictors(MACROBLOCKD *xd, int plane, int block,
BLOCK_SIZE bsize, int pred_w, int pred_h,
int mi_x, int mi_y) {
struct macroblockd_plane *const pd = &xd->plane[plane];
- const int bwl = b_width_log2(bsize) - pd->subsampling_x;
+ const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd);
+ const int bwl = b_width_log2(plane_bsize);
const int bw = 4 << bwl;
- const int bh = plane_block_height(bsize, pd);
+ const int bh = 4 * num_4x4_blocks_high_lookup[plane_bsize];
const int x = 4 * (block & ((1 << bwl) - 1));
const int y = 4 * (block >> bwl);
const MODE_INFO *mi = xd->mi_8x8[0];