Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/vp9/common/
Dvp9_alloccommon.c42 cm->mi_cols = aligned_width >> MI_SIZE_LOG2; in vp9_set_mb_mi()
44 cm->mi_stride = calc_mi_size(cm->mi_cols); in vp9_set_mb_mi()
46 cm->mb_cols = (cm->mi_cols + 1) >> 1; in vp9_set_mb_mi()
129 cm->lf.lfm_stride = (cm->mi_cols + (MI_BLOCK_SIZE - 1)) >> 3; in vp9_alloc_loop_filter()
147 if (cm->seg_map_alloc_size < cm->mi_rows * cm->mi_cols) { in vp9_alloc_context_buffers()
150 if (alloc_seg_map(cm, cm->mi_rows * cm->mi_cols)) goto fail; in vp9_alloc_context_buffers()
153 if (cm->above_context_alloc_cols < cm->mi_cols) { in vp9_alloc_context_buffers()
156 2 * mi_cols_aligned_to_sb(cm->mi_cols) * MAX_MB_PLANE, in vp9_alloc_context_buffers()
162 mi_cols_aligned_to_sb(cm->mi_cols), sizeof(*cm->above_seg_context)); in vp9_alloc_context_buffers()
164 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.h74 int mi_cols; member
179 int mb_cols, mi_cols; member
356 i * sizeof(*cm->above_context) * 2 * mi_cols_aligned_to_sb(cm->mi_cols); in vp9_init_macroblockd()
396 int mi_rows, int mi_cols) { in set_mi_row_col() argument
400 xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8; in set_mi_row_col()
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()
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_tile_common.h33 void vp9_get_tile_n_bits(int mi_cols, int *min_log2_tile_cols,
Dvp9_entropymode.c432 memset(cm->last_frame_seg_map, 0, (cm->mi_rows * cm->mi_cols)); in vp9_setup_past_independence()
435 memset(cm->current_frame_seg_map, 0, (cm->mi_rows * cm->mi_cols)); in vp9_setup_past_independence()
Dvp9_loopfilter.c819 if (mi_col + MI_BLOCK_SIZE > cm->mi_cols) { in vp9_adjust_mask()
820 const uint64_t columns = cm->mi_cols - mi_col; in vp9_adjust_mask()
913 (mi_col + MI_BLOCK_SIZE > cm->mi_cols ? cm->mi_cols - mi_col in vp9_setup_mask()
1104 for (c = 0; c < MI_BLOCK_SIZE && mi_col + c < cm->mi_cols; c += col_step) { in vp9_filter_block_plane_non420()
1121 const int skip_border_4x4_c = ss_x && mi_col + c == cm->mi_cols - 1; in vp9_filter_block_plane_non420()
1436 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE, ++lfm) { in loop_filter_rows()
1500 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE) { in vp9_build_mask_frame()
Dvp9_thread_common.c93 const int sb_cols = mi_cols_aligned_to_sb(cm->mi_cols) >> MI_BLOCK_SIZE_LOG2; in thread_loop_filter_rows()
110 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE, ++lfm) { in thread_loop_filter_rows()
Dvp9_mvref_common.c27 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in find_mv_refs_idx()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_aq_cyclicrefresh.c24 CYCLIC_REFRESH *vp9_cyclic_refresh_alloc(int mi_rows, int mi_cols) { in vp9_cyclic_refresh_alloc() argument
29 cr->map = vpx_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in vp9_cyclic_refresh_alloc()
34 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in vp9_cyclic_refresh_alloc()
156 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment()
158 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_segment()
205 int map_offset = block_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_update_segment()
219 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_sb_postencode()
221 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_sb_postencode()
225 int map_offset = block_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_update_sb_postencode()
260 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_cyclic_refresh_postencode()
[all …]
Dvp9_noise_estimate.c109 int min_blocks_estimate = cm->mi_rows * cm->mi_cols >> 7; in vp9_update_noise_estimate()
176 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_update_noise_estimate()
177 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
182 if (num_low_motion < ((3 * cm->mi_rows * cm->mi_cols) >> 3)) in vp9_update_noise_estimate()
185 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_update_noise_estimate()
188 mi_col < cm->mi_cols - 1) { in vp9_update_noise_estimate()
189 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
191 int bl_index2 = bl_index + cm->mi_cols; in vp9_update_noise_estimate()
240 src_y += (src_ystride << 3) - (cm->mi_cols << 3); in vp9_update_noise_estimate()
241 last_src_y += (last_src_ystride << 3) - (cm->mi_cols << 3); in vp9_update_noise_estimate()
[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()
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_skin_detection.c143 for (mi_col = 0; mi_col < cm->mi_cols - 1; mi_col += fac) { in vp9_compute_skin_map()
166 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_compute_skin_map()
168 int bl_index2 = bl_index + cm->mi_cols; in vp9_compute_skin_map()
Dvp9_encodeframe.c203 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets()
231 mv_limits->col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND; in set_offsets()
236 cm->mi_cols); in set_offsets()
269 VPXMIN(num_8x8_blocks_wide_lookup[bsize], cm->mi_cols - mi_col); in duplicate_mode_info_in_sb()
283 if (cpi->common.mi_cols > mi_col && cpi->common.mi_rows > mi_row) { in set_block_size()
436 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning()
453 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning()
474 if (mi_col + block_width / 2 < cm->mi_cols) { in set_vt_partitioning()
726 if (!low_res && (mi_col >= 8 && mi_col + 8 < cm->mi_cols && mi_row >= 8 && in skin_sb_split()
735 const int block_index = mi_row * cm->mi_cols + mi_col; in skin_sb_split()
[all …]
Dvp9_segmentation.c112 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs()
117 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs()
151 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb()
Dvp9_mbgraph.c329 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in separate_arf_mbs()
334 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 0; in separate_arf_mbs()
336 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 1; in separate_arf_mbs()
347 cpi->static_mb_pct = (ncnt[1] * 100) / (cm->mi_rows * cm->mi_cols); in separate_arf_mbs()
Dvp9_encoder.c503 const int cols = cpi->common.mi_cols; in suppress_active_map()
527 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in apply_active_map()
587 const int mi_cols = cpi->common.mi_cols; in vp9_set_active_map() local
592 for (c = 0; c < mi_cols; ++c) { in vp9_set_active_map()
593 active_map_8x8[r * mi_cols + c] = in vp9_set_active_map()
615 const int mi_cols = cpi->common.mi_cols; in vp9_get_active_map() local
620 for (c = 0; c < mi_cols; ++c) { in vp9_get_active_map()
624 seg_map_8x8[r * mi_cols + c] != AM_SEGMENT_ID_INACTIVE; in vp9_get_active_map()
880 (cm->mi_rows * cm->mi_cols)); in save_coding_context()
906 (cm->mi_rows * cm->mi_cols)); in restore_coding_context()
[all …]
Dvp9_aq_cyclicrefresh.h77 CYCLIC_REFRESH *vp9_cyclic_refresh_alloc(int mi_rows, int mi_cols);
Dvp9_svc_layercontext.c26 int mi_cols = cpi->common.mi_cols; in vp9_init_layer_context() local
124 vpx_malloc(mi_rows * mi_cols * sizeof(*lc->map))); in vp9_init_layer_context()
125 memset(lc->map, 0, mi_rows * mi_cols); in vp9_init_layer_context()
127 mi_rows * mi_cols * sizeof(*lc->last_coded_q_map); in vp9_init_layer_context()
132 consec_zero_mv_size = mi_rows * mi_cols * sizeof(*lc->consec_zero_mv); in vp9_init_layer_context()
Dvp9_denoiser.c343 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_denoiser_denoise()
345 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_denoiser_denoise()
349 int bl_index = block_index + i * cm->mi_cols + j; in vp9_denoiser_denoise()
Dvp9_bitstream.c377 cpi->td.mb.mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in write_modes_b()
385 cm->mi_cols); in write_modes_b()
404 const int has_cols = (mi_col + hbs) < cm->mi_cols; in write_partition()
432 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in write_modes_sb()
458 if (mi_col + bs < cm->mi_cols) in write_modes_sb()
883 vp9_get_tile_n_bits(cm->mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in write_tile_info()
1049 sizeof(*cm->above_seg_context) * mi_cols_aligned_to_sb(cm->mi_cols)); in encode_tiles()
Dvp9_ethread.c60 int mi_cols = aligned_width >> MI_SIZE_LOG2; in get_max_tile_cols() local
64 vp9_get_tile_n_bits(mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in get_max_tile_cols()
/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()
510 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in dec_find_mv_refs()
839 MV_REF *frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col; in vp9_read_mode_info()
853 frame_mvs += cm->mi_cols; in vp9_read_mode_info()
Dvp9_decodeframe.c757 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets()
769 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in decode_block()
923 const int has_cols = (mi_col + hbs) < cm->mi_cols; in decode_partition()
926 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in decode_partition()
1145 cm->cur_frame->mi_cols = cm->mi_cols; in resize_mv_buffer()
1147 (MV_REF *)vpx_calloc(cm->mi_rows * cm->mi_cols, in resize_mv_buffer()
1166 if (new_mi_cols > cm->mi_cols || new_mi_rows > cm->mi_rows) { in resize_context_buffers()
1178 cm->mi_cols > cm->cur_frame->mi_cols) { in resize_context_buffers()
1303 vp9_get_tile_n_bits(cm->mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in setup_tile_info()
1375 const int aligned_cols = mi_cols_aligned_to_sb(cm->mi_cols); in decode_tiles()
[all …]

12