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
26static 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);
36static 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);
67 int blk_col,
const BLOCK_SIZE plane_bsize,
68 const BLOCK_SIZE tx_bsize,
69 unsigned int *block_mse_q8);
72 RD_STATS *rd_stats, int64_t ref_best_rd,
73 BLOCK_SIZE bs, TX_SIZE tx_size);
93 RD_STATS *rd_stats, BLOCK_SIZE bsize,
115 RD_STATS *rd_stats, BLOCK_SIZE bs,
116 int64_t ref_best_rd);
134 BLOCK_SIZE bsize, int64_t ref_best_rd);
161 RD_STATS *rd_stats, int64_t ref_best_rd,
162 int64_t current_rd,
int plane, BLOCK_SIZE plane_bsize,
163 TX_SIZE tx_size, FAST_TX_SEARCH_MODE ftxs_mode,
195 RD_STATS *rd_stats, RD_STATS *rd_stats_y,
196 RD_STATS *rd_stats_uv,
int mode_rate, int64_t ref_best_rd);
Declares top-level encoder structures and functions.
Top level encoder structure.
Definition encoder.h:2870
BLOCK_SIZE bsize
The block size of the current coding block.
Definition blockd.h:228
int tx_size_cost[TX_SIZES - 1][3][TX_SIZES]
tx_size_cost
Definition block.h:723
TX_MODE tx_mode_search_type
How to search for the optimal tx_size.
Definition block.h:477
Encoder's parameters related to the current coding block.
Definition block.h:878
MACROBLOCKD e_mbd
Decoder's view of current coding block.
Definition block.h:896
ModeCosts mode_costs
The rate needed to signal a mode to the bitstream.
Definition block.h:1012
TxfmSearchParams txfm_search_params
Parameters that control how motion search is done.
Definition block.h:1304
Variables related to current coding block.
Definition blockd.h:570
MB_MODE_INFO ** mi
Definition blockd.h:617