Home
last modified time | relevance | path

Searched refs:mi_rows (Results 1 – 25 of 77) sorted by relevance

1234

/external/libvpx/libvpx/vp9/encoder/
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_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()
168 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_segment()
231 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_sb_postencode()
270 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_cyclic_refresh_postencode()
300 fraction_low = (double)low_content_frame / (cm->mi_rows * cm->mi_cols); in vp9_cyclic_refresh_postencode()
370 memset(seg_map, CR_SEGMENT_ID_BASE, cm->mi_rows * cm->mi_cols); in cyclic_refresh_update_map()
372 sb_rows = (cm->mi_rows + MI_BLOCK_SIZE - 1) / MI_BLOCK_SIZE; in cyclic_refresh_update_map()
375 block_count = cr->percent_refresh * cm->mi_rows * cm->mi_cols / 100; in cyclic_refresh_update_map()
[all …]
Dvp9_noise_estimate.c118 int min_blocks_estimate = cm->mi_rows * cm->mi_cols >> 7; in vp9_update_noise_estimate()
186 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate()
193 if (num_low_motion < ((3 * cm->mi_rows * cm->mi_cols) >> 3)) in vp9_update_noise_estimate()
195 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate()
198 if (mi_row % 4 == 0 && mi_col % 4 == 0 && mi_row < cm->mi_rows - 1 && in vp9_update_noise_estimate()
Dvp9_multi_thread.c58 (mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2) + 1; in vp9_row_mt_alloc_rd_thresh()
74 const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2; in vp9_row_mt_mem_alloc()
175 const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2; in vp9_multi_thread_tile_init()
235 const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2; in vp9_prepare_job_queue()
242 jobs_per_tile_col = ((cm->mi_rows + TF_ROUND) >> TF_SHIFT); in vp9_prepare_job_queue()
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()
230 for (mi_row = 0; mi_row < cm->mi_rows; in vp9_choose_segmap_coding_method()
Dvp9_encoder.c511 const int rows = cpi->common.mi_rows; 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()
676 const int frame_rows = cpi->common.mi_rows; in vp9_set_roi_map()
727 const int mi_rows = cpi->common.mi_rows; in vp9_set_active_map() local
732 for (r = 0; r < mi_rows; ++r) { in vp9_set_active_map()
755 const int mi_rows = cpi->common.mi_rows; in vp9_get_active_map() local
760 for (r = 0; r < mi_rows; ++r) { in vp9_get_active_map()
822 memset(cm->mip, 0, cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mip)); in vp9_enc_setup_mi()
827 for (i = 1; i < cm->mi_rows + 1; ++i) in vp9_enc_setup_mi()
[all …]
Dvp9_aq_complexity.c61 memset(cpi->segmentation_map, DEFAULT_AQ2_SEG, cm->mi_rows * cm->mi_cols); in vp9_setup_in_frame_q_adj()
118 const int ymis = VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[bs]); in vp9_caq_select_segment()
/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
18 fd->mi_rows = mi_rows; in ifd_init_mi_rc()
19 fd->mi_grid = (insp_mi_data *)aom_malloc(sizeof(insp_mi_data) * fd->mi_rows * in ifd_init_mi_rc()
25 int mi_rows = ALIGN_POWER_OF_TWO(frame_height, 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()
69 for (j = 0; j < cm->mi_rows; j++) { in ifd_inspect()
/external/libaom/libaom/av1/common/
Dtile_common.c32 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_get_tile_limits() local
34 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_get_tile_limits()
49 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_calculate_tile_cols() local
51 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_calculate_tile_cols()
101 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_calculate_tile_rows() local
102 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_calculate_tile_rows()
117 cm->tile_height = AOMMIN(cm->tile_height, cm->mi_rows); in av1_calculate_tile_rows()
130 tile->mi_row_end = AOMMIN(mi_row_end, cm->mi_rows); in av1_tile_set_row()
Dalloccommon.c27 const int mi_rows = aligned_height >> MI_SIZE_LOG2; in av1_get_MBs() local
30 const int mb_rows = (mi_rows + 2) >> 2; in av1_get_MBs()
44 cm->lf.lfm_num = ((cm->mi_rows + (MI_SIZE_64X64 - 1)) >> MIN_MIB_SIZE_LOG2) * in alloc_loop_filter_mask()
76 cm->mi_rows = aligned_height >> MI_SIZE_LOG2; in av1_set_mb_mi()
80 cm->mb_rows = (cm->mi_rows + 2) >> 2; in av1_set_mb_mi()
278 new_mi_size = cm->mi_stride * calc_mi_size(cm->mi_rows); in av1_alloc_context_buffers()
Donyxc_int.h135 int mi_rows; member
378 int mb_rows, mi_rows; member
712 const int buf_rows = buf->mi_rows; in ensure_mv_buffer()
715 if (buf->mvs == NULL || buf_rows != cm->mi_rows || buf_cols != cm->mi_cols) { in ensure_mv_buffer()
717 buf->mi_rows = cm->mi_rows; 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()
730 ((cm->mi_rows + MAX_MIB_SIZE) >> 1) * (cm->mi_stride >> 1); in ensure_mv_buffer()
827 int mi_rows, int mi_cols) { in set_mi_row_col() argument
829 xd->mb_to_bottom_edge = ((mi_rows - bh - mi_row) * MI_SIZE) * 8; in set_mi_row_col()
[all …]
Ddebugmodes.c31 int rows = cm->mi_rows; in print_mi_data()
53 int rows = cm->mi_rows; in av1_print_modes_and_motion_vectors()
Dcdef.c28 maxr = cm->mi_rows - mi_row; in sb_all_skip()
57 int maxr = cm->mi_rows - mi_row; in sb_compute_cdef_list()
157 const int nvfb = (cm->mi_rows + MI_SIZE_64X64 - 1) / MI_SIZE_64X64; in av1_cdef_frame()
203 nvb = AOMMIN(MI_SIZE_64X64, cm->mi_rows - MI_SIZE_64X64 * fbr); in av1_cdef_frame()
221 frame_bottom = (mi_row + MI_SIZE_64X64 == cm->mi_rows) ? 1 : 0; in av1_cdef_frame()
/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()
208 const int ymis = AOMMIN(cm->mi_rows - mi_row, bh); in av1_cyclic_refresh_update_segment()
259 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) in av1_cyclic_refresh_postencode()
296 memset(seg_map, CR_SEGMENT_ID_BASE, cm->mi_rows * cm->mi_cols); in cyclic_refresh_update_map()
300 (cm->mi_rows + cm->seq_params.mib_size - 1) / cm->seq_params.mib_size; in cyclic_refresh_update_map()
303 block_count = cr->percent_refresh * cm->mi_rows * cm->mi_cols / 100; in cyclic_refresh_update_map()
322 assert(mi_row >= 0 && mi_row < cm->mi_rows); in cyclic_refresh_update_map()
327 ymis = AOMMIN(cm->mi_rows - mi_row, cm->seq_params.mib_size); 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()
126 const int ymis = AOMMIN(cm->mi_rows - mi_row, mi_size_high[bs]); in av1_caq_select_segment()
Dpartition_strategy.h99 x->mv_limits.row_max = (cm->mi_rows - mi_row) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_for_motion_search()
107 xd->mb_to_bottom_edge = ((cm->mi_rows - mi_height - mi_row) * MI_SIZE) * 8; in set_offsets_for_motion_search()
136 return (mi_row + sb_mi_high) <= cm->mi_rows && 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()
141 if (mi_row + 3 * qbs < cm->mi_rows) CSEGS(bs, qbs, 3 * qbs, 0); in count_segs_sb()
/external/libvpx/libvpx/vp9/common/
Dvp9_alloccommon.c25 cm->mi_rows = aligned_height >> MI_SIZE_LOG2; in vp9_set_mb_mi()
29 cm->mb_rows = (cm->mi_rows + 1) >> 1; in vp9_set_mb_mi()
110 ((cm->mi_rows + (MI_BLOCK_SIZE - 1)) >> 3) * cm->lf.lfm_stride, in vp9_alloc_loop_filter()
120 new_mi_size = cm->mi_stride * calc_mi_size(cm->mi_rows); in vp9_alloc_context_buffers()
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()
172 memset(cm->last_frame_seg_map, 0, cm->mi_rows * cm->mi_cols); in vp9_init_context_buffers()
Dvp9_loopfilter.c790 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()
910 (mi_row + MI_BLOCK_SIZE > cm->mi_rows ? cm->mi_rows - mi_row in vp9_setup_mask()
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()
1255 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += 2) { in vp9_filter_block_plane_ss00()
1288 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r++) { in vp9_filter_block_plane_ss00()
1344 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += 4) { in vp9_filter_block_plane_ss11()
[all …]
Dvp9_thread_common.c164 const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2; in loop_filter_rows_mt()
229 mi_rows_to_filter = cm->mi_rows; in vp9_loop_filter_frame_mt()
230 if (partial_frame && cm->mi_rows > 8) { in vp9_loop_filter_frame_mt()
231 start_mi_row = cm->mi_rows >> 1; in vp9_loop_filter_frame_mt()
233 mi_rows_to_filter = VPXMAX(cm->mi_rows / 8, 8); in vp9_loop_filter_frame_mt()
244 const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2; in vp9_lpf_mt_init()
333 mi_cols_aligned_to_sb(cm->mi_rows) >> in vp9_loop_filter_alloc()
388 const int max_rows = cm->mi_rows; in get_next_row()
445 while ((mi_row = get_next_row(cm, lf_sync)) != -1 && mi_row < cm->mi_rows) { in vp9_loopfilter_rows()
Dvp9_tile_common.c25 tile->mi_row_start = get_tile_offset(row, cm->mi_rows, cm->log2_tile_rows); in vp9_tile_set_row()
26 tile->mi_row_end = get_tile_offset(row + 1, cm->mi_rows, cm->log2_tile_rows); in vp9_tile_set_row()
Dvp9_onyxc_int.h69 int mi_rows; member
159 int mb_rows, mi_rows; member
374 int mi_rows, int mi_cols) { in set_mi_row_col() argument
376 xd->mb_to_bottom_edge = ((mi_rows - bh - mi_row) * MI_SIZE) * 8; in set_mi_row_col()
Dvp9_debugmodes.c29 int rows = cm->mi_rows; in print_mi_data()
51 int rows = cm->mi_rows; in vp9_print_modes_and_motion_vectors()
Dvp9_mvref_common.c39 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()
/external/libaom/libaom/examples/
Dinspect.c396 const int mi_rows = frame_data.mi_rows; in put_reference_frame() local
404 for (r = 0; r < mi_rows; ++r) { in put_reference_frame()
427 if (r < mi_rows - 1) *(buf++) = ','; in put_reference_frame()
434 const int mi_rows = frame_data.mi_rows; in put_motion_vectors() local
439 for (r = 0; r < mi_rows; ++r) { in put_motion_vectors()
466 if (r < mi_rows - 1) *(buf++) = ','; in put_motion_vectors()
473 const int mi_rows = frame_data.mi_rows; in put_combined() local
483 for (r = 0; r < mi_rows; ++r) { in put_combined()
498 if (r < mi_rows - 1) *(buf++) = ','; in put_combined()
506 const int mi_rows = frame_data.mi_rows; in put_block_info() local
[all …]

1234