/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_detokenize.c | 83 int16_t *dqcoeff, TX_SIZE tx_size, const int16_t *dq, in decode_coefs() argument 86 const int max_eob = 16 << (tx_size << 1); in decode_coefs() 92 fc->coef_probs[tx_size][type][ref]; in decode_coefs() 95 counts->coef[tx_size][type][ref]; in decode_coefs() 97 counts->eob_branch[tx_size][type][ref]; in decode_coefs() 100 const uint8_t *band_translate = get_band_translate(tx_size); in decode_coefs() 101 const int dq_shift = (tx_size == TX_32X32); in decode_coefs() 199 int x, int y, TX_SIZE tx_size, vp9_reader *r) { in vp9_decode_block_tokens() argument 201 const int ctx = get_entropy_context(tx_size, pd->above_context + x, in vp9_decode_block_tokens() 203 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block); in vp9_decode_block_tokens() [all …]
|
D | vp9_decodeframe.c | 193 TX_SIZE tx_size, uint8_t *dst, int stride, in inverse_transform_block() argument 200 switch (tx_size) { in inverse_transform_block() 227 if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10) in inverse_transform_block() 228 vpx_memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0])); in inverse_transform_block() 229 else if (tx_size == TX_32X32 && eob <= 34) in inverse_transform_block() 232 vpx_memset(dqcoeff, 0, (16 << (tx_size << 1)) * sizeof(dqcoeff[0])); in inverse_transform_block() 245 TX_SIZE tx_size, void *arg) { in predict_and_reconstruct_intra_block() argument 255 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &x, &y); in predict_and_reconstruct_intra_block() 258 vp9_predict_intra_block(xd, block >> (tx_size << 1), in predict_and_reconstruct_intra_block() 259 b_width_log2(plane_bsize), tx_size, mode, in predict_and_reconstruct_intra_block() [all …]
|
D | vp9_decodemv.c | 66 int tx_size = vp9_read(r, tx_probs[0]); in read_selected_tx_size() local 67 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in read_selected_tx_size() 68 tx_size += vp9_read(r, tx_probs[1]); in read_selected_tx_size() 69 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in read_selected_tx_size() 70 tx_size += vp9_read(r, tx_probs[2]); in read_selected_tx_size() 74 ++get_tx_counts(max_tx_size, ctx, &cm->counts.tx)[tx_size]; in read_selected_tx_size() 75 return (TX_SIZE)tx_size; in read_selected_tx_size() 173 mbmi->tx_size = read_tx_size(cm, xd, cm->tx_mode, bsize, 1, r); in read_intra_frame_mode_info() 527 mbmi->tx_size = read_tx_size(cm, xd, cm->tx_mode, mbmi->sb_type, in read_inter_frame_mode_info()
|
D | vp9_detokenize.h | 24 int x, int y, TX_SIZE tx_size, vp9_reader *r);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_blockd.c | 47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) in vp9_foreach_transformed_block_in_plane() local 48 : mbmi->tx_size; in vp9_foreach_transformed_block_in_plane() 52 const int step = 1 << (tx_size << 1); in vp9_foreach_transformed_block_in_plane() 76 for (r = 0; r < num_4x4_h; r += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane() 77 for (c = 0; c < num_4x4_w; c += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane() 79 visit(plane, i, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane() 85 visit(plane, i, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane() 100 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, in vp9_set_contexts() argument 104 const int tx_size_in_blocks = 1 << tx_size; in vp9_set_contexts()
|
D | vp9_entropy.h | 121 static INLINE const uint8_t *get_band_translate(TX_SIZE tx_size) { in get_band_translate() argument 122 return tx_size == TX_4X4 ? vp9_coefband_trans_4x4 in get_band_translate() 148 static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a, in get_entropy_context() argument 152 switch (tx_size) { in get_entropy_context() 176 INLINE static const scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, in get_scan() argument 181 return &vp9_default_scan_orders[tx_size]; in get_scan() 184 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; in get_scan()
|
D | vp9_blockd.h | 126 TX_SIZE tx_size; member 286 return get_uv_tx_size_impl(mbmi->tx_size, mbmi->sb_type); in get_uv_tx_size() 298 TX_SIZE tx_size, 311 TX_SIZE tx_size, int block, in txfrm_block_to_raster_xy() argument 314 const int tx_cols_log2 = bwl - tx_size; in txfrm_block_to_raster_xy() 316 const int raster_mb = block >> (tx_size << 1); in txfrm_block_to_raster_xy() 317 *x = (raster_mb & (tx_cols - 1)) << tx_size; in txfrm_block_to_raster_xy() 318 *y = (raster_mb >> tx_cols_log2) << tx_size; in txfrm_block_to_raster_xy() 322 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
|
D | vp9_entropy.c | 736 static void adapt_coef_probs(VP9_COMMON *cm, TX_SIZE tx_size, in adapt_coef_probs() argument 740 vp9_coeff_probs_model *const probs = cm->fc.coef_probs[tx_size]; in adapt_coef_probs() 741 const vp9_coeff_probs_model *const pre_probs = pre_fc->coef_probs[tx_size]; in adapt_coef_probs() 742 vp9_coeff_count_model *counts = cm->counts.coef[tx_size]; in adapt_coef_probs() 744 cm->counts.eob_branch[tx_size]; in adapt_coef_probs()
|
D | vp9_reconintra.h | 22 TX_SIZE tx_size, MB_PREDICTION_MODE mode,
|
D | vp9_reconintra.c | 316 MB_PREDICTION_MODE mode, TX_SIZE tx_size, in build_intra_predictors() argument 325 const int bs = 4 << tx_size; in build_intra_predictors() 431 dc_pred[left_available][up_available][tx_size](dst, dst_stride, in build_intra_predictors() 434 pred[mode][tx_size](dst, dst_stride, const_above_row, left_col); in build_intra_predictors() 439 TX_SIZE tx_size, MB_PREDICTION_MODE mode, in vp9_predict_intra_block() argument 443 const int bwl = bwl_in - tx_size; in vp9_predict_intra_block() 452 build_intra_predictors(xd, ref, ref_stride, dst, dst_stride, mode, tx_size, in vp9_predict_intra_block()
|
D | vp9_loopfilter.c | 504 const TX_SIZE tx_size_y = mbmi->tx_size; in build_masks() 583 const TX_SIZE tx_size_y = mbmi->tx_size; in build_y_mask() 941 const TX_SIZE tx_size = (plane->plane_type == PLANE_TYPE_UV) in filter_block_plane_non420() local 943 : mi[0].mbmi.tx_size; in filter_block_plane_non420() 953 if (tx_size == TX_32X32) { in filter_block_plane_non420() 966 } else if (tx_size == TX_16X16) { in filter_block_plane_non420() 982 if (tx_size == TX_8X8 || ((c >> ss_x) & 3) == 0) in filter_block_plane_non420() 989 if (tx_size == TX_8X8 || ((r >> ss_y) & 3) == 0) in filter_block_plane_non420() 995 if (!skip_this && tx_size < TX_8X8 && !skip_border_4x4_c) in filter_block_plane_non420()
|
D | vp9_debugmodes.c | 63 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, tx_size)); in vp9_print_modes_and_motion_vectors()
|
D | vp9_pred_common.c | 356 int above_ctx = (has_above && !above_mbmi->skip) ? (int)above_mbmi->tx_size in vp9_get_tx_size_context() 358 int left_ctx = (has_left && !left_mbmi->skip) ? (int)left_mbmi->tx_size in vp9_get_tx_size_context()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_encodemb.c | 109 TX_SIZE tx_size, MACROBLOCK *mb, in optimize_b() argument 128 const int default_eob = 16 << (tx_size << 1); in optimize_b() 129 const int mul = 1 + (tx_size == TX_32X32); in optimize_b() 132 const uint8_t *const band_translate = get_band_translate(tx_size); in optimize_b() 133 const scan_order *so = get_scan(xd, tx_size, type, block); in optimize_b() 176 mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b() 179 mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b() 225 rate0 += mb->token_costs[tx_size][type][ref][band][!x][pt] in optimize_b() 230 rate1 += mb->token_costs[tx_size][type][ref][band][!x][pt] in optimize_b() 262 mb->token_costs[tx_size][type][ref][band][1][0][t0]; in optimize_b() [all …]
|
D | vp9_tokenize.c | 168 TX_SIZE tx_size, void *arg) { in set_entropy_context_b() argument 174 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &aoff, &loff); in set_entropy_context_b() 175 vp9_set_contexts(xd, pd, plane_bsize, tx_size, p->eobs[block] > 0, in set_entropy_context_b() 204 TX_SIZE tx_size) { in get_tx_eob() argument 205 const int eob_max = 16 << (tx_size << 1); in get_tx_eob() 210 TX_SIZE tx_size, void *arg) { in tokenize_b() argument 230 cpi->coef_counts[tx_size][type][ref]; in tokenize_b() 232 cpi->common.fc.coef_probs[tx_size][type][ref]; in tokenize_b() 234 cpi->common.counts.eob_branch[tx_size][type][ref]; in tokenize_b() 236 const uint8_t *const band = get_band_translate(tx_size); in tokenize_b() [all …]
|
D | vp9_encodemb.h | 27 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); 32 BLOCK_SIZE plane_bsize, TX_SIZE tx_size,
|
D | vp9_bitstream.c | 83 TX_SIZE tx_size, BLOCK_SIZE bsize, in write_selected_tx_size() argument 89 vp9_write(w, tx_size != TX_4X4, tx_probs[0]); in write_selected_tx_size() 90 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in write_selected_tx_size() 91 vp9_write(w, tx_size != TX_8X8, tx_probs[1]); in write_selected_tx_size() 92 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in write_selected_tx_size() 93 vp9_write(w, tx_size != TX_16X16, tx_probs[2]); in write_selected_tx_size() 264 write_selected_tx_size(cpi, mbmi->tx_size, bsize, w); in pack_inter_mode_mvs() 350 write_selected_tx_size(cpi, mbmi->tx_size, bsize, w); in write_mb_modes_kf() 487 static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size, in build_tree_distribution() argument 489 vp9_coeff_probs_model *coef_probs = cpi->frame_coef_probs[tx_size]; in build_tree_distribution() [all …]
|
D | vp9_rdopt.c | 478 TX_SIZE tx_size, in model_rd_for_sb_y_tx() argument 490 const int t = 4 << tx_size; in model_rd_for_sb_y_tx() 492 if (tx_size == TX_4X4) { in model_rd_for_sb_y_tx() 494 } else if (tx_size == TX_8X8) { in model_rd_for_sb_y_tx() 496 } else if (tx_size == TX_16X16) { in model_rd_for_sb_y_tx() 498 } else if (tx_size == TX_32X32) { in model_rd_for_sb_y_tx() 555 TX_SIZE tx_size, in cost_coeffs() argument 563 const int16_t *band_count = &band_counts[tx_size][1]; in cost_coeffs() 567 x->token_costs[tx_size][type][is_inter_block(mbmi)]; in cost_coeffs() 572 assert(type == PLANE_TYPE_Y ? mbmi->tx_size == tx_size in cost_coeffs() [all …]
|
D | vp9_rdopt.h | 79 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
|
D | vp9_pickmode.c | 250 mbmi->tx_size = MIN(max_txsize_lookup[bsize], in vp9_pick_inter_mode() 349 mbmi->tx_size, this_mode, in vp9_pick_inter_mode()
|
D | vp9_encodeframe.c | 918 vpx_memcpy(x->zcoeff_blk[mbmi->tx_size], ctx->zcoeff_blk, in update_state() 2488 if (mi_ptr[mi_col]->mbmi.tx_size > txfm_max) in reset_skip_txfm_size() 2489 mi_ptr[mi_col]->mbmi.tx_size = txfm_max; in reset_skip_txfm_size() 2554 mbmi->tx_size = max_txsize_lookup[bsize]; in set_mode_info() 3493 &cm->counts.tx)[mbmi->tx_size]; in encode_superblock() 3496 TX_SIZE tx_size; in encode_superblock() local 3499 tx_size = MIN(tx_mode_to_biggest_tx_size[cm->tx_mode], in encode_superblock() 3502 tx_size = (bsize >= BLOCK_8X8) ? mbmi->tx_size : TX_4X4; in encode_superblock() 3508 mi_8x8[mis * y + x]->mbmi.tx_size = tx_size; in encode_superblock()
|
D | vp9_firstpass.c | 714 xd->mi[0]->mbmi.tx_size = TX_4X4; in vp9_first_pass()
|