/external/libaom/libaom/av1/encoder/ |
D | encodemb.c | 67 int blk_col, int blk_row, TX_SIZE tx_size) { in av1_subtract_txb() argument 77 &pd->dst.buf[(blk_row * dst_stride + blk_col) << tx_size_wide_log2[0]]; in av1_subtract_txb() 79 &p->src.buf[(blk_row * src_stride + blk_col) << tx_size_wide_log2[0]]; in av1_subtract_txb() 81 &p->src_diff[(blk_row * diff_stride + blk_col) << tx_size_wide_log2[0]]; in av1_subtract_txb() 133 int blk_row, int blk_col, BLOCK_SIZE plane_bsize, in av1_xform_quant() argument 158 const int src_offset = (blk_row * diff_stride + blk_col); in av1_xform_quant() 201 static void encode_block(int plane, int block, int blk_row, int blk_col, in encode_block() argument 221 .buf[(blk_row * pd->dst.stride + blk_col) << tx_size_wide_log2[0]]; in encode_block() 224 l = &args->tl[blk_row]; in encode_block() 226 if (!is_blk_skip(x, plane, blk_row * bw + blk_col) && !mbmi->skip_mode) { in encode_block() [all …]
|
D | tokenize.c | 134 TX_SIZE tx_size, BLOCK_SIZE plane_bsize, int blk_row, in tokenize_vartx() argument 143 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in tokenize_vartx() 148 : mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row, in tokenize_vartx() 155 av1_update_and_record_txb_context(plane, block, blk_row, blk_col, in tokenize_vartx() 158 av1_update_txb_context_b(plane, block, blk_row, blk_col, plane_bsize, in tokenize_vartx() 175 const int offsetr = blk_row + row; in tokenize_vartx() 239 int blk_row, blk_col; in av1_tokenize_sb_vartx() local 242 for (blk_row = idy; blk_row < unit_height; blk_row += bh) { in av1_tokenize_sb_vartx() 244 tokenize_vartx(td, t, dry_run, max_tx_size, plane_bsize, blk_row, in av1_tokenize_sb_vartx()
|
D | rdopt.h | 41 TX_SIZE tx_size, int blk_row, in av1_update_txb_coeff_cost() argument 43 (void)blk_row; in av1_update_txb_coeff_cost() 54 rd_stats->txb_coeff_cost_map[plane][blk_row + idy][blk_col + idx] = 0; in av1_update_txb_coeff_cost() 56 rd_stats->txb_coeff_cost_map[plane][blk_row][blk_col] = txb_coeff_cost; in av1_update_txb_coeff_cost() 58 assert(blk_row < TXB_COEFF_COST_MAP_SIZE); in av1_update_txb_coeff_cost()
|
D | encodetxb.h | 55 aom_writer *w, int blk_row, int blk_col, int plane, 66 void av1_update_txb_context_b(int plane, int block, int blk_row, int blk_col, 70 void av1_update_and_record_txb_context(int plane, int block, int blk_row,
|
D | encodemb.h | 63 int blk_row, int blk_col, BLOCK_SIZE plane_bsize, 72 int blk_col, int blk_row, TX_SIZE tx_size); 84 void av1_encode_block_intra(int plane, int block, int blk_row, int blk_col,
|
D | encodetxb.c | 506 aom_writer *w, int blk_row, int blk_col, int plane, argument 515 const TX_TYPE tx_type = av1_get_tx_type(plane_type, xd, blk_row, blk_col, 530 av1_write_tx_type(cm, xd, blk_row, blk_col, plane, tx_size, w); 639 int blk_row, int blk_col, TX_SIZE tx_size) { argument 653 av1_write_coeffs_txb(cm, xd, w, blk_row, blk_col, plane, tx_size, tcoeff, eob, 689 for (int blk_row = row >> pd->subsampling_y; blk_row < unit_height; local 690 blk_row += stepr) { 693 write_coeffs_txb_wrap(cm, x, w, plane, block[plane], blk_row, 1814 int blk_row, int blk_col, int block, TX_SIZE tx_size, argument 1820 const TX_TYPE tx_type = av1_get_tx_type(plane_type, xd, blk_row, blk_col, [all …]
|
D | bitstream.h | 40 int blk_row, int blk_col, int plane, TX_SIZE tx_size,
|
D | rdopt.c | 1804 int blk_row, int blk_col, TxSetType tx_set_type, in prune_tx_2D() argument 1832 const int16_t *diff = p->src_diff + 4 * blk_row * diff_stride + 4 * blk_col; in prune_tx_2D() 2101 BLOCK_SIZE plane_bsize, int blk_row, int blk_col, in get_txb_dimensions() argument 2125 clamp(block_rows - (blk_row << tx_unit_size), 0, txb_height); in get_txb_dimensions() 2134 int blk_row, int blk_col, in pixel_dist() argument 2140 get_txb_dimensions(xd, plane, plane_bsize, blk_row, blk_col, tx_bsize, in pixel_dist() 2162 int blk_row, int blk_col, in pixel_diff_dist() argument 2168 get_txb_dimensions(xd, plane, plane_bsize, blk_row, blk_col, tx_bsize, NULL, in pixel_diff_dist() 2177 const int src_idx = (blk_row * src_stride + blk_col) in pixel_diff_dist() 2179 const int diff_idx = (blk_row * diff_stride + blk_col) in pixel_diff_dist() [all …]
|
D | bitstream.c | 146 TX_SIZE tx_size, int depth, int blk_row, in write_tx_size_vartx() argument 152 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in write_tx_size_vartx() 156 xd->left_txfm_context + blk_row, tx_size, tx_size); in write_tx_size_vartx() 161 xd->left_txfm_context + blk_row, in write_tx_size_vartx() 164 av1_get_txb_size_index(mbmi->sb_type, blk_row, blk_col); in write_tx_size_vartx() 171 xd->left_txfm_context + blk_row, tx_size, tx_size); in write_tx_size_vartx() 182 xd->left_txfm_context + blk_row, sub_txs, tx_size); in write_tx_size_vartx() 189 int offsetr = blk_row + row; in write_tx_size_vartx() 357 int block, int blk_row, int blk_col, in pack_txb_tokens() argument 362 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in pack_txb_tokens() [all …]
|
D | encodeframe.c | 5777 int blk_row, int blk_col, in update_txfm_count() argument 5784 xd->left_txfm_context + blk_row, in update_txfm_count() 5786 const int txb_size_index = av1_get_txb_size_index(bsize, blk_row, blk_col); in update_txfm_count() 5789 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in update_txfm_count() 5796 xd->left_txfm_context + blk_row, tx_size, tx_size); in update_txfm_count() 5808 xd->left_txfm_context + blk_row, tx_size, tx_size); in update_txfm_count() 5825 xd->left_txfm_context + blk_row, TX_4X4, tx_size); in update_txfm_count() 5834 update_txfm_count(x, xd, counts, sub_txs, depth + 1, blk_row + offsetr, in update_txfm_count() 5863 static void set_txfm_context(MACROBLOCKD *xd, TX_SIZE tx_size, int blk_row, in set_txfm_context() argument 5869 const int txb_size_index = av1_get_txb_size_index(bsize, blk_row, blk_col); in set_txfm_context() [all …]
|
/external/libhevc/encoder/ |
D | ihevce_enc_sbh_funcs.c | 123 WORD32 blk_row, blk_col; in ihevce_sign_data_hiding() local 189 blk_row = (pu1_trans_table[trans_unit_idx] >> shift_value) * 4; in ihevce_sign_data_hiding() 201 y_pos = (pu1_csb_table[i] >> 2) + blk_row; in ihevce_sign_data_hiding() 220 y_pos = (pu1_csb_table[first_scan_pos] >> 2) + blk_row; in ihevce_sign_data_hiding() 237 y_pos = (pu1_csb_table[i] >> 2) + blk_row; in ihevce_sign_data_hiding() 286 y_pos = (pu1_csb_table[best_pos] >> 2) + blk_row; in ihevce_sign_data_hiding()
|
D | ihevce_cabac_tu.c | 2489 WORD32 blk_row, blk_col; in ihevce_cabac_residue_encode_rdoq() local 2514 blk_row = pu1_trans_table[i] >> shift_value; /*row of csb*/ in ihevce_cabac_residue_encode_rdoq() 2517 scaled_blk_row = blk_row << 2; in ihevce_cabac_residue_encode_rdoq() 2526 ->pu1_csbf_buf[pi4_subBlock2csbfId_map[blk_row * trans_size / 4 + blk_col + 1]]) in ihevce_cabac_residue_encode_rdoq() 2532 if((blk_row + 1 < trans_size / 4)) /* checking bottom boundary */ in ihevce_cabac_residue_encode_rdoq() 2535 … ->pu1_csbf_buf[pi4_subBlock2csbfId_map[(blk_row + 1) * trans_size / 4 + blk_col]]) in ihevce_cabac_residue_encode_rdoq() 3345 WORD32 blk_row; in ihevce_find_new_last_csb() local 3366 blk_row = pu1_trans_table[i] >> shift_value; in ihevce_find_new_last_csb() 3374 y_pos = (pu1_csb_table[j] >> 2) + blk_row * 4; in ihevce_find_new_last_csb()
|
D | ihevce_enc_loop_utils.c | 896 WORD32 blk_row, blk_col; in ihevce_scan_coeffs() local 948 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; in ihevce_scan_coeffs() 956 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs() 1023 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs() 1082 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; /*row of csb*/ in ihevce_scan_coeffs() 1101 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[blk_row * trans_size / 4 + blk_col + 1]]) in ihevce_scan_coeffs() 1107 if((blk_row + 1 < trans_size / 4)) /* checking bottom oundary */ in ihevce_scan_coeffs() 1109 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[(blk_row + 1) * trans_size / 4 + blk_col]]) in ihevce_scan_coeffs() 1135 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs()
|
/external/libhevc/encoder/arm/ |
D | ihevce_scan_coeffs_neon.c | 131 WORD32 blk_row, blk_col; in ihevce_scan_coeffs_neon() local 188 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; in ihevce_scan_coeffs_neon() 191 pi2_temp_quant_coeff += (blk_col * 4 + (blk_row * 4) * trans_size); in ihevce_scan_coeffs_neon() 262 u1_last_y = (pu1_csb_table[pos_last_coded] >> 2) + blk_row * 4; in ihevce_scan_coeffs_neon() 330 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; /*row of csb*/ in ihevce_scan_coeffs_neon() 349 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[blk_row * trans_size / 4 + blk_col + 1]]) in ihevce_scan_coeffs_neon() 355 if((blk_row + 1 < trans_size / 4)) /* checking bottom oundary */ in ihevce_scan_coeffs_neon() 357 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[(blk_row + 1) * trans_size / 4 + blk_col]]) in ihevce_scan_coeffs_neon() 382 pi2_quant_coeffs + blk_col * 4 + (blk_row * 4) * trans_size; in ihevce_scan_coeffs_neon()
|
/external/libaom/libaom/av1/common/ |
D | blockd.h | 792 static INLINE int av1_get_txb_size_index(BLOCK_SIZE bsize, int blk_row, in av1_get_txb_size_index() argument 802 ((blk_row >> tx_h_log2) << stride_log2) + (blk_col >> tx_w_log2); in av1_get_txb_size_index() 807 static INLINE int av1_get_txk_type_index(BLOCK_SIZE bsize, int blk_row, in av1_get_txk_type_index() argument 817 ((blk_row >> tx_h_log2) << stride_log2) + (blk_col >> tx_w_log2); in av1_get_txk_type_index() 823 int blk_row, int blk_col, TX_SIZE tx_size, in update_txk_array() argument 825 const int txk_type_idx = av1_get_txk_type_index(bsize, blk_row, blk_col); in update_txk_array() 840 av1_get_txk_type_index(bsize, blk_row + idy, blk_col + idx); in update_txk_array() 848 const MACROBLOCKD *xd, int blk_row, in av1_get_tx_type() argument 862 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_get_tx_type() 866 blk_row <<= pd->subsampling_y; in av1_get_tx_type() [all …]
|
D | mvref_common.c | 328 int blk_row, int blk_col, int_mv *gm_mv_candidates, in add_tpl_ref_mv() argument 336 mi_pos.row = (mi_row & 0x01) ? blk_row : blk_row + 1; in add_tpl_ref_mv() 364 if (blk_row == 0 && blk_col == 0) in add_tpl_ref_mv() 409 if (blk_row == 0 && blk_col == 0) in add_tpl_ref_mv() 583 for (int blk_row = 0; blk_row < blk_row_end; blk_row += step_h) { in setup_ref_mv_list() local 585 int ret = add_tpl_ref_mv(cm, xd, mi_row, mi_col, ref_frame, blk_row, in setup_ref_mv_list() 588 if (blk_row == 0 && blk_col == 0) is_available = ret; in setup_ref_mv_list() 595 const int blk_row = tpl_sample_pos[i][0]; in setup_ref_mv_list() local 598 if (!check_sb_border(mi_row, mi_col, blk_row, blk_col)) continue; in setup_ref_mv_list() 599 add_tpl_ref_mv(cm, xd, mi_row, mi_col, ref_frame, blk_row, blk_col, in setup_ref_mv_list() [all …]
|
D | av1_loopfilter.c | 825 int blk_row, int blk_col, in setup_tx_block_mask() argument 828 blk_row <<= ssy; in setup_tx_block_mask() 830 if (((mi_row + blk_row) << MI_SIZE_LOG2) >= cm->height || in setup_tx_block_mask() 837 setup_masks(cm, mi_row + blk_row, mi_col + blk_col, plane, ssx, ssy, in setup_tx_block_mask() 858 plane_bsize, blk_row, blk_col)]; in setup_tx_block_mask() 862 (mi_row + blk_row) * cm->mi_stride + mi_col + in setup_tx_block_mask() 872 setup_masks(cm, mi_row + blk_row, mi_col + blk_col, plane, ssx, ssy, in setup_tx_block_mask() 880 const int offsetr = blk_row + row; in setup_tx_block_mask() 934 for (int blk_row = idy; blk_row < unit_height; blk_row += bh) { in setup_fix_block_mask() local 936 setup_tx_block_mask(cm, mi_row, mi_col, blk_row, blk_col, plane_bsize, in setup_fix_block_mask() [all …]
|
D | reconintra.h | 27 int plane, int blk_col, int blk_row,
|
D | reconintra.c | 1593 int plane, int blk_col, int blk_row, in av1_predict_intra_block_facade() argument 1599 &pd->dst.buf[(blk_row * dst_stride + blk_col) << tx_size_wide_log2[0]]; in av1_predict_intra_block_facade() 1618 assert(blk_row == 0); in av1_predict_intra_block_facade() 1628 dst_stride, dst, dst_stride, blk_col, blk_row, in av1_predict_intra_block_facade() 1642 dst_stride, dst, dst_stride, blk_col, blk_row, plane); in av1_predict_intra_block_facade()
|
/external/libaom/libaom/av1/decoder/ |
D | decodetxb.c | 111 aom_reader *const r, const int blk_row, in av1_read_coeffs_txb() argument 143 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_read_coeffs_txb() 152 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_read_coeffs_txb() 160 av1_read_tx_type(cm, xd, blk_row, blk_col, tx_size, r); in av1_read_coeffs_txb() 162 const TX_TYPE tx_type = av1_get_tx_type(plane_type, xd, blk_row, blk_col, in av1_read_coeffs_txb()
|
D | decodemv.h | 32 void av1_read_tx_type(const AV1_COMMON *const cm, MACROBLOCKD *xd, int blk_row,
|
D | decodetxb.h | 23 aom_reader *const r, const int blk_row,
|
D | decodeframe.c | 249 const int blk_row, const int blk_col, in inverse_transform_inter_block() argument 256 const TX_TYPE tx_type = av1_get_tx_type(plane_type, xd, blk_row, blk_col, in inverse_transform_inter_block() 261 .buf[(blk_row * pd->dst.stride + blk_col) << tx_size_wide_log2[0]]; in inverse_transform_inter_block() 269 mi_to_pixel_loc(&pixel_c, &pixel_r, mi_col, mi_row, blk_col, blk_row, in inverse_transform_inter_block() 287 int blk_row, int blk_col, int block, in decode_reconstruct_tx() argument 294 : mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row, in decode_reconstruct_tx() 300 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in decode_reconstruct_tx() 303 td->read_coeffs_tx_inter_block_visit(cm, xd, r, plane, blk_row, blk_col, in decode_reconstruct_tx() 306 td->inverse_tx_inter_block_visit(cm, xd, r, plane, blk_row, blk_col, in decode_reconstruct_tx() 323 const int offsetr = blk_row + row; in decode_reconstruct_tx() [all …]
|
D | decodemv.c | 601 void av1_read_tx_type(const AV1_COMMON *const cm, MACROBLOCKD *xd, int blk_row, in av1_read_tx_type() argument 605 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_read_tx_type()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_rdopt.c | 467 const uint8_t *dst, const int dst_stride, int blk_row, in pixel_sse() argument 478 pd->subsampling_y, blk_row); in pixel_sse() 506 int blk_row, int blk_col, in sum_squares_visible() argument 517 pd->subsampling_y, blk_row); in sum_squares_visible() 540 BLOCK_SIZE plane_bsize, int block, int blk_row, in dist_block() argument 583 const int src_idx = 4 * (blk_row * src_stride + blk_col); in dist_block() 584 const int dst_idx = 4 * (blk_row * dst_stride + blk_col); in dist_block() 590 tmp = pixel_sse(cpi, xd, pd, src, src_stride, dst, dst_stride, blk_row, in dist_block() 645 tmp = pixel_sse(cpi, xd, pd, src, src_stride, recon, 32, blk_row, blk_col, in dist_block() 659 static void block_rd_txfm(int plane, int block, int blk_row, int blk_col, in block_rd_txfm() argument [all …]
|