From ab711815452ee44b06663b68ee21bb200e9eed41 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Fri, 17 Mar 2017 16:24:45 -0700 Subject: Drop vp9_get_token_extracost vp9_get_token_cost does the same thing with one fewer lookup. Change-Id: Ifc110b12403cb1a04a3f91357ab435c67b4815d6 --- vp9/encoder/vp9_tokenize.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'vp9/encoder/vp9_tokenize.h') diff --git a/vp9/encoder/vp9_tokenize.h b/vp9/encoder/vp9_tokenize.h index 4b8d7ad5c..b2f63ffef 100644 --- a/vp9/encoder/vp9_tokenize.h +++ b/vp9/encoder/vp9_tokenize.h @@ -80,23 +80,6 @@ extern const uint16_t vp9_cat6_high_cost[64]; extern const uint16_t vp9_cat6_high10_high_cost[256]; extern const uint16_t vp9_cat6_high12_high_cost[1024]; -static INLINE void vp9_get_token_extracost(const uint16_t *cat6_high_table, - int v, int16_t *token, - int *extracost) { - EXTRABIT extrabits; // unsigned extrabits - v = abs(v); - if (v >= CAT6_MIN_VAL) { - *token = CATEGORY6_TOKEN; - extrabits = v - CAT6_MIN_VAL; - *extracost = - vp9_cat6_low_cost[extrabits & 0xff] + cat6_high_table[extrabits >> 8]; - } else { - *token = vp9_dct_cat_lt_10_value_tokens[v].token; - extrabits = vp9_dct_cat_lt_10_value_tokens[v].extra >> 1; - *extracost = vp9_extra_bits[*token].cost[extrabits]; - } -} - #if CONFIG_VP9_HIGHBITDEPTH static INLINE const uint16_t *vp9_get_high_cost_table(int bit_depth) { return bit_depth == 8 ? vp9_cat6_high_cost -- cgit v1.2.3