Home
last modified time | relevance | path

Searched refs:tx_size (Results 1 – 25 of 25) sorted by relevance

/external/libvpx/libvpx/vp9/encoder/
Dvp9_tokenize.c420 TX_SIZE tx_size, void *arg) { in set_entropy_context_b() argument
428 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &aoff, &loff); in set_entropy_context_b()
429 vp9_set_contexts(xd, pd, plane_bsize, tx_size, p->eobs[block] > 0, in set_entropy_context_b()
458 TX_SIZE tx_size) { in get_tx_eob() argument
459 const int eob_max = 16 << (tx_size << 1); in get_tx_eob()
464 TX_SIZE tx_size, void *arg) { in tokenize_b() argument
486 td->rd_counts.coef_counts[tx_size][type][ref]; in tokenize_b()
488 cpi->common.fc->coef_probs[tx_size][type][ref]; in tokenize_b()
490 td->counts->eob_branch[tx_size][type][ref]; in tokenize_b()
491 const uint8_t *const band = get_band_translate(tx_size); in tokenize_b()
[all …]
Dvp9_encodemb.c90 TX_SIZE tx_size, int ctx) { in optimize_b() argument
103 const int default_eob = 16 << (tx_size << 1); in optimize_b()
104 const int mul = 1 + (tx_size == TX_32X32); in optimize_b()
106 const uint8_t *const band_translate = get_band_translate(tx_size); in optimize_b()
107 const scan_order *const so = get_scan(xd, tx_size, type, block); in optimize_b()
159 rate0 += mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b()
161 rate1 += mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b()
214 rate0 += mb->token_costs[tx_size][type][ref][band][!x][pt] in optimize_b()
219 rate1 += mb->token_costs[tx_size][type][ref][band][!x][pt] in optimize_b()
259 mb->token_costs[tx_size][type][ref][band][1][0][t0]; in optimize_b()
[all …]
Dvp9_encodemb.h29 BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
31 BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
33 BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
38 TX_SIZE tx_size, void *arg);
Dvp9_pickmode.c233 static void calculate_variance(int bw, int bh, TX_SIZE tx_size, in calculate_variance() argument
237 const BLOCK_SIZE unit_size = txsize_to_bsize[tx_size]; in calculate_variance()
283 TX_SIZE tx_size; in model_rd_for_sb_y_large() local
297 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
300 tx_size = TX_8X8; in model_rd_for_sb_y_large()
304 tx_size = TX_8X8; in model_rd_for_sb_y_large()
305 else if (tx_size > TX_16X16) in model_rd_for_sb_y_large()
306 tx_size = TX_16X16; in model_rd_for_sb_y_large()
308 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
312 assert(tx_size >= TX_8X8); in model_rd_for_sb_y_large()
[all …]
Dvp9_bitstream.c82 TX_SIZE tx_size = xd->mi[0]->mbmi.tx_size; in write_selected_tx_size() local
87 vpx_write(w, tx_size != TX_4X4, tx_probs[0]); in write_selected_tx_size()
88 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in write_selected_tx_size()
89 vpx_write(w, tx_size != TX_8X8, tx_probs[1]); in write_selected_tx_size()
90 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in write_selected_tx_size()
91 vpx_write(w, tx_size != TX_16X16, tx_probs[2]); in write_selected_tx_size()
503 static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size, in build_tree_distribution() argument
506 vp9_coeff_count *coef_counts = cpi->td.rd_counts.coef_counts[tx_size]; in build_tree_distribution()
508 cpi->common.counts.eob_branch[tx_size]; in build_tree_distribution()
531 TX_SIZE tx_size, in update_coef_probs_common() argument
[all …]
Dvp9_rdopt.c360 TX_SIZE tx_size, in cost_coeffs() argument
367 const int16_t *band_count = &band_counts[tx_size][1]; in cost_coeffs()
371 x->token_costs[tx_size][type][is_inter_block(mbmi)]; in cost_coeffs()
382 assert(type == PLANE_TYPE_Y ? mbmi->tx_size == tx_size : in cost_coeffs()
383 get_uv_tx_size(mbmi, &xd->plane[plane]) == tx_size); in cost_coeffs()
443 static void dist_block(MACROBLOCK *x, int plane, int block, TX_SIZE tx_size, in dist_block() argument
445 const int ss_txfrm_size = tx_size << 1; in dist_block()
450 int shift = tx_size == TX_32X32 ? 0 : 2; in dist_block()
479 TX_SIZE tx_size, struct rdcost_block_args* args) { in rate_block() argument
481 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &x_idx, &y_idx); in rate_block()
[all …]
Dvp9_rd.h153 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
Dvp9_rd.c415 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size, in vp9_get_entropy_contexts() argument
426 switch (tx_size) { in vp9_get_entropy_contexts()
Dvp9_encodeframe.c1050 memcpy(x->zcoeff_blk[mbmi->tx_size], ctx->zcoeff_blk, in update_state()
1136 mbmi->tx_size = in set_mode_info_seg_skip()
2893 if (mi_ptr[mi_col]->mbmi.tx_size > max_tx_size) in reset_skip_tx_size()
2894 mi_ptr[mi_col]->mbmi.tx_size = max_tx_size; in reset_skip_tx_size()
4213 &td->counts->tx)[mbmi->tx_size]; in encode_superblock()
4216 TX_SIZE tx_size; in encode_superblock() local
4219 tx_size = VPXMIN(tx_mode_to_biggest_tx_size[cm->tx_mode], in encode_superblock()
4222 tx_size = (bsize >= BLOCK_8X8) ? mbmi->tx_size : TX_4X4; in encode_superblock()
4228 mi_8x8[mis * y + x]->mbmi.tx_size = tx_size; in encode_superblock()
4230 ++td->counts->tx.tx_totals[mbmi->tx_size]; in encode_superblock()
Dvp9_firstpass.c676 xd->mi[0]->mbmi.tx_size = use_dc_pred ? in vp9_first_pass()
902 xd->mi[0]->mbmi.tx_size = TX_4X4; in vp9_first_pass()
/external/libvpx/libvpx/vp9/common/
Dvp9_blockd.c47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi, pd) 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()
62 const int extra_step = ((num_4x4_w - max_blocks_wide) >> tx_size) * step; in vp9_foreach_transformed_block_in_plane()
66 for (r = 0; r < max_blocks_high; r += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane()
68 for (c = 0; c < max_blocks_wide; c += (1 << tx_size)) { in vp9_foreach_transformed_block_in_plane()
69 visit(plane, i, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane()
87 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, in vp9_set_contexts() argument
91 const int tx_size_in_blocks = 1 << tx_size; in vp9_set_contexts()
Dvp9_blockd.h71 TX_SIZE tx_size; member
247 return get_uv_tx_size_impl(mbmi->tx_size, mbmi->sb_type, pd->subsampling_x, in get_uv_tx_size()
279 TX_SIZE tx_size,
292 TX_SIZE tx_size, int block, in txfrm_block_to_raster_xy() argument
295 const int tx_cols_log2 = bwl - tx_size; in txfrm_block_to_raster_xy()
297 const int raster_mb = block >> (tx_size << 1); in txfrm_block_to_raster_xy()
298 *x = (raster_mb & (tx_cols - 1)) << tx_size; in txfrm_block_to_raster_xy()
299 *y = (raster_mb >> tx_cols_log2) << tx_size; in txfrm_block_to_raster_xy()
303 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
Dvp9_reconintra.c119 TX_SIZE tx_size, in build_intra_predictors_high() argument
132 const int bs = 4 << tx_size; in build_intra_predictors_high()
233 dc_pred_high[left_available][up_available][tx_size](dst, dst_stride, in build_intra_predictors_high()
237 pred_high[mode][tx_size](dst, dst_stride, const_above_row, left_col, in build_intra_predictors_high()
245 PREDICTION_MODE mode, TX_SIZE tx_size, in build_intra_predictors() argument
254 const int bs = 4 << tx_size; in build_intra_predictors()
380 dc_pred[left_available][up_available][tx_size](dst, dst_stride, in build_intra_predictors()
383 pred[mode][tx_size](dst, dst_stride, const_above_row, left_col); in build_intra_predictors()
388 TX_SIZE tx_size, PREDICTION_MODE mode, in vp9_predict_intra_block() argument
393 const int txw = (1 << tx_size); in vp9_predict_intra_block()
[all …]
Dvp9_scan.h41 static INLINE const scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, in get_scan() argument
46 return &vp9_default_scan_orders[tx_size]; in get_scan()
49 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; in get_scan()
Dvp9_entropy.c770 static void adapt_coef_probs(VP9_COMMON *cm, TX_SIZE tx_size, in adapt_coef_probs() argument
774 vp9_coeff_probs_model *const probs = cm->fc->coef_probs[tx_size]; in adapt_coef_probs()
775 const vp9_coeff_probs_model *const pre_probs = pre_fc->coef_probs[tx_size]; in adapt_coef_probs()
776 vp9_coeff_count_model *counts = cm->counts.coef[tx_size]; in adapt_coef_probs()
778 cm->counts.eob_branch[tx_size]; in adapt_coef_probs()
Dvp9_entropy.h132 static INLINE const uint8_t *get_band_translate(TX_SIZE tx_size) { in get_band_translate() argument
133 return tx_size == TX_4X4 ? vp9_coefband_trans_4x4 in get_band_translate()
167 static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a, in get_entropy_context() argument
171 switch (tx_size) { in get_entropy_context()
Dvp9_reconintra.h24 TX_SIZE tx_size, PREDICTION_MODE mode,
Dvp9_pred_common.h118 int above_ctx = (has_above && !above_mbmi->skip) ? (int)above_mbmi->tx_size in get_tx_size_context()
120 int left_ctx = (has_left && !left_mbmi->skip) ? (int)left_mbmi->tx_size in get_tx_size_context()
Dvp9_loopfilter.c714 const TX_SIZE tx_size_y = mbmi->tx_size; in build_masks()
793 const TX_SIZE tx_size_y = mbmi->tx_size; in build_y_mask()
1199 const TX_SIZE tx_size = get_uv_tx_size(&mi[0].mbmi, plane); in vp9_filter_block_plane_non420() local
1209 if (tx_size == TX_32X32) { in vp9_filter_block_plane_non420()
1222 } else if (tx_size == TX_16X16) { in vp9_filter_block_plane_non420()
1238 if (tx_size == TX_8X8 || ((c >> ss_x) & 3) == 0) in vp9_filter_block_plane_non420()
1245 if (tx_size == TX_8X8 || ((r >> ss_y) & 3) == 0) in vp9_filter_block_plane_non420()
1251 if (!skip_this && tx_size < TX_8X8 && !skip_border_4x4_c) in vp9_filter_block_plane_non420()
1646 const TX_SIZE tx_size_y = mbmi->tx_size; in vp9_build_mask()
Dvp9_debugmodes.c59 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, tx_size)); in vp9_print_modes_and_motion_vectors()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_detokenize.c50 tran_low_t *dqcoeff, TX_SIZE tx_size, const int16_t *dq, in decode_coefs() argument
54 const int max_eob = 16 << (tx_size << 1); in decode_coefs()
59 fc->coef_probs[tx_size][type][ref]; in decode_coefs()
64 const uint8_t *band_translate = get_band_translate(tx_size); in decode_coefs()
65 const int dq_shift = (tx_size == TX_32X32); in decode_coefs()
76 coef_counts = counts->coef[tx_size][type][ref]; in decode_coefs()
77 eob_branch_count = counts->eob_branch[tx_size][type][ref]; in decode_coefs()
212 TX_SIZE tx_size, int has_eob, in dec_set_contexts() argument
216 const int tx_size_in_blocks = 1 << tx_size; in dec_set_contexts()
256 TX_SIZE tx_size, vpx_reader *r, in vp9_decode_block_tokens() argument
[all …]
Dvp9_decodeframe.c188 const TX_SIZE tx_size, in inverse_transform_block_inter() argument
199 switch (tx_size) { in inverse_transform_block_inter()
220 switch (tx_size) { in inverse_transform_block_inter()
243 switch (tx_size) { in inverse_transform_block_inter()
266 if (tx_size <= TX_16X16 && eob <= 10) in inverse_transform_block_inter()
267 memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0])); in inverse_transform_block_inter()
268 else if (tx_size == TX_32X32 && eob <= 34) in inverse_transform_block_inter()
271 memset(dqcoeff, 0, (16 << (tx_size << 1)) * sizeof(dqcoeff[0])); in inverse_transform_block_inter()
278 const TX_SIZE tx_size, in inverse_transform_block_intra() argument
289 switch (tx_size) { in inverse_transform_block_intra()
[all …]
Dvp9_decodemv.c72 int tx_size = vpx_read(r, tx_probs[0]); in read_selected_tx_size() local
73 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in read_selected_tx_size()
74 tx_size += vpx_read(r, tx_probs[1]); in read_selected_tx_size()
75 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in read_selected_tx_size()
76 tx_size += vpx_read(r, tx_probs[2]); in read_selected_tx_size()
80 ++get_tx_counts(max_tx_size, ctx, &counts->tx)[tx_size]; in read_selected_tx_size()
81 return (TX_SIZE)tx_size; in read_selected_tx_size()
222 mbmi->tx_size = read_tx_size(cm, xd, 1, r); in read_intra_frame_mode_info()
601 mbmi->tx_size = read_tx_size(cm, xd, !mbmi->skip || !inter_block, r); in read_inter_frame_mode_info()
Dvp9_detokenize.h26 TX_SIZE tx_size, vpx_reader *r,
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
Dserialwin32.py391 def setBufferSize(self, rx_size=4096, tx_size=None): argument
396 if tx_size is None: tx_size = rx_size
397 win32.SetupComm(self.hComPort, rx_size, tx_size)