/external/libaom/libaom/test/ |
D | encodetxb_test.cc | 38 const uint16_t eob, const TX_SIZE tx_size, 70 for (int tx_size = TX_4X4; tx_size < TX_SIZES_ALL; ++tx_size) { in GetNzMapContextsRun() local 71 const int bwl = get_txb_bwl((TX_SIZE)tx_size); in GetNzMapContextsRun() 72 const int width = get_txb_wide((TX_SIZE)tx_size); in GetNzMapContextsRun() 73 const int height = get_txb_high((TX_SIZE)tx_size); in GetNzMapContextsRun() 74 const int real_width = tx_size_wide[tx_size]; in GetNzMapContextsRun() 75 const int real_height = tx_size_high[tx_size]; in GetNzMapContextsRun() 76 const int16_t *const scan = av1_scan_orders[tx_size][tx_type].scan; in GetNzMapContextsRun() 83 av1_get_nz_map_contexts_c(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() 85 get_nz_map_contexts_func_(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() [all …]
|
D | av1_fwd_txfm2d_test.cc | 49 tx_width_ = tx_size_wide[fwd_txfm_flip_cfg.tx_size]; in SetUp() 50 tx_height_ = tx_size_high[fwd_txfm_flip_cfg.tx_size]; in SetUp() 190 const TX_SIZE tx_size = static_cast<TX_SIZE>(s); in GetTxfm2dParamList() local 191 if (libaom_test::IsTxSizeTypeValid(tx_size, tx_type)) { in GetTxfm2dParamList() 193 AV1FwdTxfm2dParam(tx_type, tx_size, max_error, avg_error)); in GetTxfm2dParamList() 210 for (int tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) { in TEST() local 212 if (libaom_test::IsTxSizeTypeValid(static_cast<TX_SIZE>(tx_size), in TEST() 219 static_cast<TX_SIZE>(tx_size), &cfg); in TEST() 237 void AV1FwdTxfm2dMatchTest(TX_SIZE tx_size, lowbd_fwd_txfm_func target_func) { in AV1FwdTxfm2dMatchTest() argument 241 const int rows = tx_size_high[tx_size]; in AV1FwdTxfm2dMatchTest() [all …]
|
D | av1_inv_txfm2d_test.cc | 220 const TxSize tx_size = static_cast<TxSize>(s); in GetInvTxfm2dParamList() local 221 if (libaom_test::IsTxSizeTypeValid(tx_size, tx_type)) { in GetInvTxfm2dParamList() 223 AV1InvTxfm2dParam(tx_type, tx_size, max_error, avg_error)); in GetInvTxfm2dParamList() 240 for (int tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) { in TEST() local 242 if (libaom_test::IsTxSizeTypeValid(static_cast<TxSize>(tx_size), in TEST() 249 static_cast<TxSize>(tx_size), &cfg); in TEST() 253 static_cast<TxSize>(tx_size), bd); in TEST() 269 void RunAV1InvTxfm2dTest(TxType tx_type, TxSize tx_size, int run_times, 276 void AV1LbdInvTxfm2d::RunAV1InvTxfm2dTest(TxType tx_type, TxSize tx_size, in RunAV1InvTxfm2dTest() argument 278 FwdTxfm2dFunc fwd_func_ = libaom_test::fwd_txfm_func_ls[tx_size]; in RunAV1InvTxfm2dTest() [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()
|
D | cfl_test.cc | 93 tx_size = tx; in init() 94 width = tx_size_wide[tx_size]; in init() 95 height = tx_size_high[tx_size]; in init() 100 TX_SIZE tx_size; member in __anon941b00d50111::CFLTest 170 typedef cfl_subtract_average_fn (*sub_avg_fn)(TX_SIZE tx_size); 177 sub_avg = std::get<1>(this->GetParam())(tx_size); in SetUp() 178 sub_avg_ref = cfl_get_subtract_average_fn_c(tx_size); in SetUp() 222 fun_420 = std::get<1>(this->GetParam())(this->tx_size); in SetUp() 223 fun_422 = std::get<2>(this->GetParam())(this->tx_size); in SetUp() 224 fun_444 = std::get<3>(this->GetParam())(this->tx_size); in SetUp() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | encodemb.c | 56 int blk_col, int blk_row, TX_SIZE tx_size) { in av1_subtract_txb() argument 63 const int tx1d_width = tx_size_wide[tx_size]; in av1_subtract_txb() 64 const int tx1d_height = tx_size_high[tx_size]; in av1_subtract_txb() 86 int block, TX_SIZE tx_size, TX_TYPE tx_type, in av1_optimize_b() argument 96 *rate_cost = av1_cost_skip_txb(x, txb_ctx, plane, tx_size); in av1_optimize_b() 100 return av1_optimize_txb_new(cpi, x, plane, block, tx_size, tx_type, txb_ctx, in av1_optimize_b() 134 void av1_dropout_qcoeff(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in av1_dropout_qcoeff() argument 141 const int tx_width = tx_size_wide[tx_size]; in av1_dropout_qcoeff() 142 const int tx_height = tx_size_high[tx_size]; in av1_dropout_qcoeff() 143 const int max_eob = av1_get_max_eob(tx_size); in av1_dropout_qcoeff() [all …]
|
D | tx_search.c | 356 mbmi->tx_size = tx_rd_info->tx_size; in fetch_tx_rd_info() 425 param.tx_size = max_tx_size; in predict_skip_flag() 430 param.tx_size, is_inter_block(xd->mi[0]), reduced_tx_set); in predict_skip_flag() 460 const TX_SIZE tx_size = max_txsize_rect_lookup[bsize]; in set_skip_flag() local 462 memset(mbmi->inter_tx_size, tx_size, sizeof(mbmi->inter_tx_size)); in set_skip_flag() 463 mbmi->tx_size = tx_size; in set_skip_flag() 484 const TX_SIZE txs_ctx = get_txsize_entropy_ctx(tx_size); in set_skip_flag() 486 get_txb_ctx(bsize, tx_size, 0, ta, tl, &txb_ctx); in set_skip_flag() 490 (block_size_wide[bsize] >> tx_size_wide_log2[tx_size]) * in set_skip_flag() 491 (block_size_high[bsize] >> tx_size_high_log2[tx_size]); in set_skip_flag() [all …]
|
D | encodemb.h | 67 void av1_setup_xform(const AV1_COMMON *cm, MACROBLOCK *x, TX_SIZE tx_size, 69 void av1_setup_quant(TX_SIZE tx_size, int use_optimize_b, int xform_quant_idx, 72 const MACROBLOCKD *xd, int plane, TX_SIZE tx_size, 80 int block, TX_SIZE tx_size, TX_TYPE tx_type, 106 void av1_dropout_qcoeff(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, 115 int blk_col, int blk_row, TX_SIZE tx_size); 120 TX_SIZE tx_size, ENTROPY_CONTEXT *a, in av1_set_txb_context() argument 123 memset(a, ctx, tx_size_wide_unit[tx_size] * sizeof(*a)); in av1_set_txb_context() 124 memset(l, ctx, tx_size_high_unit[tx_size] * sizeof(*l)); in av1_set_txb_context() 128 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
|
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 | encodetxb.h | 38 TX_SIZE tx_size; member 56 const TX_SIZE tx_size, const TX_TYPE tx_type, 59 const int block, const TX_SIZE tx_size, 65 const int block, const TX_SIZE tx_size, 69 int block, TX_SIZE tx_size); 79 TX_SIZE tx_size, void *arg); 84 int block, TX_SIZE tx_size, TX_TYPE tx_type,
|
/external/libaom/libaom/av1/common/ |
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() 179 static void cfl_compute_parameters(MACROBLOCKD *const xd, TX_SIZE tx_size) { in CFL_PREDICT_FN() 184 cfl_pad(cfl, tx_size_wide[tx_size], tx_size_high[tx_size]); in CFL_PREDICT_FN() 185 cfl_get_subtract_average_fn(tx_size)(cfl->recon_buf_q3, cfl->ac_buf_q3); in CFL_PREDICT_FN() 190 TX_SIZE tx_size, int plane) { in cfl_predict_block() argument 195 if (!cfl->are_parameters_computed) cfl_compute_parameters(xd, tx_size); in cfl_predict_block() 199 assert((tx_size_high[tx_size] - 1) * CFL_BUF_LINE + tx_size_wide[tx_size] <= in cfl_predict_block() 204 cfl_get_predict_hbd_fn(tx_size)(cfl->ac_buf_q3, dst_16, dst_stride, in cfl_predict_block() [all …]
|
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 | blockd.h | 247 TX_SIZE tx_size; member 740 static INLINE int is_rect_tx(TX_SIZE tx_size) { return tx_size >= TX_SIZES; } in is_rect_tx() argument 790 static INLINE TxSetType av1_get_ext_tx_set_type(TX_SIZE tx_size, int is_inter, in av1_get_ext_tx_set_type() argument 792 const TX_SIZE tx_size_sqr_up = txsize_sqr_up_map[tx_size]; in av1_get_ext_tx_set_type() 798 const TX_SIZE tx_size_sqr = txsize_sqr_map[tx_size]; in av1_get_ext_tx_set_type() 810 static INLINE int get_ext_tx_set(TX_SIZE tx_size, int is_inter, in get_ext_tx_set() argument 813 av1_get_ext_tx_set_type(tx_size, is_inter, use_reduced_set); in get_ext_tx_set() 817 static INLINE int get_ext_tx_types(TX_SIZE tx_size, int is_inter, in get_ext_tx_types() argument 820 av1_get_ext_tx_set_type(tx_size, is_inter, use_reduced_set); in get_ext_tx_types() 844 static INLINE int av1_block_index_to_raster_order(TX_SIZE tx_size, in av1_block_index_to_raster_order() argument [all …]
|
D | quant_common.c | 235 int plane, TX_SIZE tx_size) { in av1_iqmatrix() argument 236 assert(quant_params->giqmatrix[qmlevel][plane][tx_size] != NULL || in av1_iqmatrix() 238 return quant_params->giqmatrix[qmlevel][plane][tx_size]; in av1_iqmatrix() 241 int plane, TX_SIZE tx_size) { in av1_qmatrix() argument 242 assert(quant_params->gqmatrix[qmlevel][plane][tx_size] != NULL || in av1_qmatrix() 244 return quant_params->gqmatrix[qmlevel][plane][tx_size]; in av1_qmatrix() 253 TX_SIZE tx_size, TX_TYPE tx_type) { in av1_get_iqmatrix() argument 257 const TX_SIZE qm_tx_size = av1_get_adjusted_tx_size(tx_size); in av1_get_iqmatrix() 266 TX_SIZE tx_size, TX_TYPE tx_type) { in av1_get_qmatrix() argument 270 const TX_SIZE qm_tx_size = av1_get_adjusted_tx_size(tx_size); in av1_get_qmatrix()
|
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 …]
|
/external/libgav1/libgav1/src/tile/bitstream/ |
D | transform_size.cc | 126 TransformSize tx_size = max_rect_tx_size; in ReadFixedTransformSize() local 127 if (tx_depth == 0) return tx_size; in ReadFixedTransformSize() 128 tx_size = kSplitTransformSize[tx_size]; in ReadFixedTransformSize() 129 if (tx_depth == 1) return tx_size; in ReadFixedTransformSize() 130 return kSplitTransformSize[tx_size]; in ReadFixedTransformSize() 134 int column4x4, TransformSize tx_size) { in ReadVariableTransformTree() argument 144 stack.Push(TransformTreeNode(column4x4, row4x4, tx_size, 0)); in ReadVariableTransformTree() 148 const int tx_width4x4 = kTransformWidth4x4[node.tx_size]; in ReadVariableTransformTree() 149 const int tx_height4x4 = kTransformHeight4x4[node.tx_size]; in ReadVariableTransformTree() 150 if (node.tx_size != kTransformSize4x4 && in ReadVariableTransformTree() [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 | 65 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in vp9_optimize_b() argument 77 const int default_eob = 16 << (tx_size << 1); in vp9_optimize_b() 78 const int shift = (tx_size == TX_32X32); in vp9_optimize_b() 80 const uint8_t *const band_translate = get_band_translate(tx_size); in vp9_optimize_b() 81 const scan_order *const so = get_scan(xd, tx_size, plane_type, block); in vp9_optimize_b() 103 mb->token_costs[tx_size][plane_type][ref]; in vp9_optimize_b() 349 BLOCK_SIZE plane_bsize, TX_SIZE tx_size) { in vp9_xform_quant_fp() argument 353 const scan_order *const scan_order = &vp9_default_scan_orders[tx_size]; in vp9_xform_quant_fp() 366 switch (tx_size) { in vp9_xform_quant_fp() 386 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 | 33 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, 39 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 41 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 43 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 48 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
|
/external/libaom/libaom/av1/encoder/x86/ |
D | av1_fwd_txfm2d_sse4.c | 85 assert(cfg->tx_size < TX_SIZES); in fwd_txfm2d_sse4_1() 86 const int txfm_size = tx_size_wide[cfg->tx_size]; in fwd_txfm2d_sse4_1() 115 assert(cfg->tx_size < TX_SIZES); in fwd_txfm2d_64x64_sse4_1() 116 const int txfm_size = tx_size_wide[cfg->tx_size]; in fwd_txfm2d_64x64_sse4_1() 193 const TX_SIZE tx_size = TX_64X64; in lowbd_fwd_txfm2d_64x64_sse4_1() local 195 const int8_t *shift = av1_fwd_txfm_shift_ls[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() 196 const int txw_idx = get_txw_idx(tx_size); in lowbd_fwd_txfm2d_64x64_sse4_1() 197 const int txh_idx = get_txh_idx(tx_size); in lowbd_fwd_txfm2d_64x64_sse4_1() 200 const int width = tx_size_wide[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() 201 const int height = tx_size_high[tx_size]; in lowbd_fwd_txfm2d_64x64_sse4_1() [all …]
|
/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/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/libgav1/libgav1/src/ |
D | quantizer.cc | 192 for (int tx_size = 0; tx_size < kNumTransformSizes; ++tx_size) { in InitializeQuantizerMatrix() local 193 if (kTransformWidth[tx_size] == 64 || kTransformHeight[tx_size] == 64) { in InitializeQuantizerMatrix() 196 const int size = kTransformWidth[tx_size] * kTransformHeight[tx_size]; in InitializeQuantizerMatrix() 197 if (!quantizer_matrix[tx_size].Resize(size)) { in InitializeQuantizerMatrix()
|
D | reconstruction.cc | 134 TransformSize tx_size, bool lossless, Residual* const buffer, in Reconstruct() argument 138 const int tx_width_log2 = kTransformWidthLog2[tx_size]; in Reconstruct() 139 const int tx_height_log2 = kTransformHeightLog2[tx_size]; in Reconstruct() 141 int tx_height = (non_zero_coeff_count == 1) ? 1 : kTransformHeight[tx_size]; in Reconstruct() 161 row_transform_func(tx_type, tx_size, tx_height, buffer, start_x, start_y, in Reconstruct() 174 column_transform_func(tx_type, tx_size, tx_height, buffer, start_x, start_y, in Reconstruct() 179 TransformSize tx_size, bool lossless, int16_t* buffer, 184 TransformSize tx_size, bool lossless, int32_t* buffer,
|