Home
last modified time | relevance | path

Searched refs:mi_rows (Results 1 – 25 of 86) 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()
232 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_sb_postencode()
271 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_cyclic_refresh_postencode()
301 fraction_low = (double)low_content_frame / (cm->mi_rows * cm->mi_cols); in vp9_cyclic_refresh_postencode()
371 memset(seg_map, CR_SEGMENT_ID_BASE, cm->mi_rows * cm->mi_cols); in cyclic_refresh_update_map()
373 sb_rows = (cm->mi_rows + MI_BLOCK_SIZE - 1) / MI_BLOCK_SIZE; in cyclic_refresh_update_map()
376 block_count = cr->percent_refresh * cm->mi_rows * cm->mi_cols / 100; in cyclic_refresh_update_map()
[all …]
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_encoder.c532 const int rows = cpi->common.mi_rows; in suppress_active_map()
557 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in apply_active_map()
603 memcpy(cpi->segmentation_map, roi->roi_map, (cm->mi_rows * cm->mi_cols)); in apply_roi_map()
697 const int frame_rows = cpi->common.mi_rows; in vp9_set_roi_map()
748 const int mi_rows = cpi->common.mi_rows; in vp9_set_active_map() local
753 for (r = 0; r < mi_rows; ++r) { in vp9_set_active_map()
776 const int mi_rows = cpi->common.mi_rows; in vp9_get_active_map() local
781 for (r = 0; r < mi_rows; ++r) { in vp9_get_active_map()
863 memset(cm->mip, 0, cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mip)); in vp9_enc_setup_mi()
868 for (i = 1; i < cm->mi_rows + 1; ++i) in vp9_enc_setup_mi()
[all …]
Dvp9_noise_estimate.c182 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate()
189 if (num_low_motion < ((3 * cm->mi_rows * cm->mi_cols) >> 3)) 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()
Dvp9_segmentation.c166 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()
205 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb()
271 for (mi_row = 0; mi_row < cm->mi_rows; in vp9_choose_segmap_coding_method()
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/libvpx/libvpx/vp9/common/
Dvp9_alloccommon.c20 void vp9_set_mi_size(int *mi_rows, int *mi_cols, int *mi_stride, int width, in vp9_set_mi_size() argument
25 *mi_rows = aligned_height >> MI_SIZE_LOG2; in vp9_set_mi_size()
29 void vp9_set_mb_size(int *mb_rows, int *mb_cols, int *mb_num, int mi_rows, in vp9_set_mb_size() argument
32 *mb_rows = (mi_rows + 1) >> 1; in vp9_set_mb_size()
37 vp9_set_mi_size(&cm->mi_rows, &cm->mi_cols, &cm->mi_stride, width, height); in vp9_set_mb_mi()
38 vp9_set_mb_size(&cm->mb_rows, &cm->mb_cols, &cm->MBs, cm->mi_rows, in vp9_set_mb_mi()
119 ((cm->mi_rows + (MI_BLOCK_SIZE - 1)) >> 3) * cm->lf.lfm_stride, in vp9_alloc_loop_filter()
129 new_mi_size = cm->mi_stride * calc_mi_size(cm->mi_rows); in vp9_alloc_context_buffers()
135 if (cm->seg_map_alloc_size < cm->mi_rows * cm->mi_cols) { in vp9_alloc_context_buffers()
138 if (alloc_seg_map(cm, cm->mi_rows * cm->mi_cols)) goto fail; in vp9_alloc_context_buffers()
[all …]
Dvp9_onyxc_int.h69 int mi_rows; member
159 int mb_rows, mi_rows; member
262 int mi_rows; member
277 frame_info->mi_rows = cm->mi_rows; in init_frame_info()
394 int mi_rows, int mi_cols) { in set_mi_row_col() argument
396 xd->mb_to_bottom_edge = ((mi_rows - bh - mi_row) * MI_SIZE) * 8; in set_mi_row_col()
Dvp9_alloccommon.h36 void vp9_set_mi_size(int *mi_rows, int *mi_cols, int *mi_stride, int width,
38 void vp9_set_mb_size(int *mb_rows, int *mb_cols, int *mb_num, int mi_rows,
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_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_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()
336 mi_cols_aligned_to_sb(cm->mi_rows) >> in vp9_loop_filter_alloc()
394 const int max_rows = cm->mi_rows; in get_next_row()
451 while ((mi_row = get_next_row(cm, lf_sync)) != -1 && mi_row < cm->mi_rows) { in vp9_loopfilter_rows()
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/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()
42 if (fd->mi_rows != mi_params->mi_rows || fd->mi_cols != mi_params->mi_cols) { in ifd_inspect()
44 ifd_init_mi_rc(fd, mi_params->mi_rows, mi_params->mi_cols); in ifd_inspect()
71 for (j = 0; j < mi_params->mi_rows; j++) { in ifd_inspect()
Ddecoder.c59 mi_params->mi_rows = aligned_height >> MI_SIZE_LOG2; in dec_set_mb_mi()
63 mi_params->mb_rows = (mi_params->mi_rows + 2) >> 2; in dec_set_mb_mi()
79 mi_params->mi_stride * calc_mi_size(mi_params->mi_rows); in dec_setup_mi()
507 (cm->mi_params.mi_rows == cm->prev_frame->mi_rows) && in av1_receive_compressed_data()
/external/libaom/libaom/av1/encoder/
Daq_cyclicrefresh.c22 CYCLIC_REFRESH *av1_cyclic_refresh_alloc(int mi_rows, int mi_cols) { in av1_cyclic_refresh_alloc() argument
27 cr->map = aom_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in av1_cyclic_refresh_alloc()
32 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in av1_cyclic_refresh_alloc()
167 const int ymis = AOMMIN(cm->mi_params.mi_rows - mi_row, bh); in av1_cyclic_refresh_update_segment()
217 for (int mi_row = 0; mi_row < mi_params->mi_rows; mi_row++) { in av1_cyclic_refresh_postencode()
237 100 * cr->cnt_zeromv / (mi_params->mi_rows * mi_params->mi_cols); in av1_cyclic_refresh_postencode()
269 memset(seg_map, CR_SEGMENT_ID_BASE, mi_params->mi_rows * mi_params->mi_cols); in cyclic_refresh_update_map()
272 sb_rows = (mi_params->mi_rows + cm->seq_params.mib_size - 1) / in cyclic_refresh_update_map()
277 cr->percent_refresh * mi_params->mi_rows * mi_params->mi_cols / 100; in cyclic_refresh_update_map()
299 assert(mi_row >= 0 && mi_row < mi_params->mi_rows); in cyclic_refresh_update_map()
[all …]
Daq_complexity.c74 memset(cpi->enc_seg.map, 0, cm->mi_params.mi_rows * cm->mi_params.mi_cols); in av1_setup_in_frame_q_adj()
87 cm->mi_params.mi_rows * cm->mi_params.mi_cols); in av1_setup_in_frame_q_adj()
139 const int ymis = AOMMIN(cm->mi_params.mi_rows - mi_row, mi_size_high[bs]); in av1_caq_select_segment()
Dsvc_layercontext.c27 int mi_rows = cpi->common.mi_params.mi_rows; in av1_init_layer_context() local
68 aom_malloc(mi_rows * mi_cols * sizeof(*lc->map))); in av1_init_layer_context()
69 memset(lc->map, 0, mi_rows * mi_cols); in av1_init_layer_context()
71 mi_rows * mi_cols * sizeof(*lc->last_coded_q_map); in av1_init_layer_context()
Dsegmentation.c53 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()
97 if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols) return; in count_segs_sb()
142 if (mi_row + 3 * qbs < mi_params->mi_rows) CSEGS(bs, qbs, 3 * qbs, 0); in count_segs_sb()
/external/libaom/libaom/av1/common/
Dtile_common.c35 const int mi_rows = in av1_get_tile_limits() local
36 ALIGN_POWER_OF_TWO(cm->mi_params.mi_rows, seq_params->mib_size_log2); in av1_get_tile_limits()
38 const int sb_rows = mi_rows >> seq_params->mib_size_log2; in av1_get_tile_limits()
55 int mi_rows = ALIGN_POWER_OF_TWO(cm_mi_rows, seq_params->mib_size_log2); in av1_calculate_tile_cols() local
57 int sb_rows = mi_rows >> seq_params->mib_size_log2; in av1_calculate_tile_cols()
108 int mi_rows = ALIGN_POWER_OF_TWO(cm_mi_rows, seq_params->mib_size_log2); in av1_calculate_tile_rows() local
109 int sb_rows = mi_rows >> seq_params->mib_size_log2; in av1_calculate_tile_rows()
138 tile->mi_row_end = AOMMIN(mi_row_end, cm->mi_params.mi_rows); in av1_tile_set_row()
Dav1_common_int.h140 int mi_rows; member
398 int mi_rows; member
892 const int buf_rows = buf->mi_rows; in ensure_mv_buffer()
896 if (buf->mvs == NULL || buf_rows != mi_params->mi_rows || in ensure_mv_buffer()
899 buf->mi_rows = mi_params->mi_rows; in ensure_mv_buffer()
902 (MV_REF *)aom_calloc(((mi_params->mi_rows + 1) >> 1) * in ensure_mv_buffer()
908 (uint8_t *)aom_calloc(mi_params->mi_rows * mi_params->mi_cols, in ensure_mv_buffer()
913 ((mi_params->mi_rows + MAX_MIB_SIZE) >> 1) * (mi_params->mi_stride >> 1); in ensure_mv_buffer()
1015 int mi_rows, int mi_cols) { in set_mi_row_col() argument
1017 xd->mb_to_bottom_edge = GET_MV_SUBPEL((mi_rows - bh - mi_row) * MI_SIZE); in set_mi_row_col()
[all …]
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()
223 const int aligned_mi_rows = calc_mi_size(mi_params->mi_rows); in alloc_mi()
289 ((cm->mi_params.mi_rows + (MI_SIZE_64X64 - 1)) >> MIN_MIB_SIZE_LOG2) * in av1_alloc_loop_filter_mask()
/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