/external/libvpx/libvpx/vp9/common/ |
D | vp9_alloccommon.c | 42 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() 131 if (cm->seg_map_alloc_size < cm->mi_rows * cm->mi_cols) { in vp9_alloc_context_buffers() 134 if (alloc_seg_map(cm, cm->mi_rows * cm->mi_cols)) in vp9_alloc_context_buffers() 138 if (cm->above_context_alloc_cols < cm->mi_cols) { in vp9_alloc_context_buffers() 141 2 * mi_cols_aligned_to_sb(cm->mi_cols) * MAX_MB_PLANE, in vp9_alloc_context_buffers() 147 mi_cols_aligned_to_sb(cm->mi_cols), sizeof(*cm->above_seg_context)); in vp9_alloc_context_buffers() 149 cm->above_context_alloc_cols = cm->mi_cols; in vp9_alloc_context_buffers() 171 memset(cm->last_frame_seg_map, 0, cm->mi_rows * cm->mi_cols); in vp9_init_context_buffers()
|
D | vp9_tile_common.c | 30 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() 53 void vp9_get_tile_n_bits(int mi_cols, in vp9_get_tile_n_bits() argument 55 const int sb64_cols = mi_cols_aligned_to_sb(mi_cols) >> MI_BLOCK_SIZE_LOG2; in vp9_get_tile_n_bits()
|
D | vp9_onyxc_int.h | 75 int mi_cols; member 179 int mb_cols, mi_cols; member 358 i * sizeof(*cm->above_context) * 2 * mi_cols_aligned_to_sb(cm->mi_cols); in vp9_init_macroblockd() 400 int mi_rows, int mi_cols) { in set_mi_row_col() argument 404 xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8; in set_mi_row_col()
|
D | vp9_pred_common.h | 24 const int mi_offset = mi_row * cm->mi_cols + mi_col; in get_segment_id() 27 const int xmis = MIN(cm->mi_cols - mi_col, bw); in get_segment_id() 34 segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id()
|
D | vp9_debugmodes.c | 30 int cols = cm->mi_cols; in print_mi_data() 54 int cols = cm->mi_cols; in vp9_print_modes_and_motion_vectors()
|
D | vp9_tile_common.h | 33 void vp9_get_tile_n_bits(int mi_cols,
|
D | vp9_entropymode.c | 433 memset(cm->last_frame_seg_map, 0, (cm->mi_rows * cm->mi_cols)); in vp9_setup_past_independence() 436 memset(cm->current_frame_seg_map, 0, (cm->mi_rows * cm->mi_cols)); in vp9_setup_past_independence()
|
D | vp9_loopfilter.c | 860 const int max_cols = (mi_col + MI_BLOCK_SIZE > cm->mi_cols ? in vp9_setup_mask() 861 cm->mi_cols - mi_col : MI_BLOCK_SIZE); in vp9_setup_mask() 1021 if (mi_col + MI_BLOCK_SIZE > cm->mi_cols) { in vp9_setup_mask() 1022 const uint64_t columns = cm->mi_cols - mi_col; in vp9_setup_mask() 1179 for (c = 0; c < MI_BLOCK_SIZE && mi_col + c < cm->mi_cols; c += col_step) { in vp9_filter_block_plane_non420() 1194 const int skip_border_4x4_c = ss_x && mi_col + c == cm->mi_cols - 1; in vp9_filter_block_plane_non420() 1552 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE) { in vp9_loop_filter_rows()
|
D | vp9_thread_common.c | 96 const int sb_cols = mi_cols_aligned_to_sb(cm->mi_cols) >> MI_BLOCK_SIZE_LOG2; in thread_loop_filter_rows() 112 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE) { in thread_loop_filter_rows()
|
D | vp9_mvref_common.c | 28 cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col : NULL; in find_mv_refs_idx()
|
D | vp9_mfqe.c | 360 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE) { in vp9_mfqe()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_aq_cyclicrefresh.c | 61 CYCLIC_REFRESH *vp9_cyclic_refresh_alloc(int mi_rows, int mi_cols) { in vp9_cyclic_refresh_alloc() argument 67 cr->map = vpx_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in vp9_cyclic_refresh_alloc() 72 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in vp9_cyclic_refresh_alloc() 99 const int number_blocks = cm->mi_rows * cm->mi_cols; in apply_cyclic_refresh_bitrate() 226 const int xmis = MIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment() 228 const int block_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_update_segment() 265 int map_offset = block_index + y * cm->mi_cols + x; in vp9_cyclic_refresh_update_segment() 287 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_cyclic_refresh_postencode() 289 seg_map[mi_row * cm->mi_cols + mi_col]) == CR_SEGMENT_ID_BOOST1) in vp9_cyclic_refresh_postencode() 292 seg_map[mi_row * cm->mi_cols + mi_col]) == CR_SEGMENT_ID_BOOST2) in vp9_cyclic_refresh_postencode() [all …]
|
D | vp9_aq_complexity.c | 60 memset(cpi->segmentation_map, DEFAULT_AQ2_SEG, cm->mi_rows * cm->mi_cols); in vp9_setup_in_frame_q_adj() 117 const int mi_offset = mi_row * cm->mi_cols + mi_col; in vp9_caq_select_segment() 120 const int xmis = MIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[bs]); in vp9_caq_select_segment() 161 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; in vp9_caq_select_segment()
|
D | vp9_encodeframe.c | 180 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets() 207 x->mv_col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND; in set_offsets() 212 cm->mi_rows, cm->mi_cols); in set_offsets() 248 if (mi_row + j < cm->mi_rows && mi_col + i < cm->mi_cols) in duplicate_mode_info_in_sb() 258 if (cpi->common.mi_cols > mi_col && cpi->common.mi_rows > mi_row) { in set_block_size() 418 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning() 436 if (mi_col + block_width / 2 < cm->mi_cols && in set_vt_partitioning() 457 if (mi_col + block_width / 2 < cm->mi_cols) { in set_vt_partitioning() 710 + (mi_col + 4 < cm->mi_cols) * 2 + (mi_row + 4 < cm->mi_rows); in choose_partitioning() 776 if (mi_col + block_width / 2 < cm->mi_cols && in choose_partitioning() [all …]
|
D | vp9_segmentation.c | 117 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in count_segs() 123 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs() 159 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in count_segs_sb()
|
D | vp9_encoder.c | 120 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in suppress_active_map() 140 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in apply_active_map() 168 const int mi_cols = cpi->common.mi_cols; in vp9_set_active_map() local 173 for (c = 0; c < mi_cols; ++c) { in vp9_set_active_map() 174 active_map_8x8[r * mi_cols + c] = in vp9_set_active_map() 198 const int mi_cols = cpi->common.mi_cols; in vp9_get_active_map() local 203 for (c = 0; c < mi_cols; ++c) { in vp9_get_active_map() 207 seg_map_8x8[r * mi_cols + c] != AM_SEGMENT_ID_INACTIVE; in vp9_get_active_map() 438 cm->last_frame_seg_map, (cm->mi_rows * cm->mi_cols)); in save_coding_context() 465 (cm->mi_rows * cm->mi_cols)); in restore_coding_context() [all …]
|
D | vp9_mbgraph.c | 342 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in separate_arf_mbs() 347 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 0; in separate_arf_mbs() 349 cpi->segmentation_map[mi_row * cm->mi_cols + mi_col] = 1; in separate_arf_mbs() 360 cpi->static_mb_pct = (ncnt[1] * 100) / (cm->mi_rows * cm->mi_cols); in separate_arf_mbs()
|
D | vp9_aq_cyclicrefresh.h | 35 CYCLIC_REFRESH *vp9_cyclic_refresh_alloc(int mi_rows, int mi_cols);
|
D | vp9_ethread.c | 56 int mi_cols = aligned_width >> MI_SIZE_LOG2; in get_max_tile_cols() local 60 vp9_get_tile_n_bits(mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in get_max_tile_cols()
|
D | vp9_bitstream.c | 389 (mi_row * cm->mi_cols + mi_col); in write_modes_b() 394 cm->mi_rows, cm->mi_cols); in write_modes_b() 412 const int has_cols = (mi_col + hbs) < cm->mi_cols; in write_partition() 440 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in write_modes_sb() 462 if (mi_col + bs < cm->mi_cols) in write_modes_sb() 887 vp9_get_tile_n_bits(cm->mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in write_tile_info() 939 sizeof(*cm->above_seg_context) * mi_cols_aligned_to_sb(cm->mi_cols)); in encode_tiles()
|
D | vp9_skin_detection.c | 86 for (mi_col = 0; mi_col < cm->mi_cols - 1; mi_col += fac) { in vp9_compute_skin_map()
|
D | vp9_temporal_filter.c | 706 if (cm->mi_cols * MI_SIZE != frames[frame]->y_width || in vp9_temporal_filter()
|
D | vp9_firstpass.c | 457 if (2 * mb_col + 1 < cm->mi_cols) { in get_bsize() 670 cm->mi_rows, cm->mi_cols); in vp9_first_pass()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 100 segment_ids[mi_offset + y * cm->mi_cols + x]); in dec_get_segment_id() 114 cm->current_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; in set_segment_id() 125 current_segment_ids[mi_offset + y * cm->mi_cols + x] = last_segment_ids ? in copy_segment_id() 126 last_segment_ids[mi_offset + y * cm->mi_cols + x] : 0; in copy_segment_id() 154 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_inter_segment_id() 159 const int x_mis = MIN(cm->mi_cols - mi_col, bw); in read_inter_segment_id() 210 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_intra_frame_mode_info() 215 const int x_mis = MIN(cm->mi_cols - mi_col, bw); in read_intra_frame_mode_info() 612 MV_REF* frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col; in vpx_read_mode_info() 621 MV_REF *const frame_mv = frame_mvs + h * cm->mi_cols; in vpx_read_mode_info()
|
D | vp9_decodeframe.c | 808 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets() 822 const int x_mis = MIN(bw, cm->mi_cols - mi_col); in decode_block() 960 const int has_cols = (mi_col + hbs) < cm->mi_cols; in decode_partition() 962 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) in decode_partition() 1193 cm->cur_frame->mi_cols = cm->mi_cols; in resize_mv_buffer() 1194 cm->cur_frame->mvs = (MV_REF *)vpx_calloc(cm->mi_rows * cm->mi_cols, in resize_mv_buffer() 1213 if (new_mi_cols > cm->mi_cols || new_mi_rows > cm->mi_rows) { in resize_context_buffers() 1225 cm->mi_cols > cm->cur_frame->mi_cols) { in resize_context_buffers() 1343 vp9_get_tile_n_bits(cm->mi_cols, &min_log2_tile_cols, &max_log2_tile_cols); in setup_tile_info() 1426 const int aligned_cols = mi_cols_aligned_to_sb(cm->mi_cols); in decode_tiles() [all …]
|