Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavcodec/
Dituh263dec.c343 int cbpc, i, pred_x, pred_y, mx, my; in preview_obmc() local
386 mot_val= ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in preview_obmc()
393 my = h263p_decode_umotion(s, pred_y); in preview_obmc()
395 my = ff_h263_decode_motion(s, pred_y, 1); in preview_obmc()
404 mot_val = ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in preview_obmc()
411 my = h263p_decode_umotion(s, pred_y); in preview_obmc()
413 my = ff_h263_decode_motion(s, pred_y, 1); in preview_obmc()
414 if (s->umvplus && (mx - pred_x) == 1 && (my - pred_y) == 1) in preview_obmc()
789 int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant; in ff_h263_decode_mb() local
846 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_h263_decode_mb()
[all …]
Dmotion_est_template.c39 const int pred_y= c->pred_y;\
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.c498 int cbpc, cbpy, i, cbp, pred_x, pred_y; in ff_h263_encode_mb() local
540 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_h263_encode_mb()
544 motion_y - pred_y, 1); in ff_h263_encode_mb()
548 h263p_encode_umotion(&s->pb, motion_y - pred_y); in ff_h263_encode_mb()
549 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
567 ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in ff_h263_encode_mb()
573 motion_y - pred_y, 1); in ff_h263_encode_mb()
577 h263p_encode_umotion(&s->pb, motion_y - pred_y); in ff_h263_encode_mb()
578 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
Dwmv2enc.c171 int pred_x, pred_y; in ff_wmv2_encode_mb() local
189 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_wmv2_encode_mb()
191 motion_y - pred_y); in ff_wmv2_encode_mb()
Dmsmpeg4enc.c377 int pred_x, pred_y; in ff_msmpeg4_encode_mb() local
414 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_msmpeg4_encode_mb()
416 msmpeg4v2_encode_motion(s, motion_y - pred_y); in ff_msmpeg4_encode_mb()
425 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_msmpeg4_encode_mb()
427 motion_y - pred_y); in ff_msmpeg4_encode_mb()
Dmpeg4videoenc.c486 int cbpc, cbpy, pred_x, pred_y; in ff_mpeg4_encode_mb() local
724 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
728 motion_y - pred_y, in ff_mpeg4_encode_mb()
750 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
751 pred_y /= 2; in ff_mpeg4_encode_mb()
758 s->mv[0][0][1] - pred_y, in ff_mpeg4_encode_mb()
762 s->mv[0][1][1] - pred_y, in ff_mpeg4_encode_mb()
779 ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb()
783 … s->current_picture.motion_val[0][s->block_index[i]][1] - pred_y, in ff_mpeg4_encode_mb()
Dsvq1enc.c410 int mx, my, pred_x, pred_y, dxy; in svq1_encode_plane() local
413 motion_ptr = ff_h263_pred_motion(&s->m, 0, 0, &pred_x, &pred_y); in svq1_encode_plane()
428 av_assert1(pred_y >= -32 && pred_y <= 31); in svq1_encode_plane()
430 ff_h263_encode_motion(&s->m.pb, my - pred_y, 1); in svq1_encode_plane()
Dmotion_est.c436 pen_y= pred_y + my; in sad_hpel_motion_search()
609 c->pred_y= pred_y4= P_LEFT[1]; in h263_mv4_search()
624 c->pred_y= pred_y4 = P_MEDIAN[1]; in h263_mv4_search()
715 c->pred_y= my; in h263_mv4_search()
782 c->pred_y= P_LEFT[1]; in interlaced_search()
820 … dmin+= (mv_penalty[mx_i-c->pred_x] + mv_penalty[my_i-c->pred_y] + 1)*c->mb_penalty_factor; in interlaced_search()
951 c->pred_y = P_MEDIAN[1]; in ff_estimate_p_frame_motion()
954 c->pred_y = P_LEFT[1]; in ff_estimate_p_frame_motion()
958 c->pred_y = P_LEFT[1]; in ff_estimate_p_frame_motion()
1089 c->pred_y= P_LEFT[1]; in ff_pre_estimate_p_frame_motion()
[all …]
Dmotion_est.h79 int pred_y; member
Dmpeg4videodec.c818 int mx, my, pred_x, pred_y, bits; in mpeg4_decode_partition_a() local
896 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_partition_a()
902 my = ff_h263_decode_motion(s, pred_y, s->f_code); in mpeg4_decode_partition_a()
928 int16_t *mot_val = ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in mpeg4_decode_partition_a()
933 my = ff_h263_decode_motion(s, pred_y, s->f_code); in mpeg4_decode_partition_a()
1474 int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant; in mpeg4_decode_mb() local
1568 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_mb()
1575 my = ff_h263_decode_motion(s, pred_y / 2, s->f_code); in mpeg4_decode_mb()
1586 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_mb()
1592 my = ff_h263_decode_motion(s, pred_y, s->f_code); in mpeg4_decode_mb()
[all …]
Dsnowenc.c317 c->pred_y= P_LEFT[1]; in encode_q_branch()
320 c->pred_y = P_MEDIAN[1]; in encode_q_branch()
Dmpegvideo_enc.c2687 int pred_x, pred_y; in write_mb_info() local
2689 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in write_mb_info()
2695 bytestream_put_byte(&ptr, pred_y); /* vmv1 */ in write_mb_info()
/third_party/ffmpeg/libavfilter/
Dvf_mestimate.c235 … me_ctx->pred_y = mid_pred(preds[0].mvs[1][1], preds[0].mvs[2][1], preds[0].mvs[3][1]); in filter_frame()
238 me_ctx->pred_y = mid_pred(0, preds[0].mvs[1][1], preds[0].mvs[2][1]); in filter_frame()
241 me_ctx->pred_y = preds[0].mvs[1][1]; in filter_frame()
244 me_ctx->pred_y = 0; in filter_frame()
284 … me_ctx->pred_y = mid_pred(preds[0].mvs[1][1], preds[0].mvs[2][1], preds[0].mvs[3][1]); in filter_frame()
287 me_ctx->pred_y = mid_pred(0, preds[0].mvs[1][1], preds[0].mvs[2][1]); in filter_frame()
290 me_ctx->pred_y = preds[0].mvs[1][1]; in filter_frame()
293 me_ctx->pred_y = 0; in filter_frame()
Dvf_minterpolate.c272 return sbad + (FFABS(mv_x1 - me_ctx->pred_x) + FFABS(mv_y1 - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sbad()
298 return sbad + (FFABS(mv_x1 - me_ctx->pred_x) + FFABS(mv_y1 - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sbad_ob()
324 return sad + (FFABS(mv_x - me_ctx->pred_x) + FFABS(mv_y - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sad_ob()
471 … me_ctx->pred_y = mid_pred(preds[0].mvs[1][1], preds[0].mvs[2][1], preds[0].mvs[3][1]); in search_mv()
474 me_ctx->pred_y = mid_pred(0, preds[0].mvs[1][1], preds[0].mvs[2][1]); in search_mv()
477 me_ctx->pred_y = preds[0].mvs[1][1]; in search_mv()
480 me_ctx->pred_y = 0; in search_mv()
537 … me_ctx->pred_y = mid_pred(preds[0].mvs[1][1], preds[0].mvs[2][1], preds[0].mvs[3][1]); in search_mv()
540 me_ctx->pred_y = mid_pred(0, preds[0].mvs[1][1], preds[0].mvs[2][1]); in search_mv()
543 me_ctx->pred_y = preds[0].mvs[1][1]; in search_mv()
[all …]
Dmotion_estimation.h57 int pred_y; ///< median predictor y member
Dmotion_estimation.c347 COST_P_MV(x_mb + me_ctx->pred_x, y_mb + me_ctx->pred_y); in ff_me_search_epzs()
389 COST_P_MV(x_mb + me_ctx->pred_x, y_mb + me_ctx->pred_y); in ff_me_search_umh()