/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodeframe.c | 52 int output_enabled, int mi_row, int mi_col, 181 int mi_row, int mi_col, in get_sby_perpixel_diff_variance() argument 189 &last->y_buffer[mi_row * MI_SIZE * last->y_stride + mi_col * MI_SIZE]; in get_sby_perpixel_diff_variance() 195 int mi_row, int mi_col) { in get_rd_var_based_fixed_partition() argument 197 cpi, &x->plane[0].src, mi_row, mi_col, BLOCK_64X64); in get_rd_var_based_fixed_partition() 212 MACROBLOCKD *const xd, int mi_row, in set_mode_info_offsets() argument 214 const int idx_str = xd->mi_stride * mi_row + mi_col; in set_mode_info_offsets() 217 x->mbmi_ext = x->mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in set_mode_info_offsets() 221 MACROBLOCK *const x, int mi_row, int mi_col, in set_offsets() argument 231 set_skip_context(xd, mi_row, mi_col); in set_offsets() [all …]
|
D | vp9_segmentation.c | 108 int *t_unpred_seg_counts, int bw, int bh, int mi_row, 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_skin_detection.c | 40 void vp9_compute_skin_sb(VP9_COMP *const cpi, BLOCK_SIZE bsize, int mi_row, in vp9_compute_skin_sb() argument 54 const int y_shift = src_ystride * (mi_row << 3) + (mi_col << 3); in vp9_compute_skin_sb() 55 const int uv_shift = src_uvstride * (mi_row << 2) + (mi_col << 2); in vp9_compute_skin_sb() 56 const int mi_row_limit = VPXMIN(mi_row + 8, cm->mi_rows - 2); in vp9_compute_skin_sb() 62 for (i = mi_row; i < mi_row_limit; i += fac) { in vp9_compute_skin_sb() 96 for (i = mi_row; i < mi_row_limit; i += fac) { in vp9_compute_skin_sb() 103 if ((i == mi_row && (j == mi_col || j == mi_col_limit - fac)) || in vp9_compute_skin_sb() 107 if (i == mi_row || i == mi_row_limit - fac || j == mi_col || in vp9_compute_skin_sb() 113 if (i + mi >= mi_row && i + mi < mi_row_limit && j + mj >= mi_col && in vp9_compute_skin_sb() 132 int i, j, mi_row, mi_col, num_bl; in vp9_output_skin_map() local [all …]
|
D | vp9_aq_360.c | 30 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()
|
D | vp9_noise_estimate.c | 181 int mi_row, mi_col; in vp9_update_noise_estimate() local 184 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate() 186 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate() 193 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_update_noise_estimate() 196 if (mi_row % 4 == 0 && mi_col % 4 == 0 && mi_row < cm->mi_rows - 1 && in vp9_update_noise_estimate() 198 int bl_index = mi_row * cm->mi_cols + mi_col; in vp9_update_noise_estimate()
|
D | vp9_aq_cyclicrefresh.c | 149 int mi_row, int mi_col, BLOCK_SIZE bsize, in vp9_cyclic_refresh_update_segment() argument 157 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); 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 220 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); 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 259 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { in vp9_cyclic_refresh_postencode() 262 int map_index = mi_row * cm->mi_cols + mi_col; in vp9_cyclic_refresh_postencode() 369 int mi_row = sb_row_index * MI_BLOCK_SIZE; in cyclic_refresh_update_map() local [all …]
|
D | vp9_rdopt.h | 34 struct macroblock *x, int mi_row, int mi_col, 44 int vp9_active_h_edge(struct VP9_COMP *cpi, int mi_row, 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_denoiser.c | 182 static uint8_t *block_start(uint8_t *framebuf, int stride, int mi_row, in block_start() argument 184 return framebuf + (stride * mi_row << 3) + (mi_col << 3); in block_start() 189 int increase_denoising, int mi_row, int mi_col, PICK_MODE_CONTEXT *ctx, in perform_motion_compensation() argument 286 denoiser->running_avg_y[frame].y_stride, mi_row, mi_col); in perform_motion_compensation() 290 denoiser->running_avg_y[frame].uv_stride, mi_row, mi_col); in perform_motion_compensation() 294 denoiser->running_avg_y[frame].uv_stride, mi_row, mi_col); in perform_motion_compensation() 299 denoiser->mc_running_avg_y[denoise_layer_idx].y_stride, mi_row, mi_col); in perform_motion_compensation() 304 denoiser->mc_running_avg_y[denoise_layer_idx].uv_stride, mi_row, mi_col); in perform_motion_compensation() 309 denoiser->mc_running_avg_y[denoise_layer_idx].uv_stride, mi_row, mi_col); in perform_motion_compensation() 314 vp9_build_inter_predictors_sby(filter_mbd, mi_row, mi_col, bs); in perform_motion_compensation() [all …]
|
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() 383 set_mi_row_col(xd, tile, mi_row, num_8x8_blocks_high_lookup[m->sb_type], in write_modes_b() 398 const MACROBLOCKD *const xd, int hbs, int mi_row, in write_partition() argument 401 const int ctx = partition_plane_context(xd, mi_row, mi_col, bsize); in write_partition() 403 const int has_rows = (mi_row + hbs) < cm->mi_rows; 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 | 51 int_mv *mv_ref_list, int_mv *base_mv, int mi_row, 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 170 vp9_setup_pre_planes(xd, 0, scaled_ref_frame, mi_row, mi_col, NULL); in combined_motion_search() 333 int mi_row, int mi_col, int *early_term, in model_rd_for_sb_y_large() argument 490 vp9_build_inter_predictors_sbp(xd, mi_row, mi_col, bsize, i); in model_rd_for_sb_y_large() 866 VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bsize, int mi_row, int mi_col, in encode_breakout_test() argument [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() 118 const int ymis = VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_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_mbgraph.c | 290 int mi_row, mi_col; in separate_arf_mbs() local 328 for (mi_row = 0; mi_row < cm->mi_rows; mi_row++) { 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_pickmode.h | 24 int mi_row, int mi_col, RD_COST *rd_cost, 27 void vp9_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x, int mi_row,
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_debugmodes.c | 27 int mi_row, mi_col; in print_mi_data() local 34 for (mi_row = 0; mi_row < rows; mi_row++) { in print_mi_data() 47 int mi_row; in vp9_print_modes_and_motion_vectors() local 62 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors() 76 for (mi_row = 0; mi_row < rows; mi_row++) { in vp9_print_modes_and_motion_vectors()
|
D | vp9_loopfilter.h | 99 void vp9_setup_mask(struct VP9Common *const cm, const int mi_row, 105 int mi_row, LOOP_FILTER_MASK *lfm); 109 int mi_row, LOOP_FILTER_MASK *lfm); 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() 132 void vp9_build_mask(struct VP9Common *cm, const MODE_INFO *mi, int mi_row, 134 void vp9_adjust_mask(struct VP9Common *const cm, const int mi_row,
|
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 89 const int y = (MI_SIZE * mi_row) >> subsampling_y; in setup_pred_plane() 95 const YV12_BUFFER_CONFIG *src, int mi_row, 99 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
|
D | vp9_mvref_common.c | 18 int_mv *mv_ref_list, int block, int mi_row, 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 164 find_mv_refs_idx(cm, xd, mi, mi->ref_frame[ref], mv_list, block, mi_row, in vp9_append_sub8x8_mvs_for_idx()
|
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 790 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() 882 void vp9_setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col, in vp9_setup_mask() argument 910 (mi_row + MI_BLOCK_SIZE > cm->mi_rows ? cm->mi_rows - mi_row in vp9_setup_mask() 1082 MODE_INFO **mi_8x8, int mi_row, int mi_col) { in vp9_filter_block_plane_non420() argument 1097 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420() 1122 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420() 1200 for (r = 0; r < MI_BLOCK_SIZE && mi_row + r < cm->mi_rows; r += row_step) { in vp9_filter_block_plane_non420() 1201 const int skip_border_4x4_r = ss_y && mi_row + r == cm->mi_rows - 1; in vp9_filter_block_plane_non420() [all …]
|
D | vp9_reconinter.c | 209 int mi_row, int mi_col, in build_inter_predictors_for_planes() argument 213 const int mi_y = mi_row * 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_onyxc_int.h | 346 static INLINE void set_skip_context(MACROBLOCKD *xd, int mi_row, int mi_col) { in set_skip_context() argument 348 const int left_idx = (mi_row * 2) & 15; in set_skip_context() 363 int mi_row, int bh, int mi_col, int bw, in set_mi_row_col() argument 365 xd->mb_to_top_edge = -((mi_row * MI_SIZE) * 8); in set_mi_row_col() 366 xd->mb_to_bottom_edge = ((mi_rows - bh - mi_row) * MI_SIZE) * 8; in set_mi_row_col() 371 xd->above_mi = (mi_row != 0) ? xd->mi[-xd->mi_stride] : NULL; in set_mi_row_col() 375 static INLINE void update_partition_context(MACROBLOCKD *xd, int mi_row, in update_partition_context() argument 379 PARTITION_CONTEXT *const left_ctx = xd->left_seg_context + (mi_row & MI_MASK); in update_partition_context() 391 static INLINE int partition_plane_context(const MACROBLOCKD *xd, int mi_row, in partition_plane_context() argument 394 const PARTITION_CONTEXT *left_ctx = xd->left_seg_context + (mi_row & MI_MASK); in partition_plane_context()
|
D | vp9_thread_common.c | 94 int mi_row, mi_col; in thread_loop_filter_rows() local 105 for (mi_row = start; mi_row < stop; in thread_loop_filter_rows() 106 mi_row += lf_sync->num_workers * MI_BLOCK_SIZE) { in thread_loop_filter_rows() 107 MODE_INFO **const mi = cm->mi_grid_visible + mi_row * cm->mi_stride; in thread_loop_filter_rows() 108 LOOP_FILTER_MASK *lfm = get_lfm(&cm->lf, mi_row, 0); in thread_loop_filter_rows() 111 const int r = mi_row >> 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() 121 vp9_filter_block_plane_ss00(cm, &planes[0], mi_row, lfm); in thread_loop_filter_rows() 125 vp9_filter_block_plane_ss11(cm, &planes[plane], mi_row, lfm); in thread_loop_filter_rows() [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 280 return !(mi_row + mi_pos->row < 0 || in is_inside() 282 mi_row + mi_pos->row >= mi_rows || in is_inside() 302 typedef void (*find_mv_refs_sync)(void *const data, int mi_row); 305 int_mv *mv_ref_list, int mi_row, int mi_col, 315 int ref, int mi_row, int mi_col,
|
D | vp9_mfqe.c | 344 int mi_row, mi_col; in vp9_mfqe() local 350 for (mi_row = 0; mi_row < cm->mi_rows; mi_row += 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() 361 const uint32_t row_offset_y = mi_row << 3; in vp9_mfqe() 362 const uint32_t row_offset_uv = mi_row << 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() 193 MACROBLOCKD *const xd, int mi_row, 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() 496 int_mv *mv_ref_list, int mi_row, int mi_col, in dec_find_mv_refs() argument 503 ? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col in dec_find_mv_refs() 519 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 541 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 568 if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) { in dec_find_mv_refs() 621 int ref, int mi_row, int mi_col, in append_sub8x8_mvs_for_idx() argument [all …]
|
D | vp9_decodeframe.c | 631 MACROBLOCKD *xd, int mi_row, in dec_build_inter_predictors_sb() argument 635 const int mi_y = mi_row * MI_SIZE; in dec_build_inter_predictors_sb() 656 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in dec_build_inter_predictors_sb() 719 BLOCK_SIZE bsize, int mi_row, int mi_col, int bw, in set_offsets() argument 721 const int offset = mi_row * cm->mi_stride + mi_col; in set_offsets() 737 set_skip_context(xd, mi_row, mi_col); in set_offsets() 741 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in set_offsets() 743 vp9_setup_dst_planes(xd->plane, get_frame_new_buffer(cm), mi_row, mi_col); in set_offsets() 747 static void decode_block(TileWorkerData *twd, VP9Decoder *const pbi, int mi_row, in decode_block() argument 754 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in decode_block() [all …]
|