Home
last modified time | relevance | path

Searched refs:pred_x (Results 1 – 16 of 16) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dituh263dec.c341 int cbpc, i, pred_x, pred_y, mx, my; in preview_obmc() local
384 mot_val= ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in preview_obmc()
386 mx = h263p_decode_umotion(s, pred_x); in preview_obmc()
388 mx = ff_h263_decode_motion(s, pred_x, 1); in preview_obmc()
402 mot_val = ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in preview_obmc()
404 mx = h263p_decode_umotion(s, pred_x); in preview_obmc()
406 mx = ff_h263_decode_motion(s, pred_x, 1); in preview_obmc()
412 if (s->umvplus && (mx - pred_x) == 1 && (my - pred_y) == 1) in preview_obmc()
700 int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant; in ff_h263_decode_mb() local
757 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_h263_decode_mb()
[all …]
Dmotion_est_template.c38 const int pred_x= c->pred_x;\
46 d += (mv_penalty[hx - pred_x] + mv_penalty[hy - pred_y])*penalty_factor;\
79 dmin += (mv_penalty[2*mx - pred_x] + mv_penalty[2*my - pred_y])*penalty_factor; in hpel_motion_search()
87 + (mv_penalty[bx - pred_x] + mv_penalty[by-2 - pred_y])*c->penalty_factor; in hpel_motion_search()
89 + (mv_penalty[bx-2 - pred_x] + mv_penalty[by - pred_y])*c->penalty_factor; in hpel_motion_search()
91 + (mv_penalty[bx+2 - pred_x] + mv_penalty[by - pred_y])*c->penalty_factor; in hpel_motion_search()
93 + (mv_penalty[bx - pred_x] + mv_penalty[by+2 - pred_y])*c->penalty_factor; in hpel_motion_search()
187 d += (mv_penalty[mx - pred_x] + mv_penalty[my - pred_y])*penalty_factor; in get_mb_score()
203 d += (mv_penalty[hx - pred_x] + mv_penalty[hy - pred_y])*penalty_factor;\
241 dmin += (mv_penalty[4*mx - pred_x] + mv_penalty[4*my - pred_y])*penalty_factor; in qpel_motion_search()
[all …]
Dituh263enc.c451 int cbpc, cbpy, i, cbp, pred_x, pred_y; in ff_h263_encode_mb() local
493 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_h263_encode_mb()
496 ff_h263_encode_motion_vector(s, motion_x - pred_x, in ff_h263_encode_mb()
500 h263p_encode_umotion(&s->pb, motion_x - pred_x); in ff_h263_encode_mb()
502 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
520 ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in ff_h263_encode_mb()
525 ff_h263_encode_motion_vector(s, motion_x - pred_x, in ff_h263_encode_mb()
529 h263p_encode_umotion(&s->pb, motion_x - pred_x); in ff_h263_encode_mb()
531 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
Dwmv2enc.c152 int pred_x, pred_y; in ff_wmv2_encode_mb() local
170 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_wmv2_encode_mb()
171 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_wmv2_encode_mb()
Dmsmpeg4enc.c381 int pred_x, pred_y; in ff_msmpeg4_encode_mb() local
418 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_msmpeg4_encode_mb()
419 msmpeg4v2_encode_motion(s, motion_x - pred_x); in ff_msmpeg4_encode_mb()
429 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_msmpeg4_encode_mb()
430 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_msmpeg4_encode_mb()
Dmotion_est.h78 int pred_x; member
Dmotion_est.c433 pen_x= pred_x + mx; in sad_hpel_motion_search()
606 c->pred_x= pred_x4= P_LEFT[0]; in h263_mv4_search()
621 c->pred_x= pred_x4 = P_MEDIAN[0]; in h263_mv4_search()
712 c->pred_x= mx; in h263_mv4_search()
779 c->pred_x= P_LEFT[0]; in interlaced_search()
818 … dmin+= (mv_penalty[mx_i-c->pred_x] + mv_penalty[my_i-c->pred_y] + 1)*c->mb_penalty_factor; in interlaced_search()
948 c->pred_x = P_MEDIAN[0]; in ff_estimate_p_frame_motion()
951 c->pred_x = P_LEFT[0]; in ff_estimate_p_frame_motion()
955 c->pred_x = P_LEFT[0]; in ff_estimate_p_frame_motion()
1086 c->pred_x= P_LEFT[0]; in ff_pre_estimate_p_frame_motion()
[all …]
Dsvq1enc.c408 int mx, my, pred_x, pred_y, dxy; in svq1_encode_plane() local
411 motion_ptr = ff_h263_pred_motion(&s->m, 0, 0, &pred_x, &pred_y); in svq1_encode_plane()
425 av_assert1(pred_x >= -32 && pred_x <= 31); in svq1_encode_plane()
427 ff_h263_encode_motion(&s->m.pb, mx - pred_x, 1); in svq1_encode_plane()
Dmpeg4videoenc.c479 int cbpc, cbpy, pred_x, pred_y; in ff_mpeg4_encode_mb() local
723 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
726 motion_x - pred_x, in ff_mpeg4_encode_mb()
749 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
756 s->mv[0][0][0] - pred_x, in ff_mpeg4_encode_mb()
760 s->mv[0][1][0] - pred_x, in ff_mpeg4_encode_mb()
778 ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
781 … s->current_picture.motion_val[0][s->block_index[i]][0] - pred_x, in ff_mpeg4_encode_mb()
Dmpeg4videodec.c749 int mx, my, pred_x, pred_y, bits; in mpeg4_decode_partition_a() local
827 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_partition_a()
829 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_partition_a()
859 int16_t *mot_val = ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in mpeg4_decode_partition_a()
860 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_partition_a()
1403 int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant; in mpeg4_decode_mb() local
1497 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_mb()
1500 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_mb()
1515 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_mb()
1516 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_mb()
[all …]
Dsnowenc.c325 c->pred_x= P_LEFT[0]; in encode_q_branch()
328 c->pred_x = P_MEDIAN[0]; in encode_q_branch()
Dmpegvideo_enc.c2838 int pred_x, pred_y; in write_mb_info() local
2840 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in write_mb_info()
2845 bytestream_put_byte(&ptr, pred_x); /* hmv1 */ in write_mb_info()
/third_party/ffmpeg/libavfilter/
Dvf_mestimate.c240 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in filter_frame()
243 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in filter_frame()
246 me_ctx->pred_x = preds[0].mvs[1][0]; in filter_frame()
249 me_ctx->pred_x = 0; in filter_frame()
289 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in filter_frame()
292 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in filter_frame()
295 me_ctx->pred_x = preds[0].mvs[1][0]; in filter_frame()
298 me_ctx->pred_x = 0; in filter_frame()
Dvf_minterpolate.c281 return sbad + (FFABS(mv_x1 - me_ctx->pred_x) + FFABS(mv_y1 - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sbad()
307 return sbad + (FFABS(mv_x1 - me_ctx->pred_x) + FFABS(mv_y1 - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sbad_ob()
333 return sad + (FFABS(mv_x - me_ctx->pred_x) + FFABS(mv_y - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sad_ob()
481 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in search_mv()
484 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in search_mv()
487 me_ctx->pred_x = preds[0].mvs[1][0]; in search_mv()
490 me_ctx->pred_x = 0; in search_mv()
547 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in search_mv()
550 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in search_mv()
553 me_ctx->pred_x = preds[0].mvs[1][0]; in search_mv()
[all …]
Dmotion_estimation.h56 int pred_x; ///< median predictor x member
Dmotion_estimation.c346 COST_P_MV(x_mb + me_ctx->pred_x, y_mb + me_ctx->pred_y); in ff_me_search_epzs()
388 COST_P_MV(x_mb + me_ctx->pred_x, y_mb + me_ctx->pred_y); in ff_me_search_umh()