Remove unused static functions. Change-Id: I6afaa65c1de44d5c8117fa700832c0b8f9b6211d
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c index 7253fc4..cac1aa5 100644 --- a/av1/encoder/encodetxb.c +++ b/av1/encoder/encodetxb.c
@@ -732,20 +732,6 @@ return cost; } -static INLINE int has_base(tran_low_t qc, int base_idx) { - const int level = base_idx + 1; - return abs(qc) >= level; -} - -static INLINE int has_br(tran_low_t qc) { - return abs(qc) >= 1 + NUM_BASE_LEVELS; -} - -static INLINE void set_eob(TxbInfo *txb_info, int eob) { - txb_info->eob = eob; - txb_info->seg_eob = av1_get_max_eob(txb_info->tx_size); -} - static int optimize_txb(TxbInfo *txb_info, const LV_MAP_COEFF_COST *txb_costs, const LV_MAP_EOB_COST *txb_eob_costs, int *rate_cost) { int update = 0;
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c index 583ea2c..f837f45 100644 --- a/av1/encoder/rdopt.c +++ b/av1/encoder/rdopt.c
@@ -1146,33 +1146,6 @@ } } -// Performs a forward pass through a neural network with 2 fully-connected -// layers, assuming ReLU as activation function. Number of output neurons -// is always equal to 4. -// fc1, fc2 - weight matrices of the respective layers. -// b1, b2 - bias vectors of the respective layers. -static void compute_1D_scores(float *features, int num_features, - const float *fc1, const float *b1, - const float *fc2, const float *b2, - int num_hidden_units, float *dst_scores) { - assert(num_hidden_units <= 32); - float hidden_layer[32]; - for (int i = 0; i < num_hidden_units; i++) { - const float *cur_coef = fc1 + i * num_features; - hidden_layer[i] = 0.0f; - for (int j = 0; j < num_features; j++) - hidden_layer[i] += cur_coef[j] * features[j]; - hidden_layer[i] = AOMMAX(hidden_layer[i] + b1[i], 0.0f); - } - for (int i = 0; i < 4; i++) { - const float *cur_coef = fc2 + i * num_hidden_units; - dst_scores[i] = 0.0f; - for (int j = 0; j < num_hidden_units; j++) - dst_scores[i] += cur_coef[j] * hidden_layer[j]; - dst_scores[i] += b2[i]; - } -} - // Transforms raw scores into a probability distribution across 16 TX types static void score_2D_transform_pow8(float *scores_2D, float shift) { float sum = 0.0f;