Lines Matching refs:mi_cols
20 void vp9_set_mi_size(int *mi_rows, int *mi_cols, int *mi_stride, int width, in vp9_set_mi_size() argument
24 *mi_cols = aligned_width >> MI_SIZE_LOG2; in vp9_set_mi_size()
26 *mi_stride = calc_mi_size(*mi_cols); in vp9_set_mi_size()
30 int mi_cols) { in vp9_set_mb_size() argument
31 *mb_cols = (mi_cols + 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()
39 cm->mi_cols); in vp9_set_mb_mi()
117 cm->lf.lfm_stride = (cm->mi_cols + (MI_BLOCK_SIZE - 1)) >> 3; in vp9_alloc_loop_filter()
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()
141 if (cm->above_context_alloc_cols < cm->mi_cols) { in vp9_alloc_context_buffers()
144 2 * mi_cols_aligned_to_sb(cm->mi_cols) * MAX_MB_PLANE, in vp9_alloc_context_buffers()
150 mi_cols_aligned_to_sb(cm->mi_cols), sizeof(*cm->above_seg_context)); in vp9_alloc_context_buffers()
152 cm->above_context_alloc_cols = cm->mi_cols; in vp9_alloc_context_buffers()
181 memset(cm->last_frame_seg_map, 0, cm->mi_rows * cm->mi_cols); in vp9_init_context_buffers()