]> granicus.if.org Git - libvpx/commitdiff
Removing redundant vp9_pt_energy_class declarations.
authorDmitry Kovalev <dkovalev@google.com>
Mon, 7 Oct 2013 21:11:01 +0000 (14:11 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Mon, 7 Oct 2013 21:11:01 +0000 (14:11 -0700)
Declaring vp9_pt_energy_class in vp9_entropy.h instead of many external
places.

Change-Id: I66e8a3fc119a43f88d130d0dae4133c825a047a3

vp9/common/vp9_entropy.h
vp9/decoder/vp9_detokenize.c
vp9/encoder/vp9_encodemb.c
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_tokenize.c

index ef9ea46f57bc85fbe5e76305a9293d064dda14bc..d412781d14860f15342b071bc7d74c8bfb60b3fc 100644 (file)
@@ -36,6 +36,9 @@
 
 #define INTER_MODE_CONTEXTS     7
 
+extern DECLARE_ALIGNED(16, const uint8_t,
+                       vp9_pt_energy_class[MAX_ENTROPY_TOKENS]);
+
 extern const vp9_tree_index vp9_coef_tree[];
 
 #define DCT_EOB_MODEL_TOKEN     3      /* EOB       Extra Bits 0+0 */
index 8fcf83ee327e60177bc92f1d74cae3426dc7b1ce..e835b89d5ae14804224acf2bbdaf50ac34836171 100644 (file)
@@ -61,8 +61,6 @@ static const vp9_prob cat6_prob[15] = {
   254, 254, 254, 252, 249, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0
 };
 
-DECLARE_ALIGNED(16, extern const uint8_t,
-                vp9_pt_energy_class[MAX_ENTROPY_TOKENS]);
 #define INCREMENT_COUNT(token)               \
   do {                                       \
     coef_counts[type][ref][band][pt]         \
index 1f36f161865f4ffbe2594eb476ca39e85a6b81b8..2300ea4da940b8d50e3071b3e5570b98053dbf3e 100644 (file)
@@ -24,9 +24,6 @@
 #include "vp9/encoder/vp9_rdopt.h"
 #include "vp9/encoder/vp9_tokenize.h"
 
-DECLARE_ALIGNED(16, extern const uint8_t,
-                vp9_pt_energy_class[MAX_ENTROPY_TOKENS]);
-
 void vp9_subtract_block_c(int rows, int cols,
                           int16_t *diff_ptr, ptrdiff_t diff_stride,
                           const uint8_t *src_ptr, ptrdiff_t src_stride,
index 8c91594a878297f64f7e83f0a487ccf2e888edbc..28588adef5076226e67cd6555353002b8cc9212d 100644 (file)
@@ -45,9 +45,6 @@
 /* Factor to weigh the rate for switchable interp filters */
 #define SWITCHABLE_INTERP_RATE_FACTOR 1
 
-DECLARE_ALIGNED(16, extern const uint8_t,
-                vp9_pt_energy_class[MAX_ENTROPY_TOKENS]);
-
 #define LAST_FRAME_MODE_MASK    0xFFEDCD60
 #define GOLDEN_FRAME_MODE_MASK  0xFFDA3BB0
 #define ALT_REF_MODE_MASK       0xFFC648D0
index 4e095f2436d60d10ca78c60ae272af64bf8966c7..08745b01aa786515c3476047aa036def5099f10a 100644 (file)
@@ -29,9 +29,6 @@ vp9_coeff_accum context_counters[TX_SIZES][BLOCK_TYPES];
 extern vp9_coeff_stats tree_update_hist[TX_SIZES][BLOCK_TYPES];
 #endif  /* ENTROPY_STATS */
 
-DECLARE_ALIGNED(16, extern const uint8_t,
-                vp9_pt_energy_class[MAX_ENTROPY_TOKENS]);
-
 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];