/external/libvpx/libvpx/vp9/common/ |
H A D | vp9_scan.h | 41 static INLINE const scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, argument 46 return &vp9_default_scan_orders[tx_size]; 49 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]];
|
H A D | vp9_blockd.c | 47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi, pd) local 48 : mbmi->tx_size; 52 const int step = 1 << (tx_size << 1); 62 const int extra_step = ((num_4x4_w - max_blocks_wide) >> tx_size) * step; 66 for (r = 0; r < max_blocks_high; r += (1 << tx_size)) { 68 for (c = 0; c < max_blocks_wide; c += (1 << tx_size)) { 69 visit(plane, i, plane_bsize, tx_size, arg); 87 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, 91 const int tx_size_in_blocks = 1 << tx_size; 86 vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, int aoff, int loff) argument
|
H A D | vp9_entropy.c | 770 static void adapt_coef_probs(VP9_COMMON *cm, TX_SIZE tx_size, argument 774 vp9_coeff_probs_model *const probs = cm->fc->coef_probs[tx_size]; 775 const vp9_coeff_probs_model *const pre_probs = pre_fc->coef_probs[tx_size]; 776 vp9_coeff_count_model *counts = cm->counts.coef[tx_size]; 778 cm->counts.eob_branch[tx_size];
|
H A D | vp9_entropy.h | 132 static INLINE const uint8_t *get_band_translate(TX_SIZE tx_size) { argument 133 return tx_size == TX_4X4 ? vp9_coefband_trans_4x4 167 static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a, argument 171 switch (tx_size) {
|
H A D | vp9_reconintra.c | 119 TX_SIZE tx_size, 132 const int bs = 4 << tx_size; 233 dc_pred_high[left_available][up_available][tx_size](dst, dst_stride, 237 pred_high[mode][tx_size](dst, dst_stride, const_above_row, left_col, 245 PREDICTION_MODE mode, TX_SIZE tx_size, 254 const int bs = 4 << tx_size; 380 dc_pred[left_available][up_available][tx_size](dst, dst_stride, 383 pred[mode][tx_size](dst, dst_stride, const_above_row, left_col); 388 TX_SIZE tx_size, PREDICTION_MODE mode, 393 const int txw = (1 << tx_size); 113 build_intra_predictors_high(const MACROBLOCKD *xd, const uint8_t *ref8, int ref_stride, uint8_t *dst8, int dst_stride, PREDICTION_MODE mode, TX_SIZE tx_size, int up_available, int left_available, int right_available, int x, int y, int plane, int bd) argument 243 build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref, int ref_stride, uint8_t *dst, int dst_stride, PREDICTION_MODE mode, TX_SIZE tx_size, int up_available, int left_available, int right_available, int x, int y, int plane) argument 387 vp9_predict_intra_block(const MACROBLOCKD *xd, int bwl_in, TX_SIZE tx_size, PREDICTION_MODE mode, const uint8_t *ref, int ref_stride, uint8_t *dst, int dst_stride, int aoff, int loff, int plane) argument [all...] |
H A D | vp9_blockd.h | 71 TX_SIZE tx_size; member in struct:__anon11056 247 return get_uv_tx_size_impl(mbmi->tx_size, mbmi->sb_type, pd->subsampling_x, 279 TX_SIZE tx_size, 292 TX_SIZE tx_size, int block, 295 const int tx_cols_log2 = bwl - tx_size; 297 const int raster_mb = block >> (tx_size << 1); 298 *x = (raster_mb & (tx_cols - 1)) << tx_size; 299 *y = (raster_mb >> tx_cols_log2) << tx_size; 303 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, 291 txfrm_block_to_raster_xy(BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int block, int *x, int *y) argument
|
H A D | vp9_loopfilter.c | 714 const TX_SIZE tx_size_y = mbmi->tx_size; 793 const TX_SIZE tx_size_y = mbmi->tx_size; 1199 const TX_SIZE tx_size = get_uv_tx_size(&mi[0].mbmi, plane); local 1209 if (tx_size == TX_32X32) { 1222 } else if (tx_size == TX_16X16) { 1238 if (tx_size == TX_8X8 || ((c >> ss_x) & 3) == 0) 1245 if (tx_size == TX_8X8 || ((r >> ss_y) & 3) == 0) 1251 if (!skip_this && tx_size < TX_8X8 && !skip_border_4x4_c) 1646 const TX_SIZE tx_size_y = mbmi->tx_size;
|
/external/libvpx/libvpx/vp9/decoder/ |
H A D | vp9_detokenize.c | 50 tran_low_t *dqcoeff, TX_SIZE tx_size, const int16_t *dq, 54 const int max_eob = 16 << (tx_size << 1); 59 fc->coef_probs[tx_size][type][ref]; 64 const uint8_t *band_translate = get_band_translate(tx_size); 65 const int dq_shift = (tx_size == TX_32X32); 76 coef_counts = counts->coef[tx_size][type][ref]; 77 eob_branch_count = counts->eob_branch[tx_size][type][ref]; 212 TX_SIZE tx_size, int has_eob, 216 const int tx_size_in_blocks = 1 << tx_size; 256 TX_SIZE tx_size, vpx_reade 48 decode_coefs(const MACROBLOCKD *xd, PLANE_TYPE type, tran_low_t *dqcoeff, TX_SIZE tx_size, const int16_t *dq, int ctx, const int16_t *scan, const int16_t *nb, vpx_reader *r) argument 211 dec_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, TX_SIZE tx_size, int has_eob, int aoff, int loff) argument 253 vp9_decode_block_tokens(MACROBLOCKD *xd, int plane, const scan_order *sc, int x, int y, TX_SIZE tx_size, vpx_reader *r, int seg_id) argument [all...] |
H A D | vp9_decodemv.c | 72 int tx_size = vpx_read(r, tx_probs[0]); local 73 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { 74 tx_size += vpx_read(r, tx_probs[1]); 75 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) 76 tx_size += vpx_read(r, tx_probs[2]); 80 ++get_tx_counts(max_tx_size, ctx, &counts->tx)[tx_size]; 81 return (TX_SIZE)tx_size; 222 mbmi->tx_size = read_tx_size(cm, xd, 1, r); 601 mbmi->tx_size = read_tx_size(cm, xd, !mbmi->skip || !inter_block, r);
|
H A D | vp9_decodeframe.c | 188 const TX_SIZE tx_size, 199 switch (tx_size) { 220 switch (tx_size) { 243 switch (tx_size) { 266 if (tx_size <= TX_16X16 && eob <= 10) 267 memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0])); 268 else if (tx_size == TX_32X32 && eob <= 34) 271 memset(dqcoeff, 0, (16 << (tx_size << 1)) * sizeof(dqcoeff[0])); 278 const TX_SIZE tx_size, 289 switch (tx_size) { 187 inverse_transform_block_inter(MACROBLOCKD* xd, int plane, const TX_SIZE tx_size, uint8_t *dst, int stride, int eob) argument 276 inverse_transform_block_intra(MACROBLOCKD* xd, int plane, const TX_TYPE tx_type, const TX_SIZE tx_size, uint8_t *dst, int stride, int eob) argument 366 predict_and_reconstruct_intra_block(MACROBLOCKD *const xd, vpx_reader *r, MB_MODE_INFO *const mbmi, int plane, int row, int col, TX_SIZE tx_size) argument 397 reconstruct_inter_block(MACROBLOCKD *const xd, vpx_reader *r, MB_MODE_INFO *const mbmi, int plane, int row, int col, TX_SIZE tx_size) argument 847 const TX_SIZE tx_size = local 875 const TX_SIZE tx_size = local 1048 TX_SIZE tx_size; local [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_tokenize.c | 420 TX_SIZE tx_size, void *arg) { 428 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &aoff, &loff); 429 vp9_set_contexts(xd, pd, plane_bsize, tx_size, p->eobs[block] > 0, 458 TX_SIZE tx_size) { 459 const int eob_max = 16 << (tx_size << 1); 464 TX_SIZE tx_size, void *arg) { 486 td->rd_counts.coef_counts[tx_size][type][ref]; 488 cpi->common.fc->coef_probs[tx_size][type][ref]; 490 td->counts->eob_branch[tx_size][type][ref]; 491 const uint8_t *const band = get_band_translate(tx_size); 419 set_entropy_context_b(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument 457 get_tx_eob(const struct segmentation *seg, int segment_id, TX_SIZE tx_size) argument 463 tokenize_b(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument 547 is_skippable(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *argv) argument 567 has_high_freq_coeff(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *argv) argument [all...] |
H A D | vp9_encodemb.c | 90 TX_SIZE tx_size, int ctx) { 103 const int default_eob = 16 << (tx_size << 1); 104 const int mul = 1 + (tx_size == TX_32X32); 106 const uint8_t *const band_translate = get_band_translate(tx_size); 107 const scan_order *const so = get_scan(xd, tx_size, type, block); 159 rate0 += mb->token_costs[tx_size][type][ref][band][0][pt] 161 rate1 += mb->token_costs[tx_size][type][ref][band][0][pt] 214 rate0 += mb->token_costs[tx_size][type][ref][band][!x][pt] 219 rate1 += mb->token_costs[tx_size][type][ref][band][!x][pt] 259 mb->token_costs[tx_size][typ 89 optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, int ctx) argument 325 vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size) argument 415 vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size) argument 496 vp9_xform_quant(MACROBLOCK *x, int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size) argument 585 encode_block(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument 705 encode_block_pass1(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument 754 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi, pd) : mbmi->tx_size; local 764 vp9_encode_block_intra(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument [all...] |
H A D | vp9_rd.c | 415 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size, argument 426 switch (tx_size) {
|
H A D | vp9_bitstream.c | 82 TX_SIZE tx_size = xd->mi[0]->mbmi.tx_size; local 87 vpx_write(w, tx_size != TX_4X4, tx_probs[0]); 88 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { 89 vpx_write(w, tx_size != TX_8X8, tx_probs[1]); 90 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) 91 vpx_write(w, tx_size != TX_16X16, tx_probs[2]); 503 static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size, argument 506 vp9_coeff_count *coef_counts = cpi->td.rd_counts.coef_counts[tx_size]; 508 cpi->common.counts.eob_branch[tx_size]; 530 update_coef_probs_common(vpx_writer* const bc, VP9_COMP *cpi, TX_SIZE tx_size, vp9_coeff_stats *frame_branch_ct, vp9_coeff_probs_model *new_coef_probs) argument 678 TX_SIZE tx_size; local [all...] |
H A D | vp9_pickmode.c | 233 static void calculate_variance(int bw, int bh, TX_SIZE tx_size, argument 237 const BLOCK_SIZE unit_size = txsize_to_bsize[tx_size]; 283 TX_SIZE tx_size; local 297 tx_size = VPXMIN(max_txsize_lookup[bsize], 300 tx_size = TX_8X8; 304 tx_size = TX_8X8; 305 else if (tx_size > TX_16X16) 306 tx_size = TX_16X16; 308 tx_size = VPXMIN(max_txsize_lookup[bsize], 312 assert(tx_size > 565 block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *dist, int *skippable, int64_t *sse, int plane, BLOCK_SIZE bsize, TX_SIZE tx_size) argument 578 block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *dist, int *skippable, int64_t *sse, int plane, BLOCK_SIZE bsize, TX_SIZE tx_size) argument 881 estimate_block_intra(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument [all...] |
H A D | vp9_encodeframe.c | 1050 memcpy(x->zcoeff_blk[mbmi->tx_size], ctx->zcoeff_blk, 1136 mbmi->tx_size = 2893 if (mi_ptr[mi_col]->mbmi.tx_size > max_tx_size) 2894 mi_ptr[mi_col]->mbmi.tx_size = max_tx_size; 4213 &td->counts->tx)[mbmi->tx_size]; 4216 TX_SIZE tx_size; local 4219 tx_size = VPXMIN(tx_mode_to_biggest_tx_size[cm->tx_mode], 4222 tx_size = (bsize >= BLOCK_8X8) ? mbmi->tx_size : TX_4X4; 4228 mi_8x8[mis * y + x]->mbmi.tx_size [all...] |
H A D | vp9_rdopt.c | 360 TX_SIZE tx_size, 367 const int16_t *band_count = &band_counts[tx_size][1]; 371 x->token_costs[tx_size][type][is_inter_block(mbmi)]; 381 // Check for consistency of tx_size with mode info 382 assert(type == PLANE_TYPE_Y ? mbmi->tx_size == tx_size : 383 get_uv_tx_size(mbmi, &xd->plane[plane]) == tx_size); 443 static void dist_block(MACROBLOCK *x, int plane, int block, TX_SIZE tx_size, argument 445 const int ss_txfrm_size = tx_size << 1; 450 int shift = tx_size 357 cost_coeffs(MACROBLOCK *x, int plane, int block, ENTROPY_CONTEXT *A, ENTROPY_CONTEXT *L, TX_SIZE tx_size, const int16_t *scan, const int16_t *nb, int use_fast_coef_costing) argument 478 rate_block(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, struct rdcost_block_args* args) argument 489 block_rd_txfm(int plane, int block, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg) argument 575 txfm_rd_in_plane(MACROBLOCK *x, int *rate, int64_t *distortion, int *skippable, int64_t *sse, int64_t ref_best_rd, int plane, BLOCK_SIZE bsize, TX_SIZE tx_size, int use_fast_coef_casting) argument [all...] |