12 #ifndef AOM_AV1_ENCODER_TRANSFORM_SEARCH_H_ 13 #define AOM_AV1_ENCODER_TRANSFORM_SEARCH_H_ 15 #include "av1/common/pred_common.h" 23 #define COLLECT_TX_SIZE_DATA 0 25 #if COLLECT_TX_SIZE_DATA 26 static const char av1_tx_size_data_output_file[] =
"tx_size_data.txt";
31 FTXS_DCT_AND_1D_DCT_ONLY = 1 << 0,
32 FTXS_DISABLE_TRELLIS_OPT = 1 << 1,
33 FTXS_USE_TRANSFORM_DOMAIN = 1 << 2
34 } UENUM1BYTE(FAST_TX_SEARCH_MODE);
36 static AOM_INLINE
int tx_size_cost(
const MACROBLOCK *
const x, BLOCK_SIZE bsize,
40 !block_signals_txsize(bsize))
43 const int32_t tx_size_cat = bsize_to_tx_size_cat(bsize);
44 const int depth = tx_size_to_depth(tx_size, bsize);
46 const int tx_size_ctx = get_tx_size_context(xd);
51 RD_STATS *rd_stats, int64_t ref_best_rd,
52 BLOCK_SIZE bs, TX_SIZE tx_size);
74 RD_STATS *rd_stats, int64_t ref_best_rd,
75 BLOCK_SIZE bs, TX_SIZE tx_size,
76 FAST_TX_SEARCH_MODE ftxs_mode,
int skip_trellis);
96 RD_STATS *rd_stats, BLOCK_SIZE bsize,
118 RD_STATS *rd_stats, BLOCK_SIZE bs,
119 int64_t ref_best_rd);
137 BLOCK_SIZE bsize, int64_t ref_best_rd);
164 RD_STATS *rd_stats, int64_t ref_best_rd,
165 int64_t current_rd,
int plane, BLOCK_SIZE plane_bsize,
166 TX_SIZE tx_size, FAST_TX_SEARCH_MODE ftxs_mode,
198 RD_STATS *rd_stats, RD_STATS *rd_stats_y,
199 RD_STATS *rd_stats_uv,
int mode_rate, int64_t ref_best_rd);
205 #endif // AOM_AV1_ENCODER_TRANSFORM_SEARCH_H_
int tx_size_cost[TX_SIZES - 1][3][TX_SIZES]
tx_size_cost
Definition: block.h:727
MB_MODE_INFO ** mi
Definition: blockd.h:615
Variables related to current coding block.
Definition: blockd.h:568
Top level encoder structure.
Definition: encoder.h:2095
ModeCosts mode_costs
The rate needed to signal a mode to the bitstream.
Definition: block.h:959
TX_MODE tx_mode_search_type
How to search for the optimal tx_size.
Definition: block.h:468
Declares top-level encoder structures and functions.
BLOCK_SIZE bsize
The block size of the current coding block.
Definition: blockd.h:222
Encoder's parameters related to the current coding block.
Definition: block.h:846
TxfmSearchParams txfm_search_params
Parameters that control how motion search is done.
Definition: block.h:1206
MACROBLOCKD e_mbd
Decoder's view of current coding block.
Definition: block.h:864