Remove unused structures from encodetxb.c/.h This CL removes unused structures LevelDownStats, ENCODE_TXB_ARGS and TxbInfo from encodetxb.c and encodetxb.h. Change-Id: Iba528919e1c50c76416715b6207de5ef03d67c99
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c index 16b5be2..c906d6b 100644 --- a/av1/encoder/encodetxb.c +++ b/av1/encoder/encodetxb.c
@@ -23,24 +23,6 @@ #include "av1/encoder/rdopt.h" #include "av1/encoder/tokenize.h" -typedef struct LevelDownStats { - int update; - tran_low_t low_qc; - tran_low_t low_dqc; - int64_t dist0; - int rate; - int rate_low; - int64_t dist; - int64_t dist_low; - int64_t rd; - int64_t rd_low; - int64_t nz_rd; - int64_t rd_diff; - int cost_diff; - int64_t dist_diff; - int new_eob; -} LevelDownStats; - void av1_alloc_txb_buf(AV1_COMP *cpi) { AV1_COMMON *cm = &cpi->common; CoeffBufferPool *coeff_buf_pool = &cpi->coeff_buffer_pool; @@ -415,12 +397,6 @@ } } -typedef struct encode_txb_args { - const AV1_COMMON *cm; - MACROBLOCK *x; - aom_writer *w; -} ENCODE_TXB_ARGS; - void av1_write_intra_coeffs_mb(const AV1_COMMON *const cm, MACROBLOCK *x, aom_writer *w, BLOCK_SIZE bsize) { MACROBLOCKD *xd = &x->e_mbd;
diff --git a/av1/encoder/encodetxb.h b/av1/encoder/encodetxb.h index 72c9264..4c0643d 100644 --- a/av1/encoder/encodetxb.h +++ b/av1/encoder/encodetxb.h
@@ -29,28 +29,6 @@ #define DC_SIGN_CTX_SHIFT 4 #define DC_SIGN_CTX_MASK 3 -typedef struct TxbInfo { - tran_low_t *qcoeff; - uint8_t *levels; // absolute values and clamped to 255. - tran_low_t *dqcoeff; - const tran_low_t *tcoeff; - const int16_t *dequant; - int shift; - TX_SIZE tx_size; - TX_SIZE txs_ctx; - TX_TYPE tx_type; - int bwl; - int width; - int height; - int eob; - int seg_eob; - const SCAN_ORDER *scan_order; - TXB_CTX *txb_ctx; - int64_t rdmult; - const qm_val_t *iqmatrix; - int tx_type_cost; -} TxbInfo; - int av1_get_eob_pos_token(const int eob, int *const extra); /*!\endcond */