diff options
author | Deb Mukherjee <debargha@google.com> | 2013-11-12 11:22:21 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2013-11-12 11:22:21 -0800 |
commit | a33a84b11a483adb2fa8bd60946c364d0b397ce2 (patch) | |
tree | 800e2bb86937fd845b07277297e342eaf44f1a17 /vp9/common/vp9_entropy.h | |
parent | e72d49a97a1e4292ce8bfbc98b0d8855b40accf2 (diff) | |
parent | 5ade423774690e2bf877559dc1a1f9547db5dac1 (diff) | |
download | libvpx-a33a84b11a483adb2fa8bd60946c364d0b397ce2.tar libvpx-a33a84b11a483adb2fa8bd60946c364d0b397ce2.tar.gz libvpx-a33a84b11a483adb2fa8bd60946c364d0b397ce2.tar.bz2 libvpx-a33a84b11a483adb2fa8bd60946c364d0b397ce2.zip |
Merge "Removes conditional statements from band getting"
Diffstat (limited to 'vp9/common/vp9_entropy.h')
-rw-r--r-- | vp9/common/vp9_entropy.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/vp9/common/vp9_entropy.h b/vp9/common/vp9_entropy.h index c58e852fe..ccb9c4c55 100644 --- a/vp9/common/vp9_entropy.h +++ b/vp9/common/vp9_entropy.h @@ -127,12 +127,6 @@ static INLINE void reset_skip_context(MACROBLOCKD *xd, BLOCK_SIZE bsize) { extern const uint8_t vp9_coefband_trans_8x8plus[MAXBAND_INDEX + 1]; extern const uint8_t vp9_coefband_trans_4x4[MAXBAND_INDEX + 1]; - -static int get_coef_band(const uint8_t * band_translate, int coef_index) { - return (coef_index > MAXBAND_INDEX) - ? (COEF_BANDS-1) : band_translate[coef_index]; -} - // 128 lists of probabilities are stored for the following ONE node probs: // 1, 3, 5, 7, ..., 253, 255 // In between probabilities are interpolated linearly @@ -181,11 +175,6 @@ static int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a, return combine_entropy_contexts(above_ec, left_ec); } -static const uint8_t *get_band_translate(TX_SIZE tx_size) { - return tx_size == TX_4X4 ? vp9_coefband_trans_4x4 - : vp9_coefband_trans_8x8plus; -} - static void get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, PLANE_TYPE type, int block_idx, const int16_t **scan, const int16_t **scan_nb) { |