/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodeframe.c | 51 int mi_row, int mi_col, BLOCK_SIZE bsize, 141 int mi_row, int mi_col, in get_sby_perpixel_diff_variance() argument 149 &last->y_buffer[mi_row * MI_SIZE * last->y_stride + mi_col * MI_SIZE]; in get_sby_perpixel_diff_variance() 155 int mi_row, in get_rd_var_based_fixed_partition() argument 158 mi_row, mi_col, in get_rd_var_based_fixed_partition() 175 int mi_row, in set_mode_info_offsets() argument 177 const int idx_str = xd->mi_stride * mi_row + mi_col; in set_mode_info_offsets() 180 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets() 184 MACROBLOCK *const x, int mi_row, int mi_col, in set_offsets() argument 193 set_skip_context(xd, mi_row, mi_col); in set_offsets() [all …]
|
D | vp9_segmentation.c | 114 int bw, int bh, int mi_row, int mi_col) { in count_segs() argument 117 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in count_segs() 123 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs() 133 bsize, mi_row, mi_col); in count_segs() 153 int mi_row, int mi_col, in count_segs_sb() argument 159 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in count_segs_sb() 167 t_unpred_seg_counts, bs, bs, mi_row, mi_col); in count_segs_sb() 170 t_unpred_seg_counts, bs, hbs, mi_row, mi_col); in count_segs_sb() 173 mi_row + hbs, mi_col); in count_segs_sb() 176 t_unpred_seg_counts, hbs, bs, mi_row, mi_col); in count_segs_sb() [all …]
|
D | vp9_aq_cyclicrefresh.c | 217 int mi_row, int mi_col, in vp9_cyclic_refresh_update_segment() argument 227 const int ymis = MIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_segment() 228 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_segment() 283 int mi_row, mi_col; in vp9_cyclic_refresh_postencode() local 286 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) in vp9_cyclic_refresh_postencode() 289 seg_map[mi_row * cm->mi_cols + mi_col]) == CR_SEGMENT_ID_BOOST1) in vp9_cyclic_refresh_postencode() 292 seg_map[mi_row * cm->mi_cols + mi_col]) == CR_SEGMENT_ID_BOOST2) in vp9_cyclic_refresh_postencode() 317 int mi_row, mi_col; in vp9_cyclic_refresh_check_golden_update() local 327 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_cyclic_refresh_check_golden_update() 343 if (cr->map[mi_row * cols + mi_col] < 1) in vp9_cyclic_refresh_check_golden_update() [all …]
|
D | vp9_rdopt.h | 44 int mi_row, int mi_col, 58 int vp9_active_h_edge(struct VP9_COMP *cpi, int mi_row, int mi_step); 60 int vp9_active_edge_sb(struct VP9_COMP *cpi, int mi_row, int mi_col); 65 int mi_row, int mi_col,
|
D | vp9_denoiser.c | 186 int mi_row, int mi_col) { in block_start() argument 187 return framebuf + (stride * mi_row * 8) + (mi_col * 8); in block_start() 194 int mi_row, in perform_motion_compensation() argument 262 mi_row, mi_col); in perform_motion_compensation() 268 mi_row, mi_col); in perform_motion_compensation() 274 mi_row, mi_col); in perform_motion_compensation() 281 mi_row, mi_col); in perform_motion_compensation() 286 mi_row, mi_col); in perform_motion_compensation() 291 mi_row, mi_col); in perform_motion_compensation() 312 int mi_row, int mi_col, BLOCK_SIZE bs, in vp9_denoiser_denoise() argument [all …]
|
D | vp9_bitstream.c | 380 int mi_row, int mi_col) { in write_modes_b() argument 385 xd->mi = cm->mi_grid_visible + (mi_row * cm->mi_stride + mi_col); in write_modes_b() 389 (mi_row * cm->mi_cols + mi_col); in write_modes_b() 392 mi_row, num_8x8_blocks_high_lookup[m->mbmi.sb_type], in write_modes_b() 407 int hbs, int mi_row, int mi_col, in write_partition() argument 409 const int ctx = partition_plane_context(xd, mi_row, mi_col, bsize); in write_partition() 411 const int has_rows = (mi_row + hbs) < cm->mi_rows; in write_partition() 430 int mi_row, int mi_col, BLOCK_SIZE bsize) { in write_modes_sb() argument 440 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in write_modes_sb() 443 m = cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]; in write_modes_sb() [all …]
|
D | vp9_aq_complexity.c | 114 int mi_row, int mi_col, int projected_rate) { in vp9_caq_select_segment() argument 117 const int mi_offset = mi_row * cm->mi_cols + mi_col; in vp9_caq_select_segment() 121 const int ymis = MIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[bs]); in vp9_caq_select_segment() 142 vp9_setup_src_planes(mb, cpi->Source, mi_row, mi_col); in vp9_caq_select_segment()
|
D | vp9_skin_detection.c | 54 int i, j, mi_row, mi_col, num_bl; in vp9_compute_skin_map() local 84 for (mi_row = 0; mi_row < cm->mi_rows - 1; mi_row += fac) { in vp9_compute_skin_map()
|
D | vp9_pickmode.h | 25 int mi_row, int mi_col, RD_COST *rd_cost, 30 int mi_row, int mi_col, RD_COST *rd_cost,
|
D | vp9_mbgraph.c | 302 int mi_row, mi_col; in separate_arf_mbs() local 341 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in separate_arf_mbs() 345 if (arf_not_zz[mi_row / 2 * cm->mb_cols + mi_col / 2]) { in separate_arf_mbs() 347 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 0; in separate_arf_mbs() 349 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 1; in separate_arf_mbs()
|
D | vp9_pickmode.c | 47 int mi_row, int mi_col) { in mv_refs_rt() argument 65 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 86 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 102 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 125 BLOCK_SIZE bsize, int mi_row, int mi_col, in combined_motion_search() argument 153 vp9_setup_pre_planes(xd, 0, scaled_ref_frame, mi_row, mi_col, NULL); in combined_motion_search() 259 int mi_row, int mi_col, int *early_term) { in model_rd_for_sb_y_large() argument 392 vp9_build_inter_predictors_sbp(xd, mi_row, mi_col, bsize, i); in model_rd_for_sb_y_large() 773 BLOCK_SIZE bsize, int mi_row, int mi_col, in encode_breakout_test() argument 833 vp9_build_inter_predictors_sbuv(xd, mi_row, mi_col, bsize); in encode_breakout_test() [all …]
|
D | vp9_rdopt.c | 1293 int mi_row, int mi_col) { in encode_inter_mb_segment() argument 1325 mi_row * MI_SIZE + 4 * (i / 2), xd->bd); in encode_inter_mb_segment() 1333 mi_row * MI_SIZE + 4 * (i / 2)); in encode_inter_mb_segment() 1342 mi_row * MI_SIZE + 4 * (i / 2)); in encode_inter_mb_segment() 1506 int mi_row, int mi_col, in joint_motion_search() argument 1547 vp9_setup_pre_planes(xd, ref, scaled_ref_frame[ref], mi_row, mi_col, in joint_motion_search() 1596 mi_col * MI_SIZE, mi_row * MI_SIZE, in joint_motion_search() 1606 mi_col * MI_SIZE, mi_row * MI_SIZE); in joint_motion_search() 1615 mi_col * MI_SIZE, mi_row * MI_SIZE); in joint_motion_search() 1697 int mi_row, int mi_col) { in rd_pick_best_sub8x8_mode() argument [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_debugmodes.c | 27 int mi_row, mi_col; in print_mi_data() local 34 for (mi_row = 0; mi_row < rows; mi_row++) { in print_mi_data() 49 int mi_row; in vp9_print_modes_and_motion_vectors() local 64 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors() 78 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors()
|
D | vp9_reconinter.h | 53 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, 56 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col, 59 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, 62 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, 94 int mi_row, int mi_col, in setup_pred_plane() argument 98 const int y = (MI_SIZE * mi_row) >> subsampling_y; in setup_pred_plane() 105 int mi_row, int mi_col); 108 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
|
D | vp9_mvref_common.c | 19 int block, int mi_row, int mi_col, in find_mv_refs_idx() argument 28 cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col : NULL; in find_mv_refs_idx() 39 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx() 61 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx() 79 sync(data, mi_row); in find_mv_refs_idx() 87 sync(data, mi_row); in find_mv_refs_idx() 103 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx() 152 int mi_row, int mi_col, in vp9_find_mv_refs() argument 156 mi_row, mi_col, sync, data, mode_context); in vp9_find_mv_refs() 183 int block, int ref, int mi_row, int mi_col, in vp9_append_sub8x8_mvs_for_idx() argument [all …]
|
D | vp9_reconinter.c | 222 int mi_row, int mi_col, in build_inter_predictors_for_planes() argument 226 const int mi_y = mi_row * MI_SIZE; in build_inter_predictors_for_planes() 249 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sby() argument 251 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, 0); in vp9_build_inter_predictors_sby() 254 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbp() argument 256 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, plane, plane); in vp9_build_inter_predictors_sbp() 259 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbuv() argument 261 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 1, in vp9_build_inter_predictors_sbuv() 265 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sb() argument 267 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, in vp9_build_inter_predictors_sb() [all …]
|
D | vp9_mvref_common.h | 194 int mi_col, int mi_row, int mi_rows, in is_inside() argument 196 return !(mi_row + mi_pos->row < 0 || in is_inside() 198 mi_row + mi_pos->row >= mi_rows || in is_inside() 210 typedef void (*find_mv_refs_sync)(void *const data, int mi_row); 213 int_mv *mv_ref_list, int mi_row, int mi_col, 224 int block, int ref, int mi_row, int mi_col,
|
D | vp9_onyxc_int.h | 381 static INLINE void set_skip_context(MACROBLOCKD *xd, int mi_row, int mi_col) { in set_skip_context() argument 383 const int left_idx = (mi_row * 2) & 15; in set_skip_context() 398 int mi_row, int bh, in set_mi_row_col() argument 401 xd->mb_to_top_edge = -((mi_row * MI_SIZE) * 8); in set_mi_row_col() 402 xd->mb_to_bottom_edge = ((mi_rows - bh - mi_row) * MI_SIZE) * 8; in set_mi_row_col() 407 xd->up_available = (mi_row != 0); in set_mi_row_col() 429 int mi_row, int mi_col, in update_partition_context() argument 433 PARTITION_CONTEXT *const left_ctx = xd->left_seg_context + (mi_row & MI_MASK); in update_partition_context() 446 int mi_row, int mi_col, in partition_plane_context() argument 449 const PARTITION_CONTEXT *left_ctx = xd->left_seg_context + (mi_row & MI_MASK); in partition_plane_context()
|
D | vp9_thread_common.c | 97 int mi_row, mi_col; in thread_loop_filter_rows() local 108 for (mi_row = start; mi_row < stop; in thread_loop_filter_rows() 109 mi_row += lf_sync->num_workers * MI_BLOCK_SIZE) { in thread_loop_filter_rows() 110 MODE_INFO **const mi = cm->mi_grid_visible + mi_row * cm->mi_stride; in thread_loop_filter_rows() 113 const int r = mi_row >> MI_BLOCK_SIZE_LOG2; in thread_loop_filter_rows() 120 vp9_setup_dst_planes(planes, frame_buffer, mi_row, mi_col); in thread_loop_filter_rows() 123 vp9_setup_mask(cm, mi_row, mi_col, mi + mi_col, cm->mi_stride, in thread_loop_filter_rows() 126 vp9_filter_block_plane_ss00(cm, &planes[0], mi_row, &lfm); in thread_loop_filter_rows() 130 vp9_filter_block_plane_ss11(cm, &planes[plane], mi_row, &lfm); in thread_loop_filter_rows() 133 vp9_filter_block_plane_ss00(cm, &planes[plane], mi_row, &lfm); in thread_loop_filter_rows() [all …]
|
D | vp9_loopfilter.h | 97 const int mi_row, const int mi_col, 103 int mi_row, 108 int mi_row, 114 int mi_row, int mi_col);
|
D | vp9_loopfilter.c | 830 void vp9_setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_setup_mask() argument 858 const int max_rows = (mi_row + MI_BLOCK_SIZE > cm->mi_rows ? in vp9_setup_mask() 859 cm->mi_rows - mi_row : MI_BLOCK_SIZE); in vp9_setup_mask() 992 if (mi_row + MI_BLOCK_SIZE > cm->mi_rows) { in vp9_setup_mask() 993 const uint64_t rows = cm->mi_rows - mi_row; in vp9_setup_mask() 1157 int mi_row, int mi_col) { in vp9_filter_block_plane_non420() argument 1172 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420() 1195 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420() 1284 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420() 1285 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420() [all …]
|
D | vp9_mfqe.c | 353 int mi_row, mi_col; in vp9_mfqe() local 359 for (mi_row = 0; mi_row < cm->mi_rows; mi_row += MI_BLOCK_SIZE) { in vp9_mfqe() 362 MODE_INFO *mi_local = cm->mi + (mi_row * cm->mi_stride + mi_col); in vp9_mfqe() 365 (mi_row * cm->mi_stride + mi_col); in vp9_mfqe() 370 const uint32_t row_offset_y = mi_row << 3; in vp9_mfqe() 371 const uint32_t row_offset_uv = mi_row << 2; in vp9_mfqe()
|
D | vp9_pred_common.h | 23 BLOCK_SIZE bsize, int mi_row, int mi_col) { in get_segment_id() argument 24 const int mi_offset = mi_row * cm->mi_cols + mi_col; in get_segment_id() 28 const int ymis = MIN(cm->mi_rows - mi_row, bh); in get_segment_id()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 150 int mi_row, int mi_col, vpx_reader *r) { in read_inter_segment_id() argument 154 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_inter_segment_id() 160 const int y_mis = MIN(cm->mi_rows - mi_row, bh); in read_inter_segment_id() 203 int mi_row, int mi_col, vpx_reader *r) { in read_intra_frame_mode_info() argument 210 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_intra_frame_mode_info() 216 const int y_mis = MIN(cm->mi_rows - mi_row, bh); in read_intra_frame_mode_info() 477 static void fpm_sync(void *const data, int mi_row) { in fpm_sync() argument 480 mi_row << MI_BLOCK_SIZE_LOG2); in fpm_sync() 486 int mi_row, int mi_col, vpx_reader *r) { in read_inter_block_mode_info() argument 507 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in read_inter_block_mode_info() [all …]
|
D | vp9_decodeframe.c | 708 int mi_row, int mi_col) { in dec_build_inter_predictors_sb() argument 711 const int mi_y = mi_row * MI_SIZE; in dec_build_inter_predictors_sb() 785 BLOCK_SIZE bsize, int mi_row, int mi_col, in set_offsets() argument 788 const int offset = mi_row * cm->mi_stride + mi_col; in set_offsets() 804 set_skip_context(xd, mi_row, mi_col); in set_offsets() 808 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets() 810 vp9_setup_dst_planes(xd->plane, get_frame_new_buffer(cm), mi_row, mi_col); in set_offsets() 815 int mi_row, int mi_col, in decode_block() argument 823 const int y_mis = MIN(bh, cm->mi_rows - mi_row); in decode_block() 825 MB_MODE_INFO *mbmi = set_offsets(cm, xd, bsize, mi_row, mi_col, in decode_block() [all …]
|