]> granicus.if.org Git - libvpx/commitdiff
Shrink dct_value_cost[] to int16_t.
authorAlex Converse <aconverse@google.com>
Tue, 25 Feb 2014 21:06:42 +0000 (13:06 -0800)
committerAlex Converse <aconverse@google.com>
Tue, 25 Feb 2014 21:07:18 +0000 (13:07 -0800)
The largest value is 13358.

Change-Id: I7a6b024a92b6250933d9ebc0cad066b966c96bd4

vp9/encoder/vp9_tokenize.c
vp9/encoder/vp9_tokenize.h

index 2be00ff6286d06319044ae01cd36ff7313ca844c..7ae110707d615f96b2517e5bb1e1918d42bce8ce 100644 (file)
@@ -23,8 +23,8 @@
 
 static TOKENVALUE dct_value_tokens[DCT_MAX_VALUE * 2];
 const TOKENVALUE *vp9_dct_value_tokens_ptr;
-static int dct_value_cost[DCT_MAX_VALUE * 2];
-const int *vp9_dct_value_cost_ptr;
+static int16_t dct_value_cost[DCT_MAX_VALUE * 2];
+const int16_t *vp9_dct_value_cost_ptr;
 
 // Array indices are identical to previously-existing CONTEXT_NODE indices
 const vp9_tree_index vp9_coef_tree[TREE_SIZE(ENTROPY_TOKENS)] = {
index ea86240beee2ac5d14042e650552b1d7f03f331e..063c0bafe7babb161e7699b5eacebae4ffbabbdd 100644 (file)
@@ -47,7 +47,7 @@ struct VP9_COMP;
 void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run,
                      BLOCK_SIZE bsize);
 
-extern const int *vp9_dct_value_cost_ptr;
+extern const int16_t *vp9_dct_value_cost_ptr;
 /* TODO: The Token field should be broken out into a separate char array to
  *  improve cache locality, since it's needed for costing when the rest of the
  *  fields are not.