Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodemb.c95 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in vp9_optimize_b() argument
108 const int default_eob = 16 << (tx_size << 1); in vp9_optimize_b()
109 const int shift = (tx_size == TX_32X32); in vp9_optimize_b()
111 const uint8_t *const band_translate = get_band_translate(tx_size); in vp9_optimize_b()
112 const scan_order *const so = get_scan(xd, tx_size, type, block); in vp9_optimize_b()
132 mb->token_costs[tx_size][type][ref]; in vp9_optimize_b()
133 const int16_t *band_counts = &band_count_table[tx_size][band]; in vp9_optimize_b()
134 int16_t band_left = eob - band_cum_count_table[tx_size][band] + 1; 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()
[all …]
Dvp9_tokenize.c318 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 …]
Dvp9_encodemb.h28 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);
Dvp9_pickmode.c282 static void calculate_variance(int bw, int bh, TX_SIZE tx_size, in calculate_variance() argument
286 const BLOCK_SIZE unit_size = txsize_to_bsize[tx_size]; in calculate_variance()
344 TX_SIZE tx_size; in model_rd_for_sb_y_large() local
378 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
381 tx_size = TX_8X8; in model_rd_for_sb_y_large()
385 tx_size = TX_8X8; in model_rd_for_sb_y_large()
386 else if (tx_size > TX_16X16) in model_rd_for_sb_y_large()
387 tx_size = TX_16X16; in model_rd_for_sb_y_large()
389 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
393 assert(tx_size >= TX_8X8); in model_rd_for_sb_y_large()
[all …]
Dvp9_bitstream.c85 TX_SIZE tx_size = xd->mi[0]->tx_size; in write_selected_tx_size() local
90 vpx_write(w, tx_size != TX_4X4, tx_probs[0]); in write_selected_tx_size()
91 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in write_selected_tx_size()
92 vpx_write(w, tx_size != TX_8X8, tx_probs[1]); in write_selected_tx_size()
93 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in write_selected_tx_size()
94 vpx_write(w, tx_size != TX_16X16, tx_probs[2]); in write_selected_tx_size()
511 static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size, in build_tree_distribution() argument
514 vp9_coeff_count *coef_counts = cpi->td.rd_counts.coef_counts[tx_size]; in build_tree_distribution()
516 cpi->common.counts.eob_branch[tx_size]; in build_tree_distribution()
539 TX_SIZE tx_size, in update_coef_probs_common() argument
[all …]
Dvp9_rdopt.c352 static int cost_coeffs(MACROBLOCK *x, int plane, int block, TX_SIZE tx_size, in cost_coeffs() argument
359 const int16_t *band_count = &band_counts[tx_size][1]; in cost_coeffs()
363 x->token_costs[tx_size][type][is_inter_block(mi)]; in cost_coeffs()
374 ? mi->tx_size == tx_size in cost_coeffs()
375 : get_uv_tx_size(mi, &xd->plane[plane]) == tx_size); in cost_coeffs()
539 int blk_col, TX_SIZE tx_size, int64_t *out_dist, in dist_block() argument
546 const int ss_txfrm_size = tx_size << 1; in dist_block()
548 const int shift = tx_size == TX_32X32 ? 0 : 2; in dist_block()
576 const BLOCK_SIZE tx_bsize = txsize_to_bsize[tx_size]; in dist_block()
607 switch (tx_size) { in dist_block()
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_blockd.c45 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()
Dvp9_reconintra.c115 int dst_stride, PREDICTION_MODE mode, TX_SIZE tx_size, int up_available, in build_intra_predictors_high() argument
124 const int bs = 4 << tx_size; in build_intra_predictors_high()
254 dc_pred_high[left_available][up_available][tx_size]( in build_intra_predictors_high()
257 pred_high[mode][tx_size](dst, dst_stride, const_above_row, left_col, in build_intra_predictors_high()
265 PREDICTION_MODE mode, TX_SIZE tx_size, in build_intra_predictors() argument
274 const int bs = 4 << tx_size; in build_intra_predictors()
398 dc_pred[left_available][up_available][tx_size](dst, dst_stride, in build_intra_predictors()
401 pred[mode][tx_size](dst, dst_stride, const_above_row, left_col); in build_intra_predictors()
405 void vp9_predict_intra_block(const MACROBLOCKD *xd, int bwl_in, TX_SIZE tx_size, in vp9_predict_intra_block() argument
410 const int txw = (1 << tx_size); in vp9_predict_intra_block()
[all …]
Dvp9_entropy.c1053 static void adapt_coef_probs(VP9_COMMON *cm, TX_SIZE tx_size, in adapt_coef_probs() argument
1057 vp9_coeff_probs_model *const probs = cm->fc->coef_probs[tx_size]; in adapt_coef_probs()
1058 const vp9_coeff_probs_model *const pre_probs = pre_fc->coef_probs[tx_size]; in adapt_coef_probs()
1059 vp9_coeff_count_model *counts = cm->counts.coef[tx_size]; in adapt_coef_probs()
1061 cm->counts.eob_branch[tx_size]; in adapt_coef_probs()
Dvp9_scan.h42 static INLINE const scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, in get_scan() argument
47 return &vp9_default_scan_orders[tx_size]; in get_scan()
50 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; in get_scan()
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_blockd.h70 TX_SIZE tx_size; member
236 return uv_txsize_lookup[mi->sb_type][mi->tx_size][pd->subsampling_x] in get_uv_tx_size()
269 TX_SIZE tx_size, void *arg);
281 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
Dvp9_reconintra.h23 void vp9_predict_intra_block(const MACROBLOCKD *xd, int bwl_in, TX_SIZE tx_size,
Dvp9_pred_common.h159 (has_above && !above_mi->skip) ? (int)above_mi->tx_size : max_tx_size; in get_tx_size_context()
161 (has_left && !left_mi->skip) ? (int)left_mi->tx_size : max_tx_size; in get_tx_size_context()
Dvp9_loopfilter.c656 const TX_SIZE tx_size_y = mi->tx_size; in build_masks()
733 const TX_SIZE tx_size_y = mi->tx_size; in build_y_mask()
1120 const TX_SIZE tx_size = get_uv_tx_size(mi, plane); in vp9_filter_block_plane_non420() local
1129 if (tx_size == TX_32X32) { in vp9_filter_block_plane_non420()
1142 } else if (tx_size == TX_16X16) { in vp9_filter_block_plane_non420()
1158 if (tx_size == TX_8X8 || ((c >> ss_x) & 3) == 0) in vp9_filter_block_plane_non420()
1165 if (tx_size == TX_8X8 || ((r >> ss_y) & 3) == 0) in vp9_filter_block_plane_non420()
1171 if (!skip_this && tx_size < TX_8X8 && !skip_border_4x4_c) in vp9_filter_block_plane_non420()
1523 const TX_SIZE tx_size_y = mi->tx_size; in vp9_build_mask()
Dvp9_debugmodes.c57 print_mi_data(cm, mvs, "Transform:", offsetof(MODE_INFO, tx_size)); in vp9_print_modes_and_motion_vectors()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_detokenize.c75 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 …]
Dvp9_decodeframe.c185 const TX_SIZE tx_size, uint8_t *dst, in inverse_transform_block_inter() argument
196 switch (tx_size) { in inverse_transform_block_inter()
216 switch (tx_size) { in inverse_transform_block_inter()
229 switch (tx_size) { in inverse_transform_block_inter()
242 if (tx_size <= TX_16X16 && eob <= 10) in inverse_transform_block_inter()
243 memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0])); in inverse_transform_block_inter()
244 else if (tx_size == TX_32X32 && eob <= 34) in inverse_transform_block_inter()
247 memset(dqcoeff, 0, (16 << (tx_size << 1)) * sizeof(dqcoeff[0])); in inverse_transform_block_inter()
253 const TX_SIZE tx_size, uint8_t *dst, in inverse_transform_block_intra() argument
264 switch (tx_size) { in inverse_transform_block_intra()
[all …]
Dvp9_detokenize.h23 const scan_order *sc, int x, int y, TX_SIZE tx_size,
Dvp9_decodemv.c69 int tx_size = vpx_read(r, tx_probs[0]); in read_selected_tx_size() local
70 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { in read_selected_tx_size()
71 tx_size += vpx_read(r, tx_probs[1]); in read_selected_tx_size()
72 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) in read_selected_tx_size()
73 tx_size += vpx_read(r, tx_probs[2]); in read_selected_tx_size()
76 if (counts) ++get_tx_counts(max_tx_size, ctx, &counts->tx)[tx_size]; in read_selected_tx_size()
77 return (TX_SIZE)tx_size; in read_selected_tx_size()
205 mi->tx_size = read_tx_size(cm, xd, 1, r); in read_intra_frame_mode_info()
820 mi->tx_size = read_tx_size(cm, xd, !mi->skip || !inter_block, r); in read_inter_frame_mode_info()
/external/libldac/src/
DldacBT_api.c167 hLdacBT->tx.tx_size = LDACBT_MTU_REQUIRED; in ldacBT_init_handle_encode()
170 hLdacBT->tx.tx_size -= hLdacBT->tx.pkt_hdr_sz; in ldacBT_init_handle_encode()
171 if( hLdacBT->tx.tx_size > (hLdacBT->tx.mtu - hLdacBT->tx.pkt_hdr_sz) ){ in ldacBT_init_handle_encode()
173 hLdacBT->tx.tx_size = (hLdacBT->tx.mtu - hLdacBT->tx.pkt_hdr_sz); in ldacBT_init_handle_encode()
232 hLdacBT->tx.nfrm_in_pkt = hLdacBT->tx.tx_size / hLdacBT->frmlen_tx; in ldacBT_init_handle_encode()
443 frmlen_adj = (hLdacBT->tx.tx_size - ptfbuf->used) / nFrmToPkt; in ldacBT_encode()
483 frmlen_adj = (hLdacBT->tx.tx_size - ptfbuf->used) / nFrmToPkt; in ldacBT_encode()
507 if( (( ptfbuf->used + frmlen + LDACBT_FRMHDRBYTES) > hLdacBT->tx.tx_size) || in ldacBT_encode()
606 if( (( ptfbuf->used + frmlen_wrote) > hLdacBT->tx.tx_size) || in ldacBT_encode()
DldacBT_internal.c85 hLdacBT->tx.tx_size = UNSET; in ldacBT_param_clear()
361 ptx->nfrm_in_pkt = ptx->tx_size / hLdacBT->frmlen_tx;
367 if( frmlen <= (ptx->tx_size / 2 - LDACBT_FRMHDRBYTES)){
370 frmlen = ptx->tx_size / 2 - LDACBT_FRMHDRBYTES;
DldacBT_internal.h126 int tx_size; /* size for ldac stream */ member
/external/v4l2_codec2/vda/
Dvp9_compressed_header_parser.cc130 for (int tx_size = 0; tx_size <= max_tx_size; tx_size++) { in ReadCoefProbs() local
134 for (auto& ai : fhdr->frame_context.coef_probs[tx_size]) { in ReadCoefProbs()
/external/chromium-trace/catapult/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)

12