From 0ef61dd1c9adb15e28c64e7ee44885708c4a5c3b Mon Sep 17 00:00:00 2001 From: Sebastien Alaiwan Date: Wed, 22 Nov 2017 16:29:49 +0100 Subject: [PATCH] Cleanup dead variables Change-Id: I36a4ca8bc0c2390b5731b2a60bdca54e3e37868a --- av1/common/entropymode.c | 18 ------------------ av1/common/entropymode.h | 15 --------------- 2 files changed, 33 deletions(-) diff --git a/av1/common/entropymode.c b/av1/common/entropymode.c index 7ba61984d..268638a08 100644 --- a/av1/common/entropymode.c +++ b/av1/common/entropymode.c @@ -1128,24 +1128,6 @@ const aom_cdf_prob default_palette_uv_size_cdf[PALETTE_BLOCK_SIZES][CDF_SIZE( // When palette mode is enabled, following probability tables indicate the // probabilities to code the "is_palette" bit (i.e. the bit that indicates // if this block uses palette mode or DC_PRED mode). -const aom_prob av1_default_palette_y_mode_prob[PALETTE_BLOCK_SIZES] - [PALETTE_Y_MODE_CONTEXTS] = { - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - { 240, 180, 100 }, - }; - -const aom_prob av1_default_palette_uv_mode_prob[PALETTE_UV_MODE_CONTEXTS] = { - 253, 229 -}; - const aom_cdf_prob default_palette_y_mode_cdf[PALETTE_BLOCK_SIZES] [PALETTE_Y_MODE_CONTEXTS] [CDF_SIZE(2)] = { diff --git a/av1/common/entropymode.h b/av1/common/entropymode.h index df5f1568f..bfe200836 100644 --- a/av1/common/entropymode.h +++ b/av1/common/entropymode.h @@ -449,11 +449,6 @@ extern const aom_cdf_prob default_kf_y_mode_cdf[INTRA_MODES][INTRA_MODES] [CDF_SIZE(INTRA_MODES)]; #endif -extern const aom_prob av1_default_palette_y_mode_prob[PALETTE_BLOCK_SIZES] - [PALETTE_Y_MODE_CONTEXTS]; -extern const aom_prob - av1_default_palette_uv_mode_prob[PALETTE_UV_MODE_CONTEXTS]; - static const int av1_ext_tx_ind[EXT_TX_SET_TYPES][TX_TYPES] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -517,17 +512,7 @@ extern const aom_tree_index extern const aom_tree_index av1_inter_compound_mode_tree[TREE_SIZE(INTER_COMPOUND_MODES)]; extern const aom_tree_index av1_compound_type_tree[TREE_SIZE(COMPOUND_TYPES)]; -extern const aom_tree_index - av1_palette_color_index_tree[PALETTE_SIZES][TREE_SIZE(PALETTE_COLORS)]; -extern const aom_tree_index av1_ext_tx_tree[EXT_TX_SET_TYPES] - [TREE_SIZE(TX_TYPES)]; extern const aom_tree_index av1_motion_mode_tree[TREE_SIZE(MOTION_MODES)]; -#if CONFIG_LOOP_RESTORATION -#define RESTORE_NONE_SGRPROJ_PROB 64 -#define RESTORE_NONE_WIENER_PROB 64 -extern const aom_tree_index - av1_switchable_restore_tree[TREE_SIZE(RESTORE_SWITCHABLE_TYPES)]; -#endif // CONFIG_LOOP_RESTORATION void av1_setup_frame_contexts(struct AV1Common *cm); void av1_setup_past_independence(struct AV1Common *cm); -- GitLab