Home
last modified time | relevance | path

Searched refs:mi_cols (Results 1 – 25 of 74) sorted by relevance

123

/external/libaom/libaom/av1/encoder/
Daq_cyclicrefresh.c62 CYCLIC_REFRESH *av1_cyclic_refresh_alloc(int mi_rows, int mi_cols) { in av1_cyclic_refresh_alloc() argument
67 cr->map = aom_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in av1_cyclic_refresh_alloc()
72 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in av1_cyclic_refresh_alloc()
207 const int xmis = AOMMIN(cm->mi_cols - mi_col, bw); in av1_cyclic_refresh_update_segment()
209 const int block_index = mi_row * cm->mi_cols + mi_col; in av1_cyclic_refresh_update_segment()
245 int map_offset = block_index + y * cm->mi_cols + x; in av1_cyclic_refresh_update_segment()
260 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in av1_cyclic_refresh_postencode()
261 if (cyclic_refresh_segment_id(seg_map[mi_row * cm->mi_cols + mi_col]) == in av1_cyclic_refresh_postencode()
265 seg_map[mi_row * cm->mi_cols + mi_col]) == in av1_cyclic_refresh_postencode()
296 memset(seg_map, CR_SEGMENT_ID_BASE, cm->mi_rows * cm->mi_cols); in cyclic_refresh_update_map()
[all …]
Daq_complexity.c59 memset(cpi->segmentation_map, 0, cm->mi_rows * cm->mi_cols); in av1_setup_in_frame_q_adj()
73 memset(cpi->segmentation_map, DEFAULT_AQ2_SEG, cm->mi_rows * cm->mi_cols); in av1_setup_in_frame_q_adj()
124 const int mi_offset = mi_row * cm->mi_cols + mi_col; in av1_caq_select_segment()
125 const int xmis = AOMMIN(cm->mi_cols - mi_col, mi_size_wide[bs]); in av1_caq_select_segment()
169 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; in av1_caq_select_segment()
Dpartition_strategy.h100 x->mv_limits.col_max = (cm->mi_cols - mi_col) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_for_motion_search()
109 xd->mb_to_right_edge = ((cm->mi_cols - mi_width - mi_col) * MI_SIZE) * 8; in set_offsets_for_motion_search()
137 (mi_col + sb_mi_wide) <= cm->mi_cols; in is_full_sb()
Dsegmentation.c54 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs()
59 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs()
96 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb()
148 if (mi_col + 3 * qbs < cm->mi_cols) CSEGS(qbs, bs, 0, 3 * qbs); in count_segs_sb()
Dpickcdef.c305 int nhfb = (cm->mi_cols + MI_SIZE_64X64 - 1) / MI_SIZE_64X64; in av1_cdef_search()
347 32, sizeof(*src) * cm->mi_rows * cm->mi_cols * MI_SIZE * MI_SIZE); in av1_cdef_search()
349 32, sizeof(*ref_coeff) * cm->mi_rows * cm->mi_cols * MI_SIZE * MI_SIZE); in av1_cdef_search()
354 stride[pli] = cm->mi_cols << MI_SIZE_LOG2; in av1_cdef_search()
361 (cm->mi_cols * MI_SIZE) >> xd->plane[pli].subsampling_x; in av1_cdef_search()
385 nhb = AOMMIN(MI_SIZE_64X64, cm->mi_cols - MI_SIZE_64X64 * fbc); in av1_cdef_search()
402 nhb = AOMMIN(MI_SIZE_128X128, cm->mi_cols - MI_SIZE_64X64 * fbc); in av1_cdef_search()
/external/libaom/libaom/av1/decoder/
Dinspection.c16 static void ifd_init_mi_rc(insp_frame_data *fd, int mi_cols, int mi_rows) { in ifd_init_mi_rc() argument
17 fd->mi_cols = mi_cols; in ifd_init_mi_rc()
20 fd->mi_cols); in ifd_init_mi_rc()
24 int mi_cols = ALIGN_POWER_OF_TWO(frame_width, 3) >> MI_SIZE_LOG2; in ifd_init() local
26 ifd_init_mi_rc(fd, mi_cols, mi_rows); in ifd_init()
40 if (fd->mi_rows != cm->mi_rows || fd->mi_cols != cm->mi_cols) { in ifd_inspect()
42 ifd_init_mi_rc(fd, cm->mi_rows, cm->mi_cols); in ifd_inspect()
70 for (i = 0; i < cm->mi_cols; i++) { in ifd_inspect()
72 insp_mi_data *mi = &fd->mi_grid[j * cm->mi_cols + i]; in ifd_inspect()
/external/libvpx/libvpx/vp9/common/
Dvp9_alloccommon.c24 cm->mi_cols = aligned_width >> MI_SIZE_LOG2; in vp9_set_mb_mi()
26 cm->mi_stride = calc_mi_size(cm->mi_cols); in vp9_set_mb_mi()
28 cm->mb_cols = (cm->mi_cols + 1) >> 1; in vp9_set_mb_mi()
108 cm->lf.lfm_stride = (cm->mi_cols + (MI_BLOCK_SIZE - 1)) >> 3; in vp9_alloc_loop_filter()
126 if (cm->seg_map_alloc_size < cm->mi_rows * cm->mi_cols) { in vp9_alloc_context_buffers()
129 if (alloc_seg_map(cm, cm->mi_rows * cm->mi_cols)) goto fail; in vp9_alloc_context_buffers()
132 if (cm->above_context_alloc_cols < cm->mi_cols) { in vp9_alloc_context_buffers()
135 2 * mi_cols_aligned_to_sb(cm->mi_cols) * MAX_MB_PLANE, in vp9_alloc_context_buffers()
141 mi_cols_aligned_to_sb(cm->mi_cols), sizeof(*cm->above_seg_context)); in vp9_alloc_context_buffers()
143 cm->above_context_alloc_cols = cm->mi_cols; in vp9_alloc_context_buffers()
[all …]
Dvp9_tile_common.c30 tile->mi_col_start = get_tile_offset(col, cm->mi_cols, cm->log2_tile_cols); in vp9_tile_set_col()
31 tile->mi_col_end = get_tile_offset(col + 1, cm->mi_cols, cm->log2_tile_cols); in vp9_tile_set_col()
51 void vp9_get_tile_n_bits(int mi_cols, int *min_log2_tile_cols, in vp9_get_tile_n_bits() argument
53 const int sb64_cols = mi_cols_aligned_to_sb(mi_cols) >> MI_BLOCK_SIZE_LOG2; in vp9_get_tile_n_bits()
Dvp9_onyxc_int.h70 int mi_cols; member
160 int mb_cols, mi_cols; member
334 i * sizeof(*cm->above_context) * 2 * mi_cols_aligned_to_sb(cm->mi_cols); in vp9_init_macroblockd()
374 int mi_rows, int mi_cols) { in set_mi_row_col() argument
378 xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8; in set_mi_row_col()
Dvp9_pred_common.h25 const int mi_offset = mi_row * cm->mi_cols + mi_col; in get_segment_id()
28 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in get_segment_id()
35 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id()
Dvp9_debugmodes.c30 int cols = cm->mi_cols; in print_mi_data()
52 int cols = cm->mi_cols; in vp9_print_modes_and_motion_vectors()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_aq_cyclicrefresh.c32 CYCLIC_REFRESH *vp9_cyclic_refresh_alloc(int mi_rows, int mi_cols) { in vp9_cyclic_refresh_alloc() argument
37 cr->map = vpx_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in vp9_cyclic_refresh_alloc()
42 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in vp9_cyclic_refresh_alloc()
167 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment()
169 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_segment()
216 int map_offset = block_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_update_segment()
230 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_sb_postencode()
232 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_sb_postencode()
236 int map_offset = block_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_update_sb_postencode()
271 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_cyclic_refresh_postencode()
[all …]
Dvp9_noise_estimate.c118 int min_blocks_estimate = cm->mi_rows * cm->mi_cols >> 7; in vp9_update_noise_estimate()
187 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_update_noise_estimate()
188 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
193 if (num_low_motion < ((3 * cm->mi_rows * cm->mi_cols) >> 3)) in vp9_update_noise_estimate()
196 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_update_noise_estimate()
199 mi_col < cm->mi_cols - 1) { in vp9_update_noise_estimate()
200 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
202 int bl_index2 = bl_index + cm->mi_cols; in vp9_update_noise_estimate()
249 src_y += (src_ystride << 3) - (cm->mi_cols << 3); in vp9_update_noise_estimate()
250 last_src_y += (last_src_ystride << 3) - (cm->mi_cols << 3); in vp9_update_noise_estimate()
[all …]
Dvp9_skin_detection.c57 const int mi_col_limit = VPXMIN(mi_col + 8, cm->mi_cols - 2); in vp9_compute_skin_sb()
66 int bl_index = i * cm->mi_cols + j; in vp9_compute_skin_sb()
68 int bl_index2 = bl_index + cm->mi_cols; in vp9_compute_skin_sb()
98 int bl_index = i * cm->mi_cols + j; in vp9_compute_skin_sb()
115 int bl_neighbor_index = (i + mi) * cm->mi_cols + j + mj; in vp9_compute_skin_sb()
156 for (mi_col = 0; mi_col < cm->mi_cols - 1; mi_col += fac) { in vp9_output_skin_map()
157 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_output_skin_map()
Dvp9_aq_complexity.c61 memset(cpi->segmentation_map, DEFAULT_AQ2_SEG, cm->mi_rows * cm->mi_cols); in vp9_setup_in_frame_q_adj()
114 const int mi_offset = mi_row * cm->mi_cols + mi_col; in vp9_caq_select_segment()
117 const int xmis = VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[bs]); in vp9_caq_select_segment()
157 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; in vp9_caq_select_segment()
Dvp9_encodeframe.c250 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets()
274 mv_limits->col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND; in set_offsets()
279 cm->mi_cols); in set_offsets()
296 VPXMIN(num_8x8_blocks_wide_lookup[bsize], cm->mi_cols - mi_col); in duplicate_mode_info_in_sb()
310 if (cpi->common.mi_cols > mi_col && cpi->common.mi_rows > mi_row) { in set_block_size()
465 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning()
482 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning()
503 if (mi_col + block_width / 2 < cm->mi_cols) { in set_vt_partitioning()
764 if (!low_res && (mi_col >= 8 && mi_col + 8 < cm->mi_cols && mi_row >= 8 && in skin_sb_split()
773 const int block_index = mi_row * cm->mi_cols + mi_col; in skin_sb_split()
[all …]
Dvp9_encoder.c512 const int cols = cpi->common.mi_cols; in suppress_active_map()
536 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in apply_active_map()
582 memcpy(cpi->segmentation_map, roi->roi_map, (cm->mi_rows * cm->mi_cols)); in apply_roi_map()
677 const int frame_cols = cpi->common.mi_cols; in vp9_set_roi_map()
728 const int mi_cols = cpi->common.mi_cols; in vp9_set_active_map() local
733 for (c = 0; c < mi_cols; ++c) { in vp9_set_active_map()
734 active_map_8x8[r * mi_cols + c] = in vp9_set_active_map()
756 const int mi_cols = cpi->common.mi_cols; in vp9_get_active_map() local
761 for (c = 0; c < mi_cols; ++c) { in vp9_get_active_map()
765 seg_map_8x8[r * mi_cols + c] != AM_SEGMENT_ID_INACTIVE; in vp9_get_active_map()
[all …]
Dvp9_segmentation.c125 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs()
130 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs()
164 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb()
/external/libaom/libaom/examples/
Dinspect.c397 const int mi_cols = frame_data.mi_cols; in put_reference_frame() local
406 for (c = 0; c < mi_cols; ++c) { in put_reference_frame()
407 insp_mi_data *mi = &frame_data.mi_grid[r * mi_cols + c]; in put_reference_frame()
411 for (t = c + 1; t < mi_cols; ++t) { in put_reference_frame()
412 insp_mi_data *next_mi = &frame_data.mi_grid[r * mi_cols + t]; in put_reference_frame()
424 if (c < mi_cols - 1) *(buf++) = ','; in put_reference_frame()
435 const int mi_cols = frame_data.mi_cols; in put_motion_vectors() local
441 for (c = 0; c < mi_cols; ++c) { in put_motion_vectors()
442 insp_mi_data *mi = &frame_data.mi_grid[r * mi_cols + c]; in put_motion_vectors()
448 for (t = c + 1; t < mi_cols; ++t) { in put_motion_vectors()
[all …]
/external/libaom/libaom/av1/common/
Dtile_common.c31 int mi_cols = ALIGN_POWER_OF_TWO(cm->mi_cols, cm->seq_params.mib_size_log2); in av1_get_tile_limits() local
33 int sb_cols = mi_cols >> cm->seq_params.mib_size_log2; in av1_get_tile_limits()
48 int mi_cols = ALIGN_POWER_OF_TWO(cm->mi_cols, cm->seq_params.mib_size_log2); in av1_calculate_tile_cols() local
50 int sb_cols = mi_cols >> cm->seq_params.mib_size_log2; in av1_calculate_tile_cols()
73 cm->tile_width = AOMMIN(cm->tile_width, cm->mi_cols); in av1_calculate_tile_cols()
141 tile->mi_col_end = AOMMIN(mi_col_end, cm->mi_cols); in av1_tile_set_col()
Dalloccommon.c26 const int mi_cols = aligned_width >> MI_SIZE_LOG2; in av1_get_MBs() local
29 const int mb_cols = (mi_cols + 2) >> 2; in av1_get_MBs()
43 cm->lf.lfm_stride = (cm->mi_cols + (MI_SIZE_64X64 - 1)) >> MIN_MIB_SIZE_LOG2; in alloc_loop_filter_mask()
75 cm->mi_cols = aligned_width >> MI_SIZE_LOG2; in av1_set_mb_mi()
77 cm->mi_stride = calc_mi_size(cm->mi_cols); in av1_set_mb_mi()
79 cm->mb_cols = (cm->mi_cols + 2) >> 2; in av1_set_mb_mi()
235 ALIGN_POWER_OF_TWO(cm->mi_cols, MAX_MIB_SIZE_LOG2); in av1_alloc_above_context_buffers()
Donyxc_int.h136 int mi_cols; member
379 int mb_cols, mi_cols; member
713 const int buf_cols = buf->mi_cols; in ensure_mv_buffer()
715 if (buf->mvs == NULL || buf_rows != cm->mi_rows || buf_cols != cm->mi_cols) { in ensure_mv_buffer()
718 buf->mi_cols = cm->mi_cols; in ensure_mv_buffer()
721 ((cm->mi_rows + 1) >> 1) * ((cm->mi_cols + 1) >> 1), in ensure_mv_buffer()
725 (uint8_t *)aom_calloc(cm->mi_rows * cm->mi_cols, in ensure_mv_buffer()
827 int mi_rows, int mi_cols) { in set_mi_row_col() argument
831 xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8; in set_mi_row_col()
1279 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return PARTITION_INVALID; in get_partition()
[all …]
Dcdef.c27 maxc = cm->mi_cols - mi_col; in sb_all_skip()
56 int maxc = cm->mi_cols - mi_col; in sb_compute_cdef_list()
158 const int nhfb = (cm->mi_cols + MI_SIZE_64X64 - 1) / MI_SIZE_64X64; in av1_cdef_frame()
171 const int stride = (cm->mi_cols << MI_SIZE_LOG2) + 2 * CDEF_HBORDER; in av1_cdef_frame()
202 nhb = AOMMIN(MI_SIZE_64X64, cm->mi_cols - MI_SIZE_64X64 * fbc); in av1_cdef_frame()
226 frame_right = (mi_col + MI_SIZE_64X64 == cm->mi_cols) ? 1 : 0; in av1_cdef_frame()
Ddebugmodes.c32 int cols = cm->mi_cols; in print_mi_data()
54 int cols = cm->mi_cols; in av1_print_modes_and_motion_vectors()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c98 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in dec_get_segment_id()
112 cm->current_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; in set_segment_id()
123 current_segment_ids[mi_offset + y * cm->mi_cols + x] = in copy_segment_id()
124 last_segment_ids ? last_segment_ids[mi_offset + y * cm->mi_cols + x] in copy_segment_id()
152 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_inter_segment_id()
201 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_intra_frame_mode_info()
503 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in dec_find_mv_refs()
816 MV_REF *frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col; in vp9_read_mode_info()
830 frame_mvs += cm->mi_cols; in vp9_read_mode_info()

123