Home
last modified time | relevance | path

Searched refs:mi_row (Results 1 – 25 of 122) sorted by relevance

12345

/external/libaom/libaom/av1/encoder/
Dpartition_strategy.h48 AV1_COMP *const cpi, MACROBLOCK *x, PC_TREE *pc_tree, int mi_row,
57 PC_TREE *pc_tree, int mi_row,
72 int mi_row, int mi_col,
81 int mi_row, int mi_col,
93 int64_t *split_block_rd, int mi_row,
126 unsigned int pb_source_variance, int mi_row,
140 int mi_row, int mi_col, in set_offsets_for_motion_search() argument
150 mi_row, mi_col); in set_offsets_for_motion_search()
153 av1_setup_dst_planes(xd->plane, bsize, &cm->cur_frame->buf, mi_row, mi_col, 0, in set_offsets_for_motion_search()
158 av1_set_mv_limits(mi_params, &x->mv_limits, mi_row, mi_col, mi_height, in set_offsets_for_motion_search()
[all …]
Dmv_prec.c177 const AV1_COMP *cpi, int mi_row, in collect_mv_stats_b() argument
182 if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols) { in collect_mv_stats_b()
187 mi_params->mi_grid_base[mi_row * mi_params->mi_stride + mi_col]; in collect_mv_stats_b()
190 get_mi_ext_idx(mi_row, mi_col, cm->mi_params.mi_alloc_bsize, in collect_mv_stats_b()
231 const int px_row = 4 * mi_row, px_col = 4 * mi_col; in collect_mv_stats_b()
267 const AV1_COMP *cpi, int mi_row, in collect_mv_stats_sb() argument
272 if (mi_row >= cm->mi_params.mi_rows || mi_col >= cm->mi_params.mi_cols) in collect_mv_stats_sb()
275 const PARTITION_TYPE partition = get_partition(cm, mi_row, mi_col, bsize); in collect_mv_stats_sb()
282 collect_mv_stats_b(mv_stats, cpi, mi_row, mi_col); in collect_mv_stats_sb()
285 collect_mv_stats_b(mv_stats, cpi, mi_row, mi_col); in collect_mv_stats_sb()
[all …]
Dencodeframe.c213 int mi_row, int mi_col, in get_sby_perpixel_diff_variance() argument
222 &last->y_buffer[mi_row * MI_SIZE * last->y_stride + mi_col * MI_SIZE]; in get_sby_perpixel_diff_variance()
228 int mi_row, int mi_col) { in get_rd_var_based_fixed_partition() argument
230 cpi, &x->plane[0].src, mi_row, mi_col, BLOCK_64X64); in get_rd_var_based_fixed_partition()
250 const BLOCK_SIZE bsize, const int mi_row, in set_ssim_rdmult() argument
268 for (row = mi_row / num_mi_w; in set_ssim_rdmult()
269 row < num_rows && row < mi_row / num_mi_w + num_brows; ++row) { in set_ssim_rdmult()
286 const BLOCK_SIZE bsize, const int mi_row, in get_hier_tpl_rdmult() argument
312 for (row = mi_row / num_mi_w; in get_hier_tpl_rdmult()
313 row < num_rows && row < mi_row / num_mi_w + num_brows; ++row) { in get_hier_tpl_rdmult()
[all …]
Dsegmentation.c51 int mi_row, int mi_col) { in count_segs() argument
53 if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols) return; in count_segs()
56 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, mi_params->mi_rows, in count_segs()
69 ? get_segment_id(mi_params, cm->last_frame_seg_map, bsize, mi_row, in count_segs()
89 unsigned *t_unpred_seg_counts, int mi_row, int mi_col, in count_segs_sb() argument
97 if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols) return; in count_segs_sb()
102 (cs_bw), (cs_bh), mi_row + (cs_rowoff), mi_col + (cs_coloff)); in count_segs_sb()
107 partition = get_partition(cm, mi_row, mi_col, bsize); in count_segs_sb()
142 if (mi_row + 3 * qbs < mi_params->mi_rows) CSEGS(bs, qbs, 3 * qbs, 0); in count_segs_sb()
163 mi_row + mi_dr, mi_col + mi_dc, subsize); in count_segs_sb()
[all …]
Dvar_based_part.c127 MACROBLOCKD *const xd, int mi_row, in set_block_size() argument
130 cpi->common.mi_params.mi_rows > mi_row) { in set_block_size()
132 mi_row, mi_col); in set_block_size()
140 BLOCK_SIZE bsize, int mi_row, int mi_col, in set_vt_partitioning() argument
160 mi_row + block_height <= tile->mi_row_end && in set_vt_partitioning()
162 set_block_size(cpi, x, xd, mi_row, mi_col, bsize); in set_vt_partitioning()
177 mi_row + block_height <= tile->mi_row_end && in set_vt_partitioning()
179 set_block_size(cpi, x, xd, mi_row, mi_col, bsize); in set_vt_partitioning()
183 if (mi_row + block_height <= tile->mi_row_end && in set_vt_partitioning()
192 set_block_size(cpi, x, xd, mi_row, mi_col, subsize); in set_vt_partitioning()
[all …]
Dtpl_model.c191 int frame_idx, int mi_row, int mi_col, BLOCK_SIZE bsize, TX_SIZE tx_size, in mode_estimation() argument
212 int mb_y_offset = mi_row * MI_SIZE * xd->cur_buf->y_stride + mi_col * MI_SIZE; in mode_estimation()
217 mi_row * MI_SIZE * tpl_frame->rec_picture->y_stride + mi_col * MI_SIZE; in mode_estimation()
237 mi_row, mi_col); in mode_estimation()
238 set_mi_row_col(xd, &xd->tile, mi_row, mi_height, mi_col, mi_width, in mode_estimation()
250 mi_row + tx_size_high_unit[tx_size] < xd->tile.mi_row_end) { in mode_estimation()
308 mi_row * MI_SIZE * ref_frame_ptr->y_stride + mi_col * MI_SIZE; in mode_estimation()
320 mi_row - mi_height, mi_col, tpl_frame->stride, block_mis_log2)]; in mode_estimation()
330 mi_row, mi_col - mi_width, tpl_frame->stride, block_mis_log2)]; in mode_estimation()
340 mi_row - mi_height, mi_col + mi_width, tpl_frame->stride, in mode_estimation()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodeframe.c62 int output_enabled, int mi_row, int mi_col,
165 int mi_row, int mi_col, in get_sby_perpixel_diff_variance() argument
173 &last->y_buffer[mi_row * MI_SIZE * last->y_stride + mi_col * MI_SIZE]; in get_sby_perpixel_diff_variance()
179 int mi_row, int mi_col) { in get_rd_var_based_fixed_partition() argument
181 cpi, &x->plane[0].src, mi_row, mi_col, BLOCK_64X64); in get_rd_var_based_fixed_partition()
193 static void set_segment_index(VP9_COMP *cpi, MACROBLOCK *const x, int mi_row, in set_segment_index() argument
212 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index()
223 vp9_get_sub_block_energy(cpi, x, mi_row, mi_col, bsize, &min_energy, in set_segment_index()
231 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index()
236 mi->segment_id = vp9_360aq_segment_id(mi_row, cm->mi_rows); in set_segment_index()
[all …]
Dvp9_skin_detection.c40 void vp9_compute_skin_sb(VP9_COMP *const cpi, BLOCK_SIZE bsize, int mi_row, in vp9_compute_skin_sb() argument
54 const int y_shift = src_ystride * (mi_row << 3) + (mi_col << 3); in vp9_compute_skin_sb()
55 const int uv_shift = src_uvstride * (mi_row << 2) + (mi_col << 2); in vp9_compute_skin_sb()
56 const int mi_row_limit = VPXMIN(mi_row + 8, cm->mi_rows - 2); in vp9_compute_skin_sb()
62 for (i = mi_row; i < mi_row_limit; i += fac) { in vp9_compute_skin_sb()
96 for (i = mi_row; i < mi_row_limit; i += fac) { in vp9_compute_skin_sb()
103 if ((i == mi_row && (j == mi_col || j == mi_col_limit - fac)) || in vp9_compute_skin_sb()
107 if (i == mi_row || i == mi_row_limit - fac || j == mi_col || in vp9_compute_skin_sb()
113 if (i + mi >= mi_row && i + mi < mi_row_limit && j + mj >= mi_col && in vp9_compute_skin_sb()
132 int i, j, mi_row, mi_col, num_bl; in vp9_output_skin_map() local
[all …]
Dvp9_segmentation.c162 int *t_unpred_seg_counts, int bw, int bh, int mi_row, in count_segs() argument
166 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs()
171 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs()
181 get_segment_id(cm, cm->last_frame_seg_map, bsize, mi_row, mi_col); in count_segs()
199 int *t_unpred_seg_counts, int mi_row, int mi_col, in count_segs_sb() argument
205 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb()
212 t_unpred_seg_counts, bs, bs, mi_row, mi_col); in count_segs_sb()
215 t_unpred_seg_counts, bs, hbs, mi_row, mi_col); in count_segs_sb()
218 mi_row + hbs, mi_col); in count_segs_sb()
221 t_unpred_seg_counts, hbs, bs, mi_row, mi_col); in count_segs_sb()
[all …]
Dvp9_aq_360.c30 unsigned int vp9_360aq_segment_id(int mi_row, int mi_rows) { in vp9_360aq_segment_id() argument
31 if (mi_row < mi_rows / 8 || mi_row > mi_rows - mi_rows / 8) in vp9_360aq_segment_id()
33 else if (mi_row < mi_rows / 4 || mi_row > mi_rows - mi_rows / 4) in vp9_360aq_segment_id()
Dvp9_noise_estimate.c179 int mi_row, mi_col; in vp9_update_noise_estimate() local
182 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate()
184 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
191 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate()
194 if (mi_row % 4 == 0 && mi_col % 4 == 0 && mi_row < cm->mi_rows - 1 && in vp9_update_noise_estimate()
196 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
Dvp9_rdopt.h35 struct macroblock *x, int mi_row, int mi_col,
46 int vp9_active_h_edge(struct VP9_COMP *cpi, int mi_row, int mi_step);
48 int vp9_active_edge_sb(struct VP9_COMP *cpi, int mi_row, int mi_col);
53 struct macroblock *x, int mi_row, int mi_col,
/external/libvpx/libvpx/vp9/common/
Dvp9_debugmodes.c27 int mi_row, mi_col; in print_mi_data() local
34 for (mi_row = 0; mi_row < rows; mi_row++) { in print_mi_data()
47 int mi_row; in vp9_print_modes_and_motion_vectors() local
62 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors()
76 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors()
Dvp9_loopfilter.h99 void vp9_setup_mask(struct VP9Common *const cm, const int mi_row,
105 int mi_row, LOOP_FILTER_MASK *lfm);
109 int mi_row, LOOP_FILTER_MASK *lfm);
113 MODE_INFO **mi_8x8, int mi_row, int mi_col);
128 const int mi_row, const int mi_col) { in get_lfm() argument
129 return &lf->lfm[(mi_col >> 3) + ((mi_row >> 3) * lf->lfm_stride)]; in get_lfm()
132 void vp9_build_mask(struct VP9Common *cm, const MODE_INFO *mi, int mi_row,
134 void vp9_adjust_mask(struct VP9Common *const cm, const int mi_row,
Dvp9_reconinter.h51 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col,
54 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col,
57 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col,
60 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col,
86 int stride, int mi_row, int mi_col, in setup_pred_plane() argument
90 const int y = (MI_SIZE * mi_row) >> subsampling_y; in setup_pred_plane()
96 const YV12_BUFFER_CONFIG *src, int mi_row,
100 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
Dvp9_mvref_common.c18 int_mv *mv_ref_list, int block, int mi_row, in find_mv_refs_idx() argument
27 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in find_mv_refs_idx()
39 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx()
60 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx()
87 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in find_mv_refs_idx()
135 int_mv *mv_ref_list, int mi_row, int mi_col, in vp9_find_mv_refs() argument
137 find_mv_refs_idx(cm, xd, mi, ref_frame, mv_ref_list, -1, mi_row, mi_col, in vp9_find_mv_refs()
154 int ref, int mi_row, int mi_col, in vp9_append_sub8x8_mvs_for_idx() argument
164 find_mv_refs_idx(cm, xd, mi, mi->ref_frame[ref], mv_list, block, mi_row, in vp9_append_sub8x8_mvs_for_idx()
Dvp9_loopfilter.c766 void vp9_adjust_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_adjust_mask() argument
790 if (mi_row + MI_BLOCK_SIZE > cm->mi_rows) { in vp9_adjust_mask()
791 const uint64_t rows = cm->mi_rows - mi_row; in vp9_adjust_mask()
882 void vp9_setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_setup_mask() argument
910 (mi_row + MI_BLOCK_SIZE > cm->mi_rows ? cm->mi_rows - mi_row in vp9_setup_mask()
1082 MODE_INFO **mi_8x8, int mi_row, int mi_col) { in vp9_filter_block_plane_non420() argument
1103 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420()
1128 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420()
1206 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420()
1207 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420()
[all …]
Dvp9_reconinter.c209 int mi_row, int mi_col, in build_inter_predictors_for_planes() argument
213 const int mi_y = mi_row * MI_SIZE; in build_inter_predictors_for_planes()
235 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sby() argument
237 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, 0); in vp9_build_inter_predictors_sby()
240 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbp() argument
242 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, plane, plane); in vp9_build_inter_predictors_sbp()
245 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbuv() argument
247 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 1, in vp9_build_inter_predictors_sbuv()
251 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sb() argument
253 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, in vp9_build_inter_predictors_sb()
[all …]
/external/libaom/libaom/av1/common/
Dav1_loopfilter.c193 const EDGE_DIR edge_dir, const int mi_row, in get_transform_size() argument
207 const int blk_row = mi_row & (mi_size_high[sb_type] - 1); in get_transform_size()
257 const int mi_row = scale_vert | ((y << scale_vert) >> MI_SIZE_LOG2); in set_lpf_parameters() local
260 cm->mi_params.mi_grid_base + mi_row * cm->mi_params.mi_stride + mi_col; in set_lpf_parameters()
268 get_transform_size(xd, mi[0], edge_dir, mi_row, mi_col, plane, plane_ptr); in set_lpf_parameters()
289 (VERT_EDGE == edge_dir) ? (mi_row) : (mi_row - (1 << scale_vert)); in set_lpf_parameters()
349 const uint32_t mi_row, const uint32_t mi_col) { in av1_filter_block_plane_vert() argument
364 const uint32_t curr_y = ((mi_row * MI_SIZE) >> scale_vert) + y * MI_SIZE; in av1_filter_block_plane_vert()
462 const uint32_t mi_row, const uint32_t mi_col) { in av1_filter_block_plane_horz() argument
477 const uint32_t curr_y = ((mi_row * MI_SIZE) >> scale_vert) + y * MI_SIZE; in av1_filter_block_plane_horz()
[all …]
Dav1_loopfilter.h144 const uint32_t mi_row, const uint32_t mi_col);
149 const uint32_t mi_row, const uint32_t mi_col);
166 int pl, int mi_row, int mi_col);
170 int mi_row, int mi_col);
172 int get_index_shift(int mi_col, int mi_row, int *index);
184 int pl, int mi_row, int mi_col);
188 int pl, int mi_row, int mi_col);
190 void av1_store_bitmask_univariant_tx(struct AV1Common *cm, int mi_row,
194 void av1_store_bitmask_other_info(struct AV1Common *cm, int mi_row, int mi_col,
199 void av1_store_bitmask_vartx(struct AV1Common *cm, int mi_row, int mi_col,
Ddebugmodes.c36 for (int mi_row = 0; mi_row < rows; mi_row++) { in print_mi_data() local
63 for (int mi_row = 0; mi_row < rows; mi_row++) { in av1_print_modes_and_motion_vectors() local
77 for (int mi_row = 0; mi_row < rows; mi_row++) { in av1_print_modes_and_motion_vectors() local
Dav1_common_int.h974 static INLINE void set_entropy_context(MACROBLOCKD *xd, int mi_row, int mi_col, in set_entropy_context() argument
977 int row_offset = mi_row; in set_entropy_context()
983 if (pd->subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1)) in set_entropy_context()
984 row_offset = mi_row - 1; in set_entropy_context()
1014 int mi_row, int bh, int mi_col, int bw, in set_mi_row_col() argument
1016 xd->mb_to_top_edge = -GET_MV_SUBPEL(mi_row * MI_SIZE); in set_mi_row_col()
1017 xd->mb_to_bottom_edge = GET_MV_SUBPEL((mi_rows - bh - mi_row) * MI_SIZE); in set_mi_row_col()
1021 xd->mi_row = mi_row; in set_mi_row_col()
1025 xd->up_available = (mi_row > tile->mi_row_start); in set_mi_row_col()
1036 xd->chroma_up_available = (mi_row - 1) > tile->mi_row_start; in set_mi_row_col()
[all …]
Dmvref_common.h68 static INLINE int is_inside(const TileInfo *const tile, int mi_col, int mi_row, in is_inside() argument
70 return !(mi_row + mi_pos->row < tile->mi_row_start || in is_inside()
72 mi_row + mi_pos->row >= tile->mi_row_end || in is_inside()
76 static INLINE int find_valid_row_offset(const TileInfo *const tile, int mi_row, in find_valid_row_offset() argument
78 return clamp(row_offset, tile->mi_row_start - mi_row, in find_valid_row_offset()
79 tile->mi_row_end - mi_row - 1); in find_valid_row_offset()
236 const MB_MODE_INFO *const mi, int mi_row, int mi_col,
265 int mib_size, int mi_row) { in av1_find_ref_dv() argument
266 if (mi_row - mib_size < tile->mi_row_start) { in av1_find_ref_dv()
277 const MACROBLOCKD *xd, int mi_row, int mi_col, in av1_is_dv_valid() argument
[all …]
Dobmc.h67 const int mi_row = xd->mi_row; in foreach_overlappable_nb_left() local
68 MB_MODE_INFO **prev_col_mi = xd->mi - 1 - mi_row * xd->mi_stride; in foreach_overlappable_nb_left()
69 const int end_row = AOMMIN(mi_row + xd->height, cm->mi_params.mi_rows); in foreach_overlappable_nb_left()
71 for (int left_mi_row = mi_row; left_mi_row < end_row && nb_count < nb_max; in foreach_overlappable_nb_left()
83 fun(xd, left_mi_row - mi_row, 0, AOMMIN(xd->height, mi_step), 1, *left_mi, in foreach_overlappable_nb_left()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodeframe.c393 int mi_row, int mi_col) { in reconstruct_inter_block() argument
409 mi_to_pixel_loc(&pixel_c, &pixel_r, mi_col, mi_row, col, row, in reconstruct_inter_block()
415 (void)mi_row; in reconstruct_inter_block()
716 MACROBLOCKD *xd, int mi_row, in dec_build_inter_predictors_sb() argument
720 const int mi_y = mi_row * MI_SIZE; in dec_build_inter_predictors_sb()
741 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in dec_build_inter_predictors_sb()
804 int mi_row, int mi_col, int bw, int bh, in set_offsets_recon() argument
806 const int offset = mi_row * cm->mi_stride + mi_col; in set_offsets_recon()
812 set_skip_context(xd, mi_row, mi_col); in set_offsets_recon()
816 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets_recon()
[all …]

12345