/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/ |
D | decodemv.c | 54 mi->mbmi.ref_frame = INTRA_FRAME; in read_kf_modes() 55 mi->mbmi.mode = read_kf_ymode(bc, vp8_kf_ymode_prob); in read_kf_modes() 57 if (mi->mbmi.mode == B_PRED) in read_kf_modes() 60 mi->mbmi.is_4x4 = 1; in read_kf_modes() 73 mi->mbmi.uv_mode = read_uv_mode(bc, vp8_kf_uv_mode_prob); in read_kf_modes() 232 MB_MODE_INFO *mbmi, int_mv best_mv, in decode_split_mv() argument 267 if(left_mb->mbmi.mode != SPLITMV) in decode_split_mv() 268 leftmv.as_int = left_mb->mbmi.mv.as_int; in decode_split_mv() 278 if(above_mb->mbmi.mode != SPLITMV) in decode_split_mv() 279 abovemv.as_int = above_mb->mbmi.mv.as_int; in decode_split_mv() [all …]
|
D | error_concealment.c | 290 MV * const filtered_mv = &(mi->mbmi.mv.as_mv); in estimate_mb_mvs() 294 mi->mbmi.need_to_clamp_mvs = 0; in estimate_mb_mvs() 307 mi->mbmi.need_to_clamp_mvs |= vp8_check_mv_bounds( in estimate_mb_mvs() 364 if (prev_mi->mbmi.ref_frame == LAST_FRAME) in estimate_missing_mvs() 391 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs() 392 mi->mbmi.mode = SPLITMV; in estimate_missing_mvs() 393 mi->mbmi.uv_mode = DC_PRED; in estimate_missing_mvs() 394 mi->mbmi.partitioning = 3; in estimate_missing_mvs() 395 mi->mbmi.segment_id = 0; in estimate_missing_mvs() 420 assert(mi->mbmi.ref_frame < MAX_REF_FRAMES); in assign_neighbor() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 107 const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in read_intra_segment_id() 124 MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in read_inter_segment_id() local 125 const BLOCK_SIZE bsize = mbmi->sb_type; in read_inter_segment_id() 138 mbmi->seg_id_predicted = vp9_read(r, pred_prob); in read_inter_segment_id() 139 segment_id = mbmi->seg_id_predicted ? predicted_segment_id in read_inter_segment_id() 165 MB_MODE_INFO *const mbmi = &mi->mbmi; in read_intra_frame_mode_info() local 168 const BLOCK_SIZE bsize = mbmi->sb_type; in read_intra_frame_mode_info() 171 mbmi->segment_id = read_intra_segment_id(cm, xd, mi_row, mi_col, r); in read_intra_frame_mode_info() 172 mbmi->skip = read_skip(cm, xd, mbmi->segment_id, r); in read_intra_frame_mode_info() 173 mbmi->tx_size = read_tx_size(cm, xd, cm->tx_mode, bsize, 1, r); in read_intra_frame_mode_info() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_pickmode.c | 34 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in full_pixel_motion_search() local 39 int ref = mbmi->ref_frame[0]; in full_pixel_motion_search() 40 const MV ref_mv = mbmi->ref_mvs[ref][0].as_mv; in full_pixel_motion_search() 81 mvp_full = mbmi->ref_mvs[ref][x->mv_best_ref_index[ref]].as_mv; in full_pixel_motion_search() 138 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in sub_pixel_motion_search() local 140 int ref = mbmi->ref_frame[0]; in sub_pixel_motion_search() 141 MV ref_mv = mbmi->ref_mvs[ref][0].as_mv; in sub_pixel_motion_search() 210 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in vp9_pick_inter_mode() local 232 unsigned char segment_id = mbmi->segment_id; in vp9_pick_inter_mode() 246 vpx_memset(mbmi, 0, sizeof(MB_MODE_INFO)); in vp9_pick_inter_mode() [all …]
|
D | vp9_rdopt.c | 435 const int ref = xd->mi[0]->mbmi.ref_frame[0]; in model_rd_for_sb() 559 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in cost_coeffs() local 567 x->token_costs[tx_size][type][is_inter_block(mbmi)]; in cost_coeffs() 572 assert(type == PLANE_TYPE_Y ? mbmi->tx_size == tx_size in cost_coeffs() 573 : get_uv_tx_size(mbmi) == tx_size); in cost_coeffs() 641 if (x->skip_encode && !is_inter_block(&xd->mi[0]->mbmi)) { in dist_block() 666 MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in block_rd_txfm() local 672 if (!is_inter_block(mbmi)) in block_rd_txfm() 673 vp9_encode_block_intra(x, plane, block, plane_bsize, tx_size, &mbmi->skip); in block_rd_txfm() 752 xd->mi[0]->mbmi.tx_size = tx_size; in txfm_rd_in_plane() [all …]
|
D | vp9_aq_cyclicrefresh.c | 95 const MB_MODE_INFO *mbmi, in candidate_refresh_aq() argument 108 (mbmi->mv[0].as_int != 0 && in candidate_refresh_aq() 110 !is_inter_block(mbmi)) in candidate_refresh_aq() 117 mbmi->mv[0].as_int != 0 || in candidate_refresh_aq() 118 !is_inter_block(mbmi)) in candidate_refresh_aq() 129 MB_MODE_INFO *const mbmi, in vp9_cyclic_refresh_update_segment() argument 139 const int refresh_this_block = candidate_refresh_aq(cr, mbmi, bsize, use_rd); in vp9_cyclic_refresh_update_segment() 145 if (mbmi->segment_id > 0 && !refresh_this_block) in vp9_cyclic_refresh_update_segment() 146 mbmi->segment_id = 0; in vp9_cyclic_refresh_update_segment() 152 if (mbmi->segment_id == 1) { in vp9_cyclic_refresh_update_segment() [all …]
|
D | vp9_encodemv.c | 232 static void inc_mvs(const MB_MODE_INFO *mbmi, const int_mv mvs[2], in inc_mvs() argument 236 for (i = 0; i < 1 + has_second_ref(mbmi); ++i) { in inc_mvs() 237 const MV *ref = &mbmi->ref_mvs[mbmi->ref_frame[i]][0].as_mv; in inc_mvs() 246 const MB_MODE_INFO *const mbmi = &mi->mbmi; in vp9_update_mv_count() local 248 if (mbmi->sb_type < BLOCK_8X8) { in vp9_update_mv_count() 249 const int num_4x4_w = num_4x4_blocks_wide_lookup[mbmi->sb_type]; in vp9_update_mv_count() 250 const int num_4x4_h = num_4x4_blocks_high_lookup[mbmi->sb_type]; in vp9_update_mv_count() 257 inc_mvs(mbmi, mi->bmi[i].as_mv, &cm->counts.mv); in vp9_update_mv_count() 261 if (mbmi->mode == NEWMV) in vp9_update_mv_count() 262 inc_mvs(mbmi, mbmi->mv, &cm->counts.mv); in vp9_update_mv_count()
|
D | vp9_encodeframe.c | 212 MB_MODE_INFO *mbmi; in set_offsets() local 228 mbmi = &xd->mi[0]->mbmi; in set_offsets() 257 mbmi->segment_id = vp9_get_segment_id(cm, map, bsize, mi_row, mi_col); in set_offsets() 277 x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id]; in set_offsets() 279 mbmi->segment_id = 0; in set_offsets() 306 xd->mi[0]->mbmi.sb_type = bsize; in set_block_size() 503 xd->mi[0]->mbmi.ref_frame[0] = LAST_FRAME; in choose_partitioning() 504 xd->mi[0]->mbmi.sb_type = BLOCK_64X64; in choose_partitioning() 506 xd->mi[0]->mbmi.ref_mvs[LAST_FRAME], in choose_partitioning() 509 xd->mi[0]->mbmi.mv[0] = nearest_mv; in choose_partitioning() [all …]
|
D | vp9_bitstream.c | 103 const int skip = mi->mbmi.skip; in write_skip() 195 const MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in write_ref_frames() local 196 const int is_compound = has_second_ref(mbmi); in write_ref_frames() 197 const int segment_id = mbmi->segment_id; in write_ref_frames() 203 assert(mbmi->ref_frame[0] == in write_ref_frames() 215 vp9_write(w, mbmi->ref_frame[0] == GOLDEN_FRAME, in write_ref_frames() 218 const int bit0 = mbmi->ref_frame[0] != LAST_FRAME; in write_ref_frames() 221 const int bit1 = mbmi->ref_frame[0] != GOLDEN_FRAME; in write_ref_frames() 235 const MB_MODE_INFO *const mbmi = &mi->mbmi; in pack_inter_mode_mvs() local 236 const MB_PREDICTION_MODE mode = mbmi->mode; in pack_inter_mode_mvs() [all …]
|
D | vp9_encodemb.c | 114 const int ref = is_inter_block(&xd->mi[0]->mbmi); in optimize_b() 142 if (!is_inter_block(&mb->e_mbd.mi[0]->mbmi)) in optimize_b() 455 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in vp9_encode_sb() local 456 struct encode_b_args arg = {x, &ctx, &mbmi->skip}; in vp9_encode_sb() 465 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) : mbmi->tx_size; in vp9_encode_sb() 480 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in encode_block_intra() local 505 mode = plane == 0 ? mbmi->mode : mbmi->uv_mode; in encode_block_intra() 525 mode = plane == 0 ? mbmi->mode : mbmi->uv_mode; in encode_block_intra() 545 mode = plane == 0 ? mbmi->mode : mbmi->uv_mode; in encode_block_intra() 565 mode = plane == 0 ? get_y_mode(xd->mi[0], block) : mbmi->uv_mode; in encode_block_intra() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
D | findnearmv.c | 49 if (above->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs() 51 if (above->mbmi.mv.as_int) in vp8_find_near_mvs() 53 (++mv)->as_int = above->mbmi.mv.as_int; in vp8_find_near_mvs() 54 mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, mv, ref_frame_sign_bias); in vp8_find_near_mvs() 62 if (left->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs() 64 if (left->mbmi.mv.as_int) in vp8_find_near_mvs() 68 this_mv.as_int = left->mbmi.mv.as_int; in vp8_find_near_mvs() 69 … mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &this_mv, ref_frame_sign_bias); in vp8_find_near_mvs() 84 if (aboveleft->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs() 86 if (aboveleft->mbmi.mv.as_int) in vp8_find_near_mvs() [all …]
|
D | loopfilter.c | 212 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_normal() 213 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_normal() 214 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_normal() 216 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_normal() 217 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal() 218 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_normal() 269 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_simple() 270 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_simple() 271 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_simple() 273 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_simple() [all …]
|
D | debugmodes.c | 33 fprintf(mvs, "%2d ", mi[mb_index].mbmi.mode); in vp8_print_modes_and_motion_vectors() 52 fprintf(mvs, "%2d ", mi[mb_index].mbmi.ref_frame); in vp8_print_modes_and_motion_vectors() 72 fprintf(mvs, "%2d ", mi[mb_index].mbmi.uv_mode); in vp8_print_modes_and_motion_vectors() 99 if (mi[mb_index].mbmi.mode == B_PRED) in vp8_print_modes_and_motion_vectors() 119 … fprintf(mvs, "%5d:%-5d", mi[mb_index].mbmi.mv.as_mv.row / 2, mi[mb_index].mbmi.mv.as_mv.col / 2); in vp8_print_modes_and_motion_vectors()
|
D | findnearmv.h | 111 if(cur_mb->mbmi.mode != SPLITMV) in left_block_mv() 112 return cur_mb->mbmi.mv.as_int; in left_block_mv() 126 if(cur_mb->mbmi.mode != SPLITMV) in above_block_mv() 127 return cur_mb->mbmi.mv.as_int; in above_block_mv() 139 switch (cur_mb->mbmi.mode) in left_block_mode() 166 switch (cur_mb->mbmi.mode) in above_block_mode()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_mvref_common.c | 129 return block_idx >= 0 && candidate->mbmi.sb_type < BLOCK_8X8 in get_sub_block_mv() 132 : candidate->mbmi.mv[which_mv]; in get_sub_block_mv() 137 static INLINE int_mv scale_mv(const MB_MODE_INFO *mbmi, int ref, in scale_mv() argument 140 int_mv mv = mbmi->mv[ref]; in scale_mv() 141 if (ref_sign_bias[mbmi->ref_frame[ref]] != ref_sign_bias[this_ref_frame]) { in scale_mv() 165 #define IF_DIFF_REF_FRAME_ADD_MV(mbmi) \ argument 167 if (is_inter_block(mbmi)) { \ 168 if ((mbmi)->ref_frame[0] != ref_frame) \ 169 ADD_MV_REF_LIST(scale_mv((mbmi), 0, ref_frame, ref_sign_bias)); \ 170 if (has_second_ref(mbmi) && \ [all …]
|
D | vp9_blockd.h | 143 MB_MODE_INFO mbmi; member 148 return mi->mbmi.sb_type < BLOCK_8X8 ? mi->bmi[block].as_mode in get_y_mode() 149 : mi->mbmi.mode; in get_y_mode() 152 static INLINE int is_inter_block(const MB_MODE_INFO *mbmi) { in is_inter_block() argument 153 return mbmi->ref_frame[0] > INTRA_FRAME; in is_inter_block() 156 static INLINE int has_second_ref(const MB_MODE_INFO *mbmi) { in has_second_ref() argument 157 return mbmi->ref_frame[1] > INTRA_FRAME; in has_second_ref() 256 const MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in get_tx_type() local 258 if (plane_type != PLANE_TYPE_Y || is_inter_block(mbmi)) in get_tx_type() 260 return intra_mode_to_tx_type_lookup[mbmi->mode]; in get_tx_type() [all …]
|
D | vp9_blockd.c | 16 if (!left_mi || is_inter_block(&left_mi->mbmi)) in vp9_left_block_mode() 29 if (!above_mi || is_inter_block(&above_mi->mbmi)) in vp9_above_block_mode() 43 const MB_MODE_INFO* mbmi = &xd->mi[0]->mbmi; in vp9_foreach_transformed_block_in_plane() local 47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) in vp9_foreach_transformed_block_in_plane() 48 : mbmi->tx_size; in vp9_foreach_transformed_block_in_plane()
|
D | vp9_loopfilter.c | 232 const MB_MODE_INFO *mbmi) { in get_filter_level() argument 233 return lfi_n->lvl[mbmi->segment_id][mbmi->ref_frame[0]] in get_filter_level() 234 [mode_lf_lut[mbmi->mode]]; in get_filter_level() 502 const MB_MODE_INFO *mbmi = &mi->mbmi; in build_masks() local 503 const BLOCK_SIZE block_size = mbmi->sb_type; in build_masks() 504 const TX_SIZE tx_size_y = mbmi->tx_size; in build_masks() 505 const TX_SIZE tx_size_uv = get_uv_tx_size(mbmi); in build_masks() 506 const int filter_level = get_filter_level(lfi_n, mbmi); in build_masks() 547 if (mbmi->skip && is_inter_block(mbmi)) in build_masks() 581 const MB_MODE_INFO *mbmi = &mi->mbmi; in build_y_mask() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | mr_dissim.c | 32 if(x->mbmi.ref_frame !=INTRA_FRAME) \ 34 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 35 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 40 if(x->mbmi.ref_frame !=INTRA_FRAME) \ 42 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 43 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 44 if (cm->ref_frame_sign_bias[x->mbmi.ref_frame] \ 45 != cm->ref_frame_sign_bias[tmp->mbmi.ref_frame]) \ 96 if(tmp->mbmi.ref_frame !=INTRA_FRAME) in vp8_cal_dissimilarity() 194 mmvx = MAX(abs(min_mvx - here->mbmi.mv.as_mv.row), in vp8_cal_dissimilarity() [all …]
|
D | pickinter.c | 390 mb->e_mbd.mode_info_context->mbmi.uv_mode = best_mode; in pick_intra_mbuv_mode() 399 if (xd->mode_info_context->mbmi.mode == NEWMV) in update_mvcount() 401 x->MVcount[0][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.row - in update_mvcount() 403 x->MVcount[1][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.col - in update_mvcount() 489 MB_PREDICTION_MODE this_mode = x->e_mbd.mode_info_context->mbmi.mode; in evaluate_inter_mode() 490 int_mv mv = x->e_mbd.mode_info_context->mbmi.mv; in evaluate_inter_mode() 516 && x->e_mbd.mode_info_context->mbmi.ref_frame != LAST_FRAME) in evaluate_inter_mode() 538 mv_l = mic->mbmi.mv; in calculate_zeromv_rd_adjustment() 540 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment() 546 mv_al = mic->mbmi.mv; in calculate_zeromv_rd_adjustment() [all …]
|
D | denoising.c | 209 MB_MODE_INFO *mbmi = &filter_xd->mode_info_context->mbmi; in vp8_denoiser_denoise_mb() local 212 saved_mbmi = *mbmi; in vp8_denoiser_denoise_mb() 215 mbmi->ref_frame = x->best_reference_frame; in vp8_denoiser_denoise_mb() 216 mbmi->mode = x->best_sse_inter_mode; in vp8_denoiser_denoise_mb() 217 mbmi->mv = x->best_sse_mv; in vp8_denoiser_denoise_mb() 218 mbmi->need_to_clamp_mvs = x->need_to_clamp_best_mvs; in vp8_denoiser_denoise_mb() 235 mbmi->ref_frame = in vp8_denoiser_denoise_mb() 240 mbmi->mode = ZEROMV; in vp8_denoiser_denoise_mb() 241 mbmi->mv.as_int = 0; in vp8_denoiser_denoise_mb() 274 *mbmi = saved_mbmi; in vp8_denoiser_denoise_mb()
|
D | encodeframe.c | 489 xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index+mb_col]; in encode_mb_row() 491 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row() 497 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row() 505 y_modes[xd->mbmi.mode] ++; in encode_mb_row() 513 inter_y_modes[xd->mbmi.mode] ++; in encode_mb_row() 515 if (xd->mbmi.mode == SPLITMV) in encode_mb_row() 519 for (b = 0; b < xd->mbmi.partition_count; b++) in encode_mb_row() 537 cpi->segmentation_map[map_index+mb_col] = xd->mode_info_context->mbmi.segment_id; in encode_mb_row() 546 if (xd->mode_info_context->mbmi.segment_id) in encode_mb_row() 548 …else if ((xd->mode_info_context->mbmi.mode == ZEROMV) && (xd->mode_info_context->mbmi.ref_frame ==… in encode_mb_row() [all …]
|
D | rdopt.c | 479 int mv_row = x->e_mbd.mode_info_context->mbmi.mv.as_mv.row; in VP8_UVSSE() 480 int mv_col = x->e_mbd.mode_info_context->mbmi.mv.as_mv.col; in VP8_UVSSE() 787 xd->mode_info_context->mbmi.mode = mode; in rd_pick_intra16x16mby_mode() 798 [xd->mode_info_context->mbmi.mode]; in rd_pick_intra16x16mby_mode() 812 xd->mode_info_context->mbmi.mode = mode_selected; in rd_pick_intra16x16mby_mode() 893 xd->mode_info_context->mbmi.uv_mode = mode; in rd_pick_intra_mbuv_mode() 912 … this_rate = rate_to + x->intra_uv_mode_cost[xd->frame_type][xd->mode_info_context->mbmi.uv_mode]; in rd_pick_intra_mbuv_mode() 931 xd->mode_info_context->mbmi.uv_mode = mode_selected; in rd_pick_intra_mbuv_mode() 945 x->e_mbd.mode_info_context->mbmi.mode = mb; in vp8_set_mbmode_and_mvs() 946 x->e_mbd.mode_info_context->mbmi.mv.as_int = mv->as_int; in vp8_set_mbmode_and_mvs() [all …]
|
D | segmentation.c | 43 …if ((this_mb_mode_info->mbmi.ref_frame == GOLDEN_FRAME) || (this_mb_mode_info->mbmi.ref_frame == A… in vp8_update_gf_useage_maps() 51 else if ((this_mb_mode_info->mbmi.mode != ZEROMV) && *(x->gf_active_ptr)) in vp8_update_gf_useage_maps()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/ |
D | quantize_arm.c | 29 int has_2nd_order = (x->e_mbd.mode_info_context->mbmi.mode != B_PRED in vp8_quantize_mby_neon() 30 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in vp8_quantize_mby_neon() 43 int has_2nd_order=(x->e_mbd.mode_info_context->mbmi.mode != B_PRED in vp8_quantize_mb_neon() 44 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in vp8_quantize_mb_neon()
|