/external/libaom/libaom/test/ |
D | encodetxb_test.cc | 37 const uint16_t eob, const TX_SIZE tx_size, 69 for (int tx_size = TX_4X4; tx_size < TX_SIZES_ALL; ++tx_size) { in GetNzMapContextsRun() local 70 const int bwl = get_txb_bwl((TX_SIZE)tx_size); in GetNzMapContextsRun() 71 const int width = get_txb_wide((TX_SIZE)tx_size); in GetNzMapContextsRun() 72 const int height = get_txb_high((TX_SIZE)tx_size); in GetNzMapContextsRun() 73 const int real_width = tx_size_wide[tx_size]; in GetNzMapContextsRun() 74 const int real_height = tx_size_high[tx_size]; in GetNzMapContextsRun() 75 const int16_t *const scan = av1_scan_orders[tx_size][tx_type].scan; in GetNzMapContextsRun() 82 av1_get_nz_map_contexts_c(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() 84 get_nz_map_contexts_func_(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() [all …]
|
D | av1_fwd_txfm2d_test.cc | 48 tx_width_ = tx_size_wide[fwd_txfm_flip_cfg.tx_size]; in SetUp() 49 tx_height_ = tx_size_high[fwd_txfm_flip_cfg.tx_size]; in SetUp() 189 const TX_SIZE tx_size = static_cast<TX_SIZE>(s); in GetTxfm2dParamList() local 190 if (libaom_test::IsTxSizeTypeValid(tx_size, tx_type)) { in GetTxfm2dParamList() 192 AV1FwdTxfm2dParam(tx_type, tx_size, max_error, avg_error)); in GetTxfm2dParamList() 209 for (int tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) { in TEST() local 211 if (libaom_test::IsTxSizeTypeValid(static_cast<TX_SIZE>(tx_size), in TEST() 218 static_cast<TX_SIZE>(tx_size), &cfg); in TEST() 236 void AV1FwdTxfm2dMatchTest(TX_SIZE tx_size, lowbd_fwd_txfm_func target_func) { in AV1FwdTxfm2dMatchTest() argument 240 const int rows = tx_size_high[tx_size]; in AV1FwdTxfm2dMatchTest() [all …]
|
D | av1_inv_txfm2d_test.cc | 197 const TX_SIZE tx_size = static_cast<TX_SIZE>(s); in GetInvTxfm2dParamList() local 198 if (libaom_test::IsTxSizeTypeValid(tx_size, tx_type)) { in GetInvTxfm2dParamList() 200 AV1InvTxfm2dParam(tx_type, tx_size, max_error, avg_error)); in GetInvTxfm2dParamList() 217 for (int tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) { in TEST() local 219 if (libaom_test::IsTxSizeTypeValid(static_cast<TX_SIZE>(tx_size), in TEST() 226 static_cast<TX_SIZE>(tx_size), &cfg); in TEST() 230 (TX_SIZE)tx_size, bd); in TEST() 246 void RunAV1InvTxfm2dTest(TX_TYPE tx_type, TX_SIZE tx_size, int run_times); 252 void AV1LbdInvTxfm2d::RunAV1InvTxfm2dTest(TX_TYPE tx_type, TX_SIZE tx_size, in RunAV1InvTxfm2dTest() argument 254 FwdTxfm2dFunc fwd_func_ = libaom_test::fwd_txfm_func_ls[tx_size]; in RunAV1InvTxfm2dTest() [all …]
|
D | cfl_test.cc | 84 tx_size = tx; in init() 85 width = tx_size_wide[tx_size]; in init() 86 height = tx_size_high[tx_size]; in init() 91 TX_SIZE tx_size; member in __anon41cf28f70111::CFLTest 161 typedef cfl_subtract_average_fn (*sub_avg_fn)(TX_SIZE tx_size); 168 sub_avg = ::testing::get<1>(this->GetParam())(tx_size); in SetUp() 169 sub_avg_ref = get_subtract_average_fn_c(tx_size); in SetUp() 213 fun_420 = ::testing::get<1>(this->GetParam())(this->tx_size); in SetUp() 214 fun_422 = ::testing::get<2>(this->GetParam())(this->tx_size); in SetUp() 215 fun_444 = ::testing::get<3>(this->GetParam())(this->tx_size); in SetUp() [all …]
|
D | scan_test.cc | 98 for (int tx_size = TX_4X4; tx_size < TX_SIZES_ALL; ++tx_size) { in TEST() local 99 const int org_rows = tx_size_high[(TX_SIZE)tx_size]; in TEST() 100 const int org_cols = tx_size_wide[(TX_SIZE)tx_size]; in TEST() 101 const int rows = get_txb_high((TX_SIZE)tx_size); in TEST() 102 const int cols = get_txb_wide((TX_SIZE)tx_size); in TEST() 104 if (libaom_test::IsTxSizeTypeValid(static_cast<TX_SIZE>(tx_size), in TEST() 126 get_default_scan((TX_SIZE)tx_size, (TX_TYPE)tx_type); in TEST()
|
/external/libaom/libaom/av1/encoder/ |
D | encodemb.c | 67 int blk_col, int blk_row, TX_SIZE tx_size) { in av1_subtract_txb() argument 74 const int tx1d_width = tx_size_wide[tx_size]; in av1_subtract_txb() 75 const int tx1d_height = tx_size_high[tx_size]; in av1_subtract_txb() 100 int block, TX_SIZE tx_size, TX_TYPE tx_type, in av1_optimize_b() argument 110 *rate_cost = av1_cost_skip_txb(mb, txb_ctx, plane, tx_size); in av1_optimize_b() 114 return av1_optimize_txb_new(cpi, mb, plane, block, tx_size, tx_type, txb_ctx, in av1_optimize_b() 134 TX_SIZE tx_size, TX_TYPE tx_type, in av1_xform_quant() argument 140 const SCAN_ORDER *const scan_order = get_scan(tx_size, tx_type); in av1_xform_quant() 148 const TX_SIZE qm_tx_size = av1_get_adjusted_tx_size(tx_size); in av1_xform_quant() 161 qparam.log_scale = av1_get_tx_scale(tx_size); in av1_xform_quant() [all …]
|
D | encodetxb.c | 160 void av1_update_eob_context(int cdf_idx, int eob, TX_SIZE tx_size, argument 165 void av1_update_eob_context(int eob, TX_SIZE tx_size, TX_CLASS tx_class, 171 TX_SIZE txs_ctx = get_txsize_entropy_ctx(tx_size); 173 const int eob_multi_size = txsize_log2_minus4[tx_size]; 356 const int is_eob, const TX_SIZE tx_size, argument 366 return get_nz_map_ctx_from_stats(stats, coeff_idx, bwl, tx_size, tx_class); 391 scan_idx, is_eob, txb_info->tx_size, tx_class); 443 txb_info->tx_size, tx_class); 494 const TX_SIZE tx_size, const TX_CLASS tx_class, argument 496 const int bwl = get_txb_bwl(tx_size); [all …]
|
D | encodemb.h | 64 TX_SIZE tx_size, TX_TYPE tx_type, 68 int block, TX_SIZE tx_size, TX_TYPE tx_type, 72 int blk_col, int blk_row, TX_SIZE tx_size); 77 TX_SIZE tx_size, ENTROPY_CONTEXT *a, in av1_set_txb_context() argument 80 memset(a, ctx, tx_size_wide_unit[tx_size] * sizeof(*a)); in av1_set_txb_context() 81 memset(l, ctx, tx_size_high_unit[tx_size] * sizeof(*l)); in av1_set_txb_context() 85 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
|
D | tokenize.c | 94 BLOCK_SIZE bsize, TX_SIZE tx_size, in get_color_map_params() argument 97 (void)tx_size; in get_color_map_params() 106 TX_SIZE tx_size, COLOR_MAP_TYPE type) { in av1_cost_color_map() argument 109 get_color_map_params(x, plane, bsize, tx_size, type, &color_map_params); in av1_cost_color_map() 117 TOKENEXTRA **t, BLOCK_SIZE bsize, TX_SIZE tx_size, in av1_tokenize_color_map() argument 122 get_color_map_params(x, plane, bsize, tx_size, type, &color_map_params); in av1_tokenize_color_map() 134 TX_SIZE tx_size, BLOCK_SIZE plane_bsize, int blk_row, in tokenize_vartx() argument 151 if (tx_size == plane_tx_size || plane) { in tokenize_vartx() 156 plane_bsize, tx_size, arg); in tokenize_vartx() 159 tx_size, arg); in tokenize_vartx() [all …]
|
D | rdopt.h | 41 TX_SIZE tx_size, int blk_row, in av1_update_txb_coeff_cost() argument 45 (void)tx_size; in av1_update_txb_coeff_cost() 49 const int txb_h = tx_size_high_unit[tx_size]; in av1_update_txb_coeff_cost() 50 const int txb_w = tx_size_wide_unit[tx_size]; in av1_update_txb_coeff_cost() 78 int plane, TX_SIZE tx_size) { in av1_cost_skip_txb() argument 79 const TX_SIZE txs_ctx = get_txsize_entropy_ctx(tx_size); in av1_cost_skip_txb() 87 int plane, int block, TX_SIZE tx_size, in av1_cost_coeffs() argument 97 av1_cost_coeffs_txb(cm, x, plane, block, tx_size, tx_type, txb_ctx); in av1_cost_coeffs()
|
D | encodetxb.h | 34 TX_SIZE tx_size; member 52 const int plane, const int block, const TX_SIZE tx_size, 56 TX_SIZE tx_size, const tran_low_t *tcoeff, 67 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, 72 TX_SIZE tx_size, void *arg); 79 int block, TX_SIZE tx_size, TX_TYPE tx_type,
|
/external/libaom/libaom/av1/common/ |
D | txb_common.h | 58 static INLINE int get_txb_bwl(TX_SIZE tx_size) { in get_txb_bwl() argument 59 tx_size = av1_get_adjusted_tx_size(tx_size); in get_txb_bwl() 60 return tx_size_wide_log2[tx_size]; in get_txb_bwl() 63 static INLINE int get_txb_wide(TX_SIZE tx_size) { in get_txb_wide() argument 64 tx_size = av1_get_adjusted_tx_size(tx_size); in get_txb_wide() 65 return tx_size_wide[tx_size]; in get_txb_wide() 68 static INLINE int get_txb_high(TX_SIZE tx_size) { in get_txb_high() argument 69 tx_size = av1_get_adjusted_tx_size(tx_size); in get_txb_high() 70 return tx_size_high[tx_size]; in get_txb_high() 264 const int bwl, const TX_SIZE tx_size, const TX_CLASS tx_class) { in get_nz_map_ctx_from_stats() argument [all …]
|
D | cfl.c | 66 TX_SIZE tx_size, CFL_PRED_TYPE pred_plane) { in cfl_load_dc_pred() argument 67 const int width = tx_size_wide[tx_size]; in cfl_load_dc_pred() 68 const int height = tx_size_high[tx_size]; in cfl_load_dc_pred() 177 static void cfl_compute_parameters(MACROBLOCKD *const xd, TX_SIZE tx_size) { in CFL_PREDICT_FN() 182 cfl_pad(cfl, tx_size_wide[tx_size], tx_size_high[tx_size]); in CFL_PREDICT_FN() 183 get_subtract_average_fn(tx_size)(cfl->recon_buf_q3, cfl->ac_buf_q3); in CFL_PREDICT_FN() 188 TX_SIZE tx_size, int plane) { in cfl_predict_block() argument 193 if (!cfl->are_parameters_computed) cfl_compute_parameters(xd, tx_size); in cfl_predict_block() 197 assert((tx_size_high[tx_size] - 1) * CFL_BUF_LINE + tx_size_wide[tx_size] <= in cfl_predict_block() 201 get_predict_hbd_fn(tx_size)(cfl->ac_buf_q3, dst_16, dst_stride, alpha_q3, in cfl_predict_block() [all …]
|
D | blockd.h | 263 TX_SIZE tx_size; member 660 static INLINE int is_rect_tx(TX_SIZE tx_size) { return tx_size >= TX_SIZES; } in is_rect_tx() argument 689 static INLINE TxSetType av1_get_ext_tx_set_type(TX_SIZE tx_size, int is_inter, in av1_get_ext_tx_set_type() argument 691 const TX_SIZE tx_size_sqr_up = txsize_sqr_up_map[tx_size]; in av1_get_ext_tx_set_type() 697 const TX_SIZE tx_size_sqr = txsize_sqr_map[tx_size]; in av1_get_ext_tx_set_type() 715 static INLINE int get_ext_tx_set(TX_SIZE tx_size, int is_inter, in get_ext_tx_set() argument 718 av1_get_ext_tx_set_type(tx_size, is_inter, use_reduced_set); in get_ext_tx_set() 722 static INLINE int get_ext_tx_types(TX_SIZE tx_size, int is_inter, in get_ext_tx_types() argument 725 av1_get_ext_tx_set_type(tx_size, is_inter, use_reduced_set); in get_ext_tx_types() 750 static INLINE int av1_block_index_to_raster_order(TX_SIZE tx_size, in av1_block_index_to_raster_order() argument [all …]
|
D | idct.c | 24 int av1_get_tx_scale(const TX_SIZE tx_size) { in av1_get_tx_scale() argument 25 const int pels = tx_size_2d[tx_size]; in av1_get_tx_scale() 198 static void init_txfm_param(const MACROBLOCKD *xd, int plane, TX_SIZE tx_size, in init_txfm_param() argument 203 txfm_param->tx_size = tx_size; in init_txfm_param() 209 txfm_param->tx_size, is_inter_block(xd->mi[0]), reduced_tx_set); in init_txfm_param() 215 const TX_SIZE tx_size = txfm_param->tx_size; in av1_highbd_inv_txfm_add_c() local 216 switch (tx_size) { in av1_highbd_inv_txfm_add_c() 283 const TX_SIZE tx_size = txfm_param->tx_size; in av1_inv_txfm_add_c() local 286 int w = tx_size_wide[tx_size]; in av1_inv_txfm_add_c() 287 int h = tx_size_high[tx_size]; in av1_inv_txfm_add_c() [all …]
|
D | reconintra.c | 625 static void dr_predictor(uint8_t *dst, ptrdiff_t stride, TX_SIZE tx_size, in dr_predictor() argument 630 const int bw = tx_size_wide[tx_size]; in dr_predictor() 631 const int bh = tx_size_high[tx_size]; in dr_predictor() 644 pred[V_PRED][tx_size](dst, stride, above, left); in dr_predictor() 646 pred[H_PRED][tx_size](dst, stride, above, left); in dr_predictor() 764 TX_SIZE tx_size, const uint16_t *above, in highbd_dr_predictor() argument 769 const int bw = tx_size_wide[tx_size]; in highbd_dr_predictor() 770 const int bh = tx_size_high[tx_size]; in highbd_dr_predictor() 783 pred_high[V_PRED][tx_size](dst, stride, above, left, bd); in highbd_dr_predictor() 785 pred_high[H_PRED][tx_size](dst, stride, above, left, bd); in highbd_dr_predictor() [all …]
|
/external/libaom/libaom/av1/decoder/ |
D | decodetxb.c | 62 static INLINE void read_coeffs_reverse_2d(aom_reader *r, TX_SIZE tx_size, in read_coeffs_reverse_2d() argument 70 const int coeff_ctx = get_lower_levels_ctx_2d(levels, pos, bwl, tx_size); in read_coeffs_reverse_2d() 86 static INLINE void read_coeffs_reverse(aom_reader *r, TX_SIZE tx_size, in read_coeffs_reverse() argument 94 get_lower_levels_ctx(levels, pos, bwl, tx_size, tx_class); in read_coeffs_reverse() 114 const TX_SIZE tx_size) { in av1_read_coeffs_txb() argument 118 const TX_SIZE txs_ctx = get_txsize_entropy_ctx(tx_size); in av1_read_coeffs_txb() 124 const int shift = av1_get_tx_scale(tx_size); in av1_read_coeffs_txb() 125 const int bwl = get_txb_bwl(tx_size); in av1_read_coeffs_txb() 126 const int width = get_txb_wide(tx_size); in av1_read_coeffs_txb() 127 const int height = get_txb_high(tx_size); in av1_read_coeffs_txb() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodemb.c | 61 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in vp9_optimize_b() argument 73 const int default_eob = 16 << (tx_size << 1); in vp9_optimize_b() 74 const int shift = (tx_size == TX_32X32); in vp9_optimize_b() 76 const uint8_t *const band_translate = get_band_translate(tx_size); in vp9_optimize_b() 77 const scan_order *const so = get_scan(xd, tx_size, plane_type, block); in vp9_optimize_b() 99 mb->token_costs[tx_size][plane_type][ref]; in vp9_optimize_b() 345 BLOCK_SIZE plane_bsize, TX_SIZE tx_size) { in vp9_xform_quant_fp() argument 349 const scan_order *const scan_order = &vp9_default_scan_orders[tx_size]; in vp9_xform_quant_fp() 362 switch (tx_size) { in vp9_xform_quant_fp() 382 assert(tx_size == TX_4X4); in vp9_xform_quant_fp() [all …]
|
D | vp9_tokenize.c | 318 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, in set_entropy_context_b() argument 326 vp9_set_contexts(xd, pd, plane_bsize, tx_size, p->eobs[block] > 0, col, row); in set_entropy_context_b() 349 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) { in tokenize_b() argument 370 td->rd_counts.coef_counts[tx_size][type][ref]; in tokenize_b() 372 cpi->common.fc->coef_probs[tx_size][type][ref]; in tokenize_b() 374 td->counts->eob_branch[tx_size][type][ref]; in tokenize_b() 375 const uint8_t *const band = get_band_translate(tx_size); in tokenize_b() 376 const int tx_eob = 16 << (tx_size << 1); in tokenize_b() 379 pt = get_entropy_context(tx_size, pd->above_context + col, in tokenize_b() 381 so = get_scan(xd, tx_size, type, block); in tokenize_b() [all …]
|
D | vp9_encodemb.h | 28 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, 33 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 35 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 37 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 42 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
|
/external/libaom/libaom/av1/encoder/x86/ |
D | av1_fwd_txfm2d_sse4.c | 86 assert(cfg->tx_size < TX_SIZES); in fwd_txfm2d_sse4_1() 87 const int txfm_size = tx_size_wide[cfg->tx_size]; in fwd_txfm2d_sse4_1() 116 assert(cfg->tx_size < TX_SIZES); in fwd_txfm2d_64x64_sse4_1() 117 const int txfm_size = tx_size_wide[cfg->tx_size]; in fwd_txfm2d_64x64_sse4_1() 194 const TX_SIZE tx_size = TX_64X64; in lowbd_fwd_txfm2d_64x64_sse4_1() local 196 const int8_t *shift = fwd_txfm_shift_ls[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() 197 const int txw_idx = get_txw_idx(tx_size); in lowbd_fwd_txfm2d_64x64_sse4_1() 198 const int txh_idx = get_txh_idx(tx_size); in lowbd_fwd_txfm2d_64x64_sse4_1() 201 const int width = tx_size_wide[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() 202 const int height = tx_size_high[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_blockd.c | 45 const TX_SIZE tx_size = plane ? get_uv_tx_size(mi, pd) : mi->tx_size; in vp9_foreach_transformed_block_in_plane() local 49 const int step = 1 << (tx_size << 1); in vp9_foreach_transformed_block_in_plane() 63 const int extra_step = ((num_4x4_w - max_blocks_wide) >> tx_size) * step; in vp9_foreach_transformed_block_in_plane() 67 for (r = 0; r < max_blocks_high; r += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane() 69 for (c = 0; c < max_blocks_wide; c += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane() 70 visit(plane, i, r, c, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane() 88 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, in vp9_set_contexts() argument 92 const int tx_size_in_blocks = 1 << tx_size; in vp9_set_contexts()
|
/external/libaom/libaom/av1/common/arm/ |
D | av1_inv_txfm_neon.h | 120 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_default() argument 127 const int tx_w_log2 = tx_size_wide_log2_eob[tx_size]; in get_eobx_eoby_scan_default() 129 const int eobxy = av1_eob_to_eobxy_default[tx_size][eob_row]; in get_eobx_eoby_scan_default() 135 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_v_identity() argument 137 const int txfm_size_row = tx_size_high[tx_size]; in get_eobx_eoby_scan_v_identity() 144 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_h_identity() argument 146 const int txfm_size_col = tx_size_wide[tx_size]; in get_eobx_eoby_scan_h_identity()
|
/external/libaom/libaom/av1/common/x86/ |
D | av1_inv_txfm_ssse3.h | 183 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_default() argument 190 const int tx_w_log2 = tx_size_wide_log2_eob[tx_size]; in get_eobx_eoby_scan_default() 192 const int eobxy = av1_eob_to_eobxy_default[tx_size][eob_row]; in get_eobx_eoby_scan_default() 203 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_h_identity() argument 205 const int txfm_size_col = tx_size_wide[tx_size]; in get_eobx_eoby_scan_h_identity() 214 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_v_identity() argument 216 const int txfm_size_row = tx_size_high[tx_size]; in get_eobx_eoby_scan_v_identity() 227 TX_SIZE tx_size, int eob);
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_detokenize.c | 75 tran_low_t *dqcoeff, TX_SIZE tx_size, const int16_t *dq, in decode_coefs() argument 79 const int max_eob = 16 << (tx_size << 1); in decode_coefs() 84 fc->coef_probs[tx_size][type][ref]; in decode_coefs() 89 const uint8_t *band_translate = get_band_translate(tx_size); in decode_coefs() 90 const int dq_shift = (tx_size == TX_32X32); in decode_coefs() 113 coef_counts = counts->coef[tx_size][type][ref]; in decode_coefs() 114 eob_branch_count = counts->eob_branch[tx_size][type][ref]; in decode_coefs() 234 const scan_order *sc, int x, int y, TX_SIZE tx_size, in vp9_decode_block_tokens() argument 247 switch (tx_size) { in vp9_decode_block_tokens() 251 eob = decode_coefs(xd, get_plane_type(plane), pd->dqcoeff, tx_size, in vp9_decode_block_tokens() [all …]
|