diff options
author | Jingning Han <jingning@google.com> | 2014-10-07 12:30:33 -0700 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2014-10-07 12:33:07 -0700 |
commit | b66f7016c1eed780545efa2518a7f33ae401ee35 (patch) | |
tree | ee9231042fd360b37731dddc7ee59aa7cdd2ab89 /vp9/encoder/vp9_bitstream.c | |
parent | 5d9cdac08709d6343fbd028f280a92bd7fd7d04c (diff) | |
download | libvpx-b66f7016c1eed780545efa2518a7f33ae401ee35.tar libvpx-b66f7016c1eed780545efa2518a7f33ae401ee35.tar.gz libvpx-b66f7016c1eed780545efa2518a7f33ae401ee35.tar.bz2 libvpx-b66f7016c1eed780545efa2518a7f33ae401ee35.zip |
Take out repeated block width/height lookup functions
The functions b_width_log2 and b_height_log2 only do direct
table fetch. This commit unifies such use cases by using the
table directly and removes these functions.
Change-Id: I3103fc6ba959c1182886a2799d21b8b77c8a7b6b
Diffstat (limited to 'vp9/encoder/vp9_bitstream.c')
-rw-r--r-- | vp9/encoder/vp9_bitstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index 5114fc55f..694cac76f 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -431,7 +431,7 @@ static void write_modes_sb(VP9_COMP *cpi, const VP9_COMMON *const cm = &cpi->common; MACROBLOCKD *const xd = &cpi->mb.e_mbd; - const int bsl = b_width_log2(bsize); + const int bsl = b_width_log2_lookup[bsize]; const int bs = (1 << bsl) / 4; PARTITION_TYPE partition; BLOCK_SIZE subsize; |