/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | mcomp.c | 35 …return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + mvcost[1][(mv->as_mv.col - ref->as_mv.… in vp8_mv_bit_cost() 42 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + in mv_err_cost() 43 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) in mv_err_cost() 53 return ((mvsadcost[0][(mv->as_mv.row - ref->as_mv.row)] + in mvsad_err_cost() 54 mvsadcost[1][(mv->as_mv.col - ref->as_mv.col)]) in mvsad_err_cost() 212 int rr = ref_mv->as_mv.row >> 1, rc = ref_mv->as_mv.col >> 1; in vp8_find_best_sub_pixel_step_iteratively() 213 int br = bestmv->as_mv.row * 4, bc = bestmv->as_mv.col * 4; in vp8_find_best_sub_pixel_step_iteratively() 224 (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively() 226 (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively() 228 (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively() [all …]
|
D | pickinter.c | 59 bestmv->as_mv.row <<= 3; in vp8_skip_fractional_mv_step() 60 bestmv->as_mv.col <<= 3; in vp8_skip_fractional_mv_step() 78 int xoffset = this_mv.as_mv.col & 7; in vp8_get_inter_mbpred_error() 79 int yoffset = this_mv.as_mv.row & 7; in vp8_get_inter_mbpred_error() 81 in_what += (this_mv.as_mv.row >> 3) * pre_stride + (this_mv.as_mv.col >> 3); in vp8_get_inter_mbpred_error() 401 x->MVcount[0][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.row - in update_mvcount() 402 best_ref_mv->as_mv.row) >> 1)]++; in update_mvcount() 403 x->MVcount[1][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.col - in update_mvcount() 404 best_ref_mv->as_mv.col) >> 1)]++; in update_mvcount() 450 (*parent_ref_mv).as_mv.row = store_mode_info[parent_mb_index].mv.as_mv.row in get_lower_res_motion_info() [all …]
|
D | mr_dissim.c | 34 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 35 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 42 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 43 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 194 mmvx = MAX(abs(min_mvx - here->mbmi.mv.as_mv.row), in vp8_cal_dissimilarity() 195 abs(max_mvx - here->mbmi.mv.as_mv.row)); in vp8_cal_dissimilarity() 196 mmvy = MAX(abs(min_mvy - here->mbmi.mv.as_mv.col), in vp8_cal_dissimilarity() 197 abs(max_mvy - here->mbmi.mv.as_mv.col)); in vp8_cal_dissimilarity()
|
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() 1229 mvp_full.as_mv.row = bsi->mvp.as_mv.row >>3; in rd_check_segment() 1230 mvp_full.as_mv.col = bsi->mvp.as_mv.col >>3; in rd_check_segment() 1311 …if (((mode_mv[this_mode].as_mv.row >> 3) < x->mv_row_min) || ((mode_mv[this_mode].as_mv.row >> 3) … in rd_check_segment() 1312 …((mode_mv[this_mode].as_mv.col >> 3) < x->mv_col_min) || ((mode_mv[this_mode].as_mv.col >> 3) > x-… in rd_check_segment() 1365 bsi->mvs[i].as_mv = x->partition_info->bmi[i].mv.as_mv; in rd_check_segment() 1425 int col_min = ((best_ref_mv->as_mv.col+7)>>3) - MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation() 1426 int row_min = ((best_ref_mv->as_mv.row+7)>>3) - MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation() 1427 int col_max = (best_ref_mv->as_mv.col>>3) + MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation() [all …]
|
D | temporal_filter.c | 166 best_ref_mv1_full.as_mv.col = best_ref_mv1.as_mv.col >>3; in vp8_temporal_filter_find_matching_mb_c() 167 best_ref_mv1_full.as_mv.row = best_ref_mv1.as_mv.row >>3; in vp8_temporal_filter_find_matching_mb_c() 288 mbd->block[0].bmi.mv.as_mv.row = 0; in vp8_temporal_filter_iterate_c() 289 mbd->block[0].bmi.mv.as_mv.col = 0; in vp8_temporal_filter_iterate_c() 326 mbd->block[0].bmi.mv.as_mv.row, in vp8_temporal_filter_iterate_c() 327 mbd->block[0].bmi.mv.as_mv.col, in vp8_temporal_filter_iterate_c()
|
D | denoising.c | 219 mv_col = x->best_sse_mv.as_mv.col; in vp8_denoiser_denoise_mb() 220 mv_row = x->best_sse_mv.as_mv.row; in vp8_denoiser_denoise_mb() 278 mv_row = x->best_sse_mv.as_mv.row; in vp8_denoiser_denoise_mb() 279 mv_col = x->best_sse_mv.as_mv.col; in vp8_denoiser_denoise_mb()
|
D | firstpass.c | 463 ref_mv_full.as_mv.col = ref_mv->as_mv.col>>3; in first_pass_motion_search() 464 ref_mv_full.as_mv.row = ref_mv->as_mv.row>>3; in first_pass_motion_search() 474 best_mv->row = tmp_mv.as_mv.row; in first_pass_motion_search() 475 best_mv->col = tmp_mv.as_mv.col; in first_pass_motion_search() 500 best_mv->row = tmp_mv.as_mv.row; in first_pass_motion_search() 501 best_mv->col = tmp_mv.as_mv.col; in first_pass_motion_search() 648 d->bmi.mv.as_mv.row = 0; in vp8_first_pass() 649 d->bmi.mv.as_mv.col = 0; in vp8_first_pass() 658 &d->bmi.mv.as_mv, lst_yv12, in vp8_first_pass() 673 d->bmi.mv.as_mv.row = tmp_mv.row; in vp8_first_pass() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
D | findnearmv.h | 30 mvp->as_mv.row *= -1; in mv_bias() 31 mvp->as_mv.col *= -1; in mv_bias() 39 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN)) in vp8_clamp_mv2() 40 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2() 41 else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN) in vp8_clamp_mv2() 42 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2() 44 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN)) in vp8_clamp_mv2() 45 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2() 46 else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN) in vp8_clamp_mv2() 47 mv->as_mv.row = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2() [all …]
|
D | reconinter.c | 131 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in vp8_build_inter_predictors_b() 133 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in vp8_build_inter_predictors_b() 135 sppf(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, pred_ptr, pitch); in vp8_build_inter_predictors_b() 154 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors4b() 156 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in build_inter_predictors4b() 158 …x->subpixel_predict8x8(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, dst, dst… in build_inter_predictors4b() 169 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors2b() 171 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in build_inter_predictors2b() 173 …x->subpixel_predict8x4(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, dst, dst… in build_inter_predictors2b() 185 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors_b() [all …]
|
D | debugmodes.c | 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() 146 …fprintf(mvs, "%3d:%-3d ", mi[mb_index].bmi[bindex].mv.as_mv.row, mi[mb_index].bmi[bindex].mv.as_mv… in vp8_print_modes_and_motion_vectors()
|
D | findnearmv.c | 142 inv->as_mv.row = src->as_mv.row * -1; in invert_and_clamp_mvs() 143 inv->as_mv.col = src->as_mv.col * -1; in invert_and_clamp_mvs()
|
D | mv.h | 29 MV as_mv; member
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_reconinter.c | 105 MV res = { round_mv_comp_q4(mi->bmi[0].as_mv[idx].as_mv.row + in mi_mv_pred_q4() 106 mi->bmi[1].as_mv[idx].as_mv.row + in mi_mv_pred_q4() 107 mi->bmi[2].as_mv[idx].as_mv.row + in mi_mv_pred_q4() 108 mi->bmi[3].as_mv[idx].as_mv.row), in mi_mv_pred_q4() 109 round_mv_comp_q4(mi->bmi[0].as_mv[idx].as_mv.col + in mi_mv_pred_q4() 110 mi->bmi[1].as_mv[idx].as_mv.col + in mi_mv_pred_q4() 111 mi->bmi[2].as_mv[idx].as_mv.col + in mi_mv_pred_q4() 112 mi->bmi[3].as_mv[idx].as_mv.col) }; in mi_mv_pred_q4() 163 ? (plane == 0 ? mi->bmi[block].as_mv[ref].as_mv in build_inter_predictors() 165 : mi->mbmi.mv[ref].as_mv; in build_inter_predictors() [all …]
|
D | vp9_mvref_common.c | 131 .as_mv[which_mv] in get_sub_block_mv() 142 mv.as_mv.row *= -1; in scale_mv() 143 mv.as_mv.col *= -1; in scale_mv() 283 clamp_mv_ref(&mv_ref_list[i].as_mv, xd); in find_mv_refs_idx() 311 lower_mv_precision(&mvlist[i].as_mv, allow_hp); in vp9_find_best_ref_mvs() 312 clamp_mv2(&mvlist[i].as_mv, xd); in vp9_find_best_ref_mvs() 340 nearest->as_int = bmi[0].as_mv[ref].as_int; in vp9_append_sub8x8_mvs_for_idx() 349 candidates[0] = bmi[1].as_mv[ref]; in vp9_append_sub8x8_mvs_for_idx() 350 candidates[1] = bmi[0].as_mv[ref]; in vp9_append_sub8x8_mvs_for_idx() 354 nearest->as_int = bmi[2].as_mv[ref].as_int; in vp9_append_sub8x8_mvs_for_idx()
|
D | vp9_debugmodes.c | 70 fprintf(mvs, "%4d:%4d ", mi_8x8[mi_index]->mbmi.mv[0].as_mv.row, in vp9_print_modes_and_motion_vectors() 71 mi_8x8[mi_index]->mbmi.mv[0].as_mv.col); in vp9_print_modes_and_motion_vectors()
|
D | vp9_mv.h | 29 MV as_mv; member
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_pickmode.c | 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() 83 mvp_full = x->pred_mv[ref].as_mv; in full_pixel_motion_search() 92 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 97 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 102 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 107 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 112 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 119 &ref_mv, &tmp_mv->as_mv); in full_pixel_motion_search() 141 MV ref_mv = mbmi->ref_mvs[ref][0].as_mv; in sub_pixel_motion_search() [all …]
|
D | vp9_temporal_filter.c | 139 MV *ref_mv = &x->e_mbd.mi[0]->bmi[0].as_mv[0].as_mv; in temporal_filter_find_matching_mb_c() 256 mbd->mi[0]->bmi[0].as_mv[0].as_mv.row = 0; in temporal_filter_iterate_c() 257 mbd->mi[0]->bmi[0].as_mv[0].as_mv.col = 0; in temporal_filter_iterate_c() 290 mbd->mi[0]->bmi[0].as_mv[0].as_mv.row, in temporal_filter_iterate_c() 291 mbd->mi[0]->bmi[0].as_mv[0].as_mv.col, in temporal_filter_iterate_c()
|
D | vp9_rdopt.c | 1493 thismvcost += vp9_mv_bit_cost(&this_mv[0].as_mv, &best_ref_mv[0]->as_mv, in labels2mode() 1497 thismvcost += vp9_mv_bit_cost(&this_mv[1].as_mv, &best_ref_mv[1]->as_mv, in labels2mode() 1520 mic->bmi[i].as_mv[0].as_int = this_mv[0].as_int; in labels2mode() 1522 mic->bmi[i].as_mv[1].as_int = this_mv[1].as_int; in labels2mode() 1569 &mi->bmi[i].as_mv[ref].as_mv, in encode_inter_mb_segment() 1812 bsi->mvp.as_int = mi->bmi[i - 1].as_mv[0].as_int; in rd_check_segment_txsize() 1814 bsi->mvp.as_int = mi->bmi[i - 2].as_mv[0].as_int; in rd_check_segment_txsize() 1820 max_mv = MAX(abs(bsi->mvp.as_mv.row), abs(bsi->mvp.as_mv.col)) >> 3; in rd_check_segment_txsize() 1832 mvp_full.row = bsi->mvp.as_mv.row >> 3; in rd_check_segment_txsize() 1833 mvp_full.col = bsi->mvp.as_mv.col >> 3; in rd_check_segment_txsize() [all …]
|
D | vp9_firstpass.c | 640 first_pass_motion_search(cpi, x, &best_ref_mv.as_mv, &mv.as_mv, in vp9_first_pass() 651 first_pass_motion_search(cpi, x, &zero_mv, &tmp_mv.as_mv, in vp9_first_pass() 672 first_pass_motion_search(cpi, x, &zero_mv, &tmp_mv.as_mv, in vp9_first_pass() 709 mv.as_mv.row *= 8; in vp9_first_pass() 710 mv.as_mv.col *= 8; in vp9_first_pass() 719 sum_mvr += mv.as_mv.row; in vp9_first_pass() 720 sum_mvr_abs += abs(mv.as_mv.row); in vp9_first_pass() 721 sum_mvc += mv.as_mv.col; in vp9_first_pass() 722 sum_mvc_abs += abs(mv.as_mv.col); in vp9_first_pass() 723 sum_mvrs += mv.as_mv.row * mv.as_mv.row; in vp9_first_pass() [all …]
|
D | vp9_encodemv.c | 237 const MV *ref = &mbmi->ref_mvs[mbmi->ref_frame[i]][0].as_mv; in inc_mvs() 238 const MV diff = {mvs[i].as_mv.row - ref->row, in inc_mvs() 239 mvs[i].as_mv.col - ref->col}; in inc_mvs() 257 inc_mvs(mbmi, mi->bmi[i].as_mv, &cm->counts.mv); in vp9_update_mv_count()
|
D | vp9_mbgraph.c | 65 xd->mi[0]->mbmi.mv[0].as_mv = *dst_mv; in do_16x16_motion_iteration() 96 tmp_err = do_16x16_motion_iteration(cpi, &ref_mv->as_mv, &tmp_mv.as_mv, in do_16x16_motion_search() 110 tmp_err = do_16x16_motion_iteration(cpi, &zero_ref_mv.as_mv, &tmp_mv.as_mv, in do_16x16_motion_search()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/ |
D | error_concealment.c | 189 new_row = row - bmi->mv.as_mv.row; in vp8_calculate_overlaps() 190 new_col = col - bmi->mv.as_mv.col; in vp8_calculate_overlaps() 261 col_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.col; in estimate_mv() 262 row_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.row; in estimate_mv() 268 bmi->mv.as_mv.col = col_acc / overlap_sum; in estimate_mv() 269 bmi->mv.as_mv.row = row_acc / overlap_sum; in estimate_mv() 273 bmi->mv.as_mv.col = 0; in estimate_mv() 274 bmi->mv.as_mv.row = 0; in estimate_mv() 290 MV * const filtered_mv = &(mi->mbmi.mv.as_mv); in estimate_mb_mvs() 316 filtered_mv->col += bmi[i].mv.as_mv.col; in estimate_mb_mvs() [all …]
|
D | decodemv.c | 295 blockmv.as_mv.row = read_mvcomponent(bc, &mvc[0]) * 2; in decode_split_mv() 296 blockmv.as_mv.row += best_mv.as_mv.row; in decode_split_mv() 297 blockmv.as_mv.col = read_mvcomponent(bc, &mvc[1]) * 2; in decode_split_mv() 298 blockmv.as_mv.col += best_mv.as_mv.col; in decode_split_mv() 495 read_mv(bc, &mbmi_mv->as_mv, (const MV_CONTEXT *) mvc); in read_mb_modes_mv() 496 mbmi_mv->as_mv.row += near_mvs[near_index].as_mv.row; in read_mb_modes_mv() 497 mbmi_mv->as_mv.col += near_mvs[near_index].as_mv.col; in read_mb_modes_mv()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 377 read_mv(r, &mv[i].as_mv, &ref_mv[i].as_mv, &cm->fc.nmvc, mv_counts, in assign_mv() 379 ret = ret && is_mv_valid(&mv[i].as_mv); in assign_mv() 493 mi->bmi[j].as_mv[0].as_int = block[0].as_int; in read_inter_block_mode_info() 495 mi->bmi[j].as_mv[1].as_int = block[1].as_int; in read_inter_block_mode_info() 506 mbmi->mv[0].as_int = mi->bmi[3].as_mv[0].as_int; in read_inter_block_mode_info() 507 mbmi->mv[1].as_int = mi->bmi[3].as_mv[1].as_int; in read_inter_block_mode_info()
|