/aosp_15_r20/external/libaom/av1/encoder/ |
H A D | encodemb.c | 56 int blk_col, int blk_row, TX_SIZE tx_size) { in av1_subtract_txb() argument 66 uint8_t *dst = &pd->dst.buf[(blk_row * dst_stride + blk_col) << MI_SIZE_LOG2]; in av1_subtract_txb() 67 uint8_t *src = &p->src.buf[(blk_row * src_stride + blk_col) << MI_SIZE_LOG2]; in av1_subtract_txb() 69 &p->src_diff[(blk_row * diff_stride + blk_col) << MI_SIZE_LOG2]; in av1_subtract_txb() 296 void av1_xform_quant(MACROBLOCK *x, int plane, int block, int blk_row, in av1_xform_quant() argument 299 av1_xform(x, plane, block, blk_row, blk_col, plane_bsize, txfm_param); in av1_xform_quant() 303 void av1_xform(MACROBLOCK *x, int plane, int block, int blk_row, int blk_col, in av1_xform() argument 310 const int src_offset = (blk_row * diff_stride + blk_col); in av1_xform() 390 static void encode_block(int plane, int block, int blk_row, int blk_col, in encode_block() argument 408 dst = &pd->dst.buf[(blk_row * pd->dst.stride + blk_col) << MI_SIZE_LOG2]; in encode_block() [all …]
|
H A D | tx_search.c | 121 int64_t av1_pixel_diff_dist(const MACROBLOCK *x, int plane, int blk_row, in av1_pixel_diff_dist() argument 127 get_txb_dimensions(xd, plane, plane_bsize, blk_row, blk_col, tx_bsize, NULL, in av1_pixel_diff_dist() 132 diff += ((blk_row * diff_stride + blk_col) << MI_SIZE_LOG2); in av1_pixel_diff_dist() 148 MACROBLOCK *x, int plane, int blk_row, int blk_col, in pixel_diff_stats() argument 153 get_txb_dimensions(xd, plane, plane_bsize, blk_row, blk_col, tx_bsize, NULL, in pixel_diff_stats() 158 diff += ((blk_row * diff_stride + blk_col) << MI_SIZE_LOG2); in pixel_diff_stats() 330 const AV1_COMP *cpi, MACROBLOCK *x, int blk_row, int blk_col, int block, 537 int blk_row, int blk_col, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, in PrintTransformUnitStats() argument 567 &p->src.buf[(blk_row * src_stride + blk_col) << MI_SIZE_LOG2]; in PrintTransformUnitStats() 570 &pd->dst.buf[(blk_row * dst_stride + blk_col) << MI_SIZE_LOG2]; in PrintTransformUnitStats() [all …]
|
H A D | tokenize.c | 281 BLOCK_SIZE plane_bsize, int blk_row, int blk_col, in tokenize_vartx() argument 290 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in tokenize_vartx() 295 : mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row, in tokenize_vartx() 304 av1_update_and_record_txb_context(plane, block, blk_row, blk_col, in tokenize_vartx() 307 av1_record_txb_context(plane, block, blk_row, blk_col, plane_bsize, in tokenize_vartx() 317 AOMMIN(tx_size_high_unit[tx_size], max_blocks_high - blk_row); in tokenize_vartx() 324 const int offsetr = blk_row + row; in tokenize_vartx() 386 for (int blk_row = idy; blk_row < unit_height; blk_row += bh) { in av1_tokenize_sb_vartx() local 388 tokenize_vartx(td, max_tx_size, plane_bsize, blk_row, blk_col, in av1_tokenize_sb_vartx()
|
H A D | encodetxb.c | 293 aom_writer *w, int blk_row, int blk_col, int plane, argument 310 av1_get_tx_type(xd, plane_type, blk_row, blk_col, tx_size, 460 for (int blk_row = row >> pd->subsampling_y; blk_row < unit_height; local 461 blk_row += stepr) { 464 av1_write_coeffs_txb(cm, x, w, blk_row, blk_col, plane, 493 MACROBLOCKD *xd, int blk_row, int blk_col, argument 507 const TX_TYPE tx_type = av1_get_tx_type(xd, PLANE_TYPE_Y, blk_row, blk_col, 570 void av1_update_and_record_txb_context(int plane, int block, int blk_row, argument 586 av1_get_tx_type(xd, plane_type, blk_row, blk_col, tx_size, 596 pd->left_entropy_context + blk_row, &txb_ctx); [all …]
|
H A D | encodetxb.h | 90 aom_writer *w, int blk_row, int blk_col, int plane, 184 void av1_update_and_record_txb_context(int plane, int block, int blk_row, 220 void av1_record_txb_context(int plane, int block, int blk_row, int blk_col,
|
H A D | encodemb.h | 86 void av1_xform_quant(MACROBLOCK *x, int plane, int block, int blk_row, 90 void av1_xform(MACROBLOCK *x, int plane, int block, int blk_row, int blk_col, 137 int blk_col, int blk_row, TX_SIZE tx_size);
|
H A D | bitstream.c | 153 TX_SIZE tx_size, int depth, int blk_row, in write_tx_size_vartx() argument 159 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in write_tx_size_vartx() 163 xd->left_txfm_context + blk_row, tx_size, tx_size); in write_tx_size_vartx() 168 xd->left_txfm_context + blk_row, in write_tx_size_vartx() 171 av1_get_txb_size_index(mbmi->bsize, blk_row, blk_col); in write_tx_size_vartx() 178 xd->left_txfm_context + blk_row, tx_size, tx_size); in write_tx_size_vartx() 189 xd->left_txfm_context + blk_row, sub_txs, tx_size); in write_tx_size_vartx() 195 const int offsetr = blk_row + row; in write_tx_size_vartx() 374 int blk_row, int blk_col, TX_SIZE tx_size, TOKEN_STATS *token_stats) { in pack_txb_tokens() argument 378 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in pack_txb_tokens() [all …]
|
H A D | firstpass.c | 416 int blk_row, int blk_col, in first_pass_intra_pred_and_calc_diff() argument 426 uint8_t *dst = &pd->dst.buf[(blk_row * dst_stride + blk_col) << MI_SIZE_LOG2]; in first_pass_intra_pred_and_calc_diff() 430 uint8_t *src = &p->src.buf[(blk_row * src_stride + blk_col) << MI_SIZE_LOG2]; in first_pass_intra_pred_and_calc_diff() 435 src_stride, dst, dst_stride, blk_col, blk_row, plane); in first_pass_intra_pred_and_calc_diff() 437 av1_subtract_txb(x, plane, plane_bsize, blk_col, blk_row, tx_size); in first_pass_intra_pred_and_calc_diff()
|
H A D | tx_search.h | 66 int64_t av1_pixel_diff_dist(const MACROBLOCK *x, int plane, int blk_row,
|
H A D | encodeframe_utils.c | 212 for (int blk_row = 0; blk_row < bh; ++blk_row) { in av1_update_state() local 213 av1_copy_array(tx_type_map + blk_row * mi_stride, in av1_update_state() 214 xd->tx_type_map + blk_row * xd->tx_type_map_stride, bw); in av1_update_state()
|
H A D | partition_search.c | 207 int blk_row, int blk_col, in update_txfm_count() argument 214 xd->left_txfm_context + blk_row, mbmi->bsize, in update_txfm_count() 216 const int txb_size_index = av1_get_txb_size_index(bsize, blk_row, blk_col); in update_txfm_count() 219 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in update_txfm_count() 226 xd->left_txfm_context + blk_row, tx_size, tx_size); in update_txfm_count() 238 xd->left_txfm_context + blk_row, tx_size, tx_size); in update_txfm_count() 255 xd->left_txfm_context + blk_row, TX_4X4, tx_size); in update_txfm_count() 264 update_txfm_count(x, xd, counts, sub_txs, depth + 1, blk_row + offsetr, in update_txfm_count() 295 static void set_txfm_context(MACROBLOCKD *xd, TX_SIZE tx_size, int blk_row, in set_txfm_context() argument 301 const int txb_size_index = av1_get_txb_size_index(bsize, blk_row, blk_col); in set_txfm_context() [all …]
|
H A D | rdopt_utils.h | 308 BLOCK_SIZE plane_bsize, int blk_row, in get_txb_dimensions() argument 326 clamp(block_rows - (blk_row << MI_SIZE_LOG2), 0, txb_height); in get_txb_dimensions()
|
/aosp_15_r20/external/libhevc/encoder/arm/ |
H A 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()
|
/aosp_15_r20/external/libhevc/encoder/ |
H A 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()
|
H A 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()
|
H A D | ihevce_enc_loop_utils.c | 947 WORD32 blk_row, blk_col; in ihevce_scan_coeffs() local 999 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; in ihevce_scan_coeffs() 1007 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs() 1074 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs() 1133 blk_row = pu1_trans_table[trans_unit_idx] >> shift_value; /*row of csb*/ in ihevce_scan_coeffs() 1152 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[blk_row * trans_size / 4 + blk_col + 1]]) in ihevce_scan_coeffs() 1158 if((blk_row + 1 < trans_size / 4)) /* checking bottom oundary */ in ihevce_scan_coeffs() 1160 if(pu1_csbf_buf[pi4_subBlock2csbfId_map[(blk_row + 1) * trans_size / 4 + blk_col]]) in ihevce_scan_coeffs() 1186 y_pos = (pu1_csb_table[i] >> 2) + blk_row * 4; in ihevce_scan_coeffs()
|
/aosp_15_r20/external/libaom/av1/common/ |
H A D | mvref_common.c | 330 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() 367 if (blk_row == 0 && blk_col == 0) { in add_tpl_ref_mv() 395 if (blk_row == 0 && blk_col == 0) { in add_tpl_ref_mv() 570 for (int blk_row = 0; blk_row < blk_row_end; blk_row += step_h) { in setup_ref_mv_list() local 572 int ret = add_tpl_ref_mv(cm, xd, mi_row, mi_col, ref_frame, blk_row, in setup_ref_mv_list() 575 if (blk_row == 0 && blk_col == 0) is_available = ret; in setup_ref_mv_list() 582 const int blk_row = tpl_sample_pos[i][0]; in setup_ref_mv_list() local 585 if (!check_sb_border(mi_row, mi_col, blk_row, blk_col)) continue; in setup_ref_mv_list() 586 add_tpl_ref_mv(cm, xd, mi_row, mi_col, ref_frame, blk_row, blk_col, in setup_ref_mv_list() [all …]
|
H A D | blockd.h | 1206 static inline int av1_get_txb_size_index(BLOCK_SIZE bsize, int blk_row, in av1_get_txb_size_index() argument 1218 ((blk_row >> tw_h_log2_table[bsize]) << stride_log2_table[bsize]) + in av1_get_txb_size_index() 1236 static inline int av1_get_txk_type_index(BLOCK_SIZE bsize, int blk_row, in av1_get_txk_type_index() argument 1248 ((blk_row >> tw_h_log2_table[bsize]) << stride_log2_table[bsize]) + in av1_get_txk_type_index() 1255 static inline void update_txk_array(MACROBLOCKD *const xd, int blk_row, in update_txk_array() argument 1259 xd->tx_type_map[blk_row * stride + blk_col] = tx_type; in update_txk_array() 1272 xd->tx_type_map[(blk_row + idy) * stride + blk_col + idx] = tx_type; in update_txk_array() 1279 PLANE_TYPE plane_type, int blk_row, in av1_get_tx_type() argument 1289 tx_type = xd->tx_type_map[blk_row * xd->tx_type_map_stride + blk_col]; in av1_get_tx_type() 1294 blk_row <<= pd->subsampling_y; in av1_get_tx_type() [all …]
|
H A D | reconintra.h | 27 int plane, int blk_col, int blk_row,
|
H A D | reconintra.c | 1837 int plane, int blk_col, int blk_row, in av1_predict_intra_block_facade() argument 1842 uint8_t *dst = &pd->dst.buf[(blk_row * dst_stride + blk_col) << MI_SIZE_LOG2]; in av1_predict_intra_block_facade() 1863 assert(blk_row == 0); in av1_predict_intra_block_facade() 1875 dst, dst_stride, blk_col, blk_row, plane); in av1_predict_intra_block_facade() 1890 dst, dst_stride, dst, dst_stride, blk_col, blk_row, plane); in av1_predict_intra_block_facade()
|
/aosp_15_r20/external/libaom/av1/decoder/ |
H A D | decodetxb.c | 112 const int blk_row, const int blk_col, in read_coeffs_txb() argument 144 av1_get_txk_type_index(mbmi->bsize, blk_row, blk_col); in read_coeffs_txb() 152 xd->tx_type_map[blk_row * xd->tx_type_map_stride + blk_col] = DCT_DCT; in read_coeffs_txb() 159 av1_read_tx_type(cm, xd, blk_row, blk_col, tx_size, r); in read_coeffs_txb() 162 av1_get_tx_type(xd, plane_type, blk_row, blk_col, tx_size, in read_coeffs_txb()
|
H A D | decodeframe.c | 244 const int plane, const int blk_row, const int blk_col, in inverse_transform_inter_block() argument 252 const TX_TYPE tx_type = av1_get_tx_type(xd, plane_type, blk_row, blk_col, in inverse_transform_inter_block() 256 &pd->dst.buf[(blk_row * pd->dst.stride + blk_col) << MI_SIZE_LOG2]; in inverse_transform_inter_block() 266 mi_to_pixel_loc(&pixel_c, &pixel_r, mi_col, mi_row, blk_col, blk_row, in inverse_transform_inter_block() 284 BLOCK_SIZE plane_bsize, int blk_row, in decode_reconstruct_tx() argument 293 : mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row, in decode_reconstruct_tx() 299 if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return; in decode_reconstruct_tx() 302 td->read_coeffs_tx_inter_block_visit(cm, dcb, r, plane, blk_row, blk_col, in decode_reconstruct_tx() 305 td->inverse_tx_inter_block_visit(cm, dcb, r, plane, blk_row, blk_col, in decode_reconstruct_tx() 318 AOMMIN(tx_size_high_unit[tx_size], max_blocks_high - blk_row); in decode_reconstruct_tx() [all …]
|
H A D | decodemv.h | 32 void av1_read_tx_type(const AV1_COMMON *const cm, MACROBLOCKD *xd, int blk_row,
|
/aosp_15_r20/external/libvpx/vp9/encoder/ |
H A D | vp9_rdopt.c | 465 uint8_t *dst, const int dst_stride, int blk_row, in copy_block_visible() argument 475 pd->subsampling_y, blk_row); in copy_block_visible() 526 const uint8_t *dst, const int dst_stride, int blk_row, in pixel_sse() argument 537 pd->subsampling_y, blk_row); in pixel_sse() 562 BLOCK_SIZE plane_bsize, int block, int blk_row, in dist_block() argument 606 const int src_idx = 4 * (blk_row * src_stride + blk_col); in dist_block() 607 const int dst_idx = 4 * (blk_row * dst_stride + blk_col); in dist_block() 618 tmp = pixel_sse(cpi, xd, pd, src, src_stride, dst, dst_stride, blk_row, in dist_block() 623 const int out_recon_idx = 4 * (blk_row * out_recon->stride + blk_col); in dist_block() 626 out_recon->stride, blk_row, blk_col, plane_bsize, in dist_block() [all …]
|
H A D | vp9_encoder.h | 1558 int blk_row, int blk_col, in sum_squares_visible() argument 1570 plane_4x4_h, xd->mb_to_bottom_edge, pd->subsampling_y, blk_row); in sum_squares_visible() 1599 int blk_row, int blk_col, in do_trellis_opt() argument 1634 *sse = sum_squares_visible(xd, pd, src_diff, diff_stride, blk_row, in do_trellis_opt()
|