/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodeframe.c | 52 int output_enabled, int mi_row, int mi_col, 167 int mi_row, int mi_col, in get_sby_perpixel_diff_variance() argument 175 &last->y_buffer[mi_row * MI_SIZE * last->y_stride + mi_col * MI_SIZE]; in get_sby_perpixel_diff_variance() 181 int mi_row, int mi_col) { in get_rd_var_based_fixed_partition() argument 183 cpi, &x->plane[0].src, mi_row, mi_col, BLOCK_64X64); in get_rd_var_based_fixed_partition() 199 int mi_col) { in set_mode_info_offsets() argument 200 const int idx_str = xd->mi_stride * mi_row + mi_col; in set_mode_info_offsets() 203 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets() 207 MACROBLOCK *const x, int mi_row, int mi_col, in set_offsets() argument 217 set_skip_context(xd, mi_row, mi_col); in set_offsets() [all …]
|
D | vp9_segmentation.c | 109 int mi_col) { in count_segs() argument 112 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() 127 get_segment_id(cm, cm->last_frame_seg_map, bsize, mi_row, mi_col); in count_segs() 145 int *t_unpred_seg_counts, int mi_row, int mi_col, in count_segs_sb() argument 151 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb() 158 t_unpred_seg_counts, bs, bs, mi_row, mi_col); in count_segs_sb() 161 t_unpred_seg_counts, bs, hbs, mi_row, mi_col); in count_segs_sb() 164 mi_row + hbs, mi_col); in count_segs_sb() 167 t_unpred_seg_counts, hbs, bs, mi_row, mi_col); in count_segs_sb() [all …]
|
D | vp9_noise_estimate.c | 172 int mi_row, mi_col; in vp9_update_noise_estimate() local 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() 185 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_update_noise_estimate() 187 if (mi_row % 4 == 0 && mi_col % 4 == 0 && mi_row < cm->mi_rows - 1 && 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()
|
D | vp9_rdopt.h | 34 struct macroblock *x, int mi_row, int mi_col, 45 int vp9_active_v_edge(struct VP9_COMP *cpi, int mi_col, int mi_step); 46 int vp9_active_edge_sb(struct VP9_COMP *cpi, int mi_row, int mi_col); 50 struct macroblock *x, int mi_row, int mi_col,
|
D | vp9_aq_cyclicrefresh.c | 149 int mi_row, int mi_col, BLOCK_SIZE bsize, in vp9_cyclic_refresh_update_segment() argument 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() 213 int mi_row, int mi_col, in vp9_cyclic_refresh_update_sb_postencode() argument 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() 256 int mi_row, mi_col; in vp9_cyclic_refresh_postencode() local 260 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in vp9_cyclic_refresh_postencode() 262 int map_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_postencode() 370 int mi_col = sb_col_index * MI_BLOCK_SIZE; in cyclic_refresh_update_map() local [all …]
|
D | vp9_denoiser.c | 185 int mi_col) { in block_start() argument 186 return framebuf + (stride * mi_row << 3) + (mi_col << 3); in block_start() 191 int increase_denoising, int mi_row, int mi_col, PICK_MODE_CONTEXT *ctx, in perform_motion_compensation() argument 271 denoiser->running_avg_y[frame].y_stride, mi_row, mi_col); in perform_motion_compensation() 275 denoiser->running_avg_y[frame].uv_stride, mi_row, mi_col); in perform_motion_compensation() 279 denoiser->running_avg_y[frame].uv_stride, mi_row, mi_col); in perform_motion_compensation() 284 denoiser->mc_running_avg_y.y_stride, mi_row, mi_col); in perform_motion_compensation() 288 denoiser->mc_running_avg_y.uv_stride, mi_row, mi_col); in perform_motion_compensation() 292 denoiser->mc_running_avg_y.uv_stride, mi_row, mi_col); in perform_motion_compensation() 296 vp9_build_inter_predictors_sby(filter_mbd, mi_row, mi_col, bs); in perform_motion_compensation() [all …]
|
D | vp9_aq_complexity.c | 111 int mi_row, int mi_col, int projected_rate) { in vp9_caq_select_segment() argument 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() 139 vp9_setup_src_planes(mb, cpi->Source, mi_row, mi_col); in vp9_caq_select_segment()
|
D | vp9_bitstream.c | 373 int mi_row, int mi_col, unsigned int *const max_mv_magnitude, in write_modes_b() argument 377 cpi->td.mb.mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in write_modes_b() 380 xd->mi = cm->mi_grid_visible + (mi_row * cm->mi_stride + mi_col); in write_modes_b() 384 mi_col, num_8x8_blocks_wide_lookup[m->sb_type], cm->mi_rows, in write_modes_b() 399 int mi_col, PARTITION_TYPE p, BLOCK_SIZE bsize, in write_partition() argument 401 const int ctx = partition_plane_context(xd, mi_row, mi_col, bsize); in write_partition() 404 const int has_cols = (mi_col + hbs) < cm->mi_cols; in write_partition() 422 int mi_row, int mi_col, BLOCK_SIZE bsize, in write_modes_sb() argument 432 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in write_modes_sb() 434 m = cm->mi_grid_visible[mi_row * cm->mi_stride + mi_col]; in write_modes_sb() [all …]
|
D | vp9_pickmode.c | 52 int mi_col, int use_base_mv) { in mv_refs_rt() argument 70 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 90 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 106 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in mv_refs_rt() 122 ->mvs[(mi_col >> 1) + (mi_row >> 1) * (cm->mi_cols >> 1)]; in mv_refs_rt() 144 BLOCK_SIZE bsize, int mi_row, int mi_col, in combined_motion_search() argument 169 vp9_setup_pre_planes(xd, 0, scaled_ref_frame, mi_row, mi_col, NULL); in combined_motion_search() 321 int mi_row, int mi_col, int *early_term) { in model_rd_for_sb_y_large() argument 477 vp9_build_inter_predictors_sbp(xd, mi_row, mi_col, bsize, i); in model_rd_for_sb_y_large() 850 int mi_row, int mi_col, in encode_breakout_test() argument [all …]
|
D | vp9_skin_detection.c | 111 int i, j, mi_row, mi_col, num_bl; in vp9_compute_skin_map() local 143 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()
|
D | vp9_pickmode.h | 24 int mi_row, int mi_col, RD_COST *rd_cost, 28 int mi_col, RD_COST *rd_cost, BLOCK_SIZE bsize,
|
D | vp9_mbgraph.c | 290 int mi_row, mi_col; in separate_arf_mbs() local 329 for (mi_col = 0; mi_col < cm->mi_cols; mi_col++) { in separate_arf_mbs() 332 if (arf_not_zz[mi_row / 2 * cm->mb_cols + mi_col / 2]) { 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()
|
D | vp9_aq_cyclicrefresh.h | 96 int mi_col, BLOCK_SIZE bsize, 102 int mi_row, int mi_col,
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_debugmodes.c | 27 int mi_row, mi_col; in print_mi_data() local 36 for (mi_col = 0; mi_col < cols; mi_col++) { in print_mi_data() 48 int mi_col; in vp9_print_modes_and_motion_vectors() local 64 for (mi_col = 0; mi_col < cols; mi_col++) { in vp9_print_modes_and_motion_vectors() 78 for (mi_col = 0; mi_col < cols; mi_col++) { in vp9_print_modes_and_motion_vectors()
|
D | vp9_reconinter.h | 51 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, 54 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col, 57 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, 60 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, 85 int stride, int mi_row, int mi_col, in setup_pred_plane() argument 88 const int x = (MI_SIZE * mi_col) >> subsampling_x; in setup_pred_plane() 96 int mi_col); 99 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
|
D | vp9_loopfilter.h | 100 const int mi_col, MODE_INFO **mi_8x8, 113 MODE_INFO **mi_8x8, int mi_row, int mi_col); 128 const int mi_row, const int mi_col) { in get_lfm() argument 129 return &lf->lfm[(mi_col >> 3) + ((mi_row >> 3) * lf->lfm_stride)]; in get_lfm() 133 int mi_col, int bw, int bh); 135 const int mi_col, LOOP_FILTER_MASK *lfm);
|
D | vp9_mvref_common.c | 19 int mi_col, uint8_t *mode_context) { in find_mv_refs_idx() argument 27 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in find_mv_refs_idx() 39 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() 135 int_mv *mv_ref_list, int mi_row, int mi_col, in vp9_find_mv_refs() argument 137 find_mv_refs_idx(cm, xd, mi, ref_frame, mv_ref_list, -1, mi_row, mi_col, in vp9_find_mv_refs() 154 int ref, int mi_row, int mi_col, in vp9_append_sub8x8_mvs_for_idx() argument 165 mi_col, mode_context); in vp9_append_sub8x8_mvs_for_idx()
|
D | vp9_onyxc_int.h | 378 static INLINE void set_skip_context(MACROBLOCKD *xd, int mi_row, int mi_col) { in set_skip_context() argument 379 const int above_idx = mi_col * 2; in set_skip_context() 395 int mi_row, int bh, int mi_col, int bw, in set_mi_row_col() argument 399 xd->mb_to_left_edge = -((mi_col * MI_SIZE) * 8); in set_mi_row_col() 400 xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8; in set_mi_row_col() 404 xd->left_mi = (mi_col > tile->mi_col_start) ? xd->mi[-1] : NULL; in set_mi_row_col() 408 int mi_col, BLOCK_SIZE subsize, in update_partition_context() argument 410 PARTITION_CONTEXT *const above_ctx = xd->above_seg_context + mi_col; in update_partition_context() 424 int mi_col, BLOCK_SIZE bsize) { in partition_plane_context() argument 425 const PARTITION_CONTEXT *above_ctx = xd->above_seg_context + mi_col; in partition_plane_context()
|
D | vp9_reconinter.c | 209 int mi_row, int mi_col, in build_inter_predictors_for_planes() argument 212 const int mi_x = mi_col * MI_SIZE; in build_inter_predictors_for_planes() 235 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sby() argument 237 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, 0); in vp9_build_inter_predictors_sby() 240 void vp9_build_inter_predictors_sbp(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbp() argument 242 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, plane, plane); in vp9_build_inter_predictors_sbp() 245 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sbuv() argument 247 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 1, in vp9_build_inter_predictors_sbuv() 251 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, in vp9_build_inter_predictors_sb() argument 253 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, in vp9_build_inter_predictors_sb() [all …]
|
D | vp9_mvref_common.h | 278 static INLINE int is_inside(const TileInfo *const tile, int mi_col, int mi_row, in is_inside() argument 281 mi_col + mi_pos->col < tile->mi_col_start || in is_inside() 283 mi_col + mi_pos->col >= tile->mi_col_end); in is_inside() 305 int_mv *mv_ref_list, int mi_row, int mi_col, 315 int ref, int mi_row, int mi_col,
|
D | vp9_loopfilter.c | 766 void vp9_adjust_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_adjust_mask() argument 819 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() 854 if (mi_col == 0) { in vp9_adjust_mask() 882 void vp9_setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_setup_mask() argument 913 (mi_col + MI_BLOCK_SIZE > cm->mi_cols ? cm->mi_cols - mi_col in vp9_setup_mask() 1082 MODE_INFO **mi_8x8, int mi_row, int mi_col) { in vp9_filter_block_plane_non420() argument 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() 1177 border_mask = ~(mi_col == 0); in vp9_filter_block_plane_non420() [all …]
|
D | vp9_thread_common.c | 94 int mi_row, mi_col; in thread_loop_filter_rows() local 110 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE, ++lfm) { in thread_loop_filter_rows() 112 const int c = mi_col >> MI_BLOCK_SIZE_LOG2; in thread_loop_filter_rows() 117 vp9_setup_dst_planes(planes, frame_buffer, mi_row, mi_col); in thread_loop_filter_rows() 119 vp9_adjust_mask(cm, mi_row, mi_col, lfm); in thread_loop_filter_rows() 131 vp9_filter_block_plane_non420(cm, &planes[plane], mi + mi_col, in thread_loop_filter_rows() 132 mi_row, mi_col); in thread_loop_filter_rows()
|
D | vp9_mfqe.c | 344 int mi_row, mi_col; in vp9_mfqe() local 351 for (mi_col = 0; mi_col < cm->mi_cols; mi_col += MI_BLOCK_SIZE) { in vp9_mfqe() 353 MODE_INFO *mi_local = cm->mi + (mi_row * cm->mi_stride + mi_col); in vp9_mfqe() 356 cm->postproc_state.prev_mi + (mi_row * cm->mi_stride + mi_col); in vp9_mfqe() 363 const uint32_t col_offset_y = mi_col << 3; in vp9_mfqe() 364 const uint32_t col_offset_uv = mi_col << 2; in vp9_mfqe()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 147 int mi_row, int mi_col, vpx_reader *r, in read_inter_segment_id() argument 152 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_inter_segment_id() 194 int mi_col, vpx_reader *r, int x_mis, in read_intra_frame_mode_info() argument 201 const int mi_offset = mi_row * cm->mi_cols + mi_col; in read_intra_frame_mode_info() 502 int_mv *mv_ref_list, int mi_row, int mi_col, in dec_find_mv_refs() argument 510 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in dec_find_mv_refs() 526 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 548 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 590 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 643 int ref, int mi_row, int mi_col, in append_sub8x8_mvs_for_idx() argument [all …]
|
D | vp9_decodeframe.c | 646 int mi_col) { in dec_build_inter_predictors_sb() argument 648 const int mi_x = mi_col * MI_SIZE; in dec_build_inter_predictors_sb() 672 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in dec_build_inter_predictors_sb() 735 BLOCK_SIZE bsize, int mi_row, int mi_col, int bw, in set_offsets() argument 737 const int offset = mi_row * cm->mi_stride + mi_col; in set_offsets() 753 set_skip_context(xd, mi_row, mi_col); in set_offsets() 757 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets() 759 vp9_setup_dst_planes(xd->plane, get_frame_new_buffer(cm), mi_row, mi_col); in set_offsets() 764 int mi_col, BLOCK_SIZE bsize, int bwl, int bhl) { in decode_block() argument 769 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in decode_block() [all …]
|