/third_party/ffmpeg/libavcodec/ |
D | ituh263dec.c | 343 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() 388 mx = h263p_decode_umotion(s, pred_x); in preview_obmc() 390 mx = ff_h263_decode_motion(s, pred_x, 1); in preview_obmc() 404 mot_val = ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in preview_obmc() 406 mx = h263p_decode_umotion(s, pred_x); in preview_obmc() 408 mx = ff_h263_decode_motion(s, pred_x, 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 …]
|
D | motion_est_template.c | 38 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 …]
|
D | ituh263enc.c | 498 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() 543 ff_h263_encode_motion_vector(s, motion_x - pred_x, in ff_h263_encode_mb() 547 h263p_encode_umotion(&s->pb, motion_x - pred_x); 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() 572 ff_h263_encode_motion_vector(s, motion_x - pred_x, in ff_h263_encode_mb() 576 h263p_encode_umotion(&s->pb, motion_x - pred_x); in ff_h263_encode_mb() 578 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
|
D | wmv2enc.c | 171 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() 190 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_wmv2_encode_mb()
|
D | msmpeg4enc.c | 377 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() 415 msmpeg4v2_encode_motion(s, motion_x - pred_x); in ff_msmpeg4_encode_mb() 425 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_msmpeg4_encode_mb() 426 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_msmpeg4_encode_mb()
|
D | svq1enc.c | 410 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() 427 av_assert1(pred_x >= -32 && pred_x <= 31); in svq1_encode_plane() 429 ff_h263_encode_motion(&s->m.pb, mx - pred_x, 1); in svq1_encode_plane()
|
D | motion_est.c | 435 pen_x= pred_x + mx; in sad_hpel_motion_search() 608 c->pred_x= pred_x4= P_LEFT[0]; in h263_mv4_search() 623 c->pred_x= pred_x4 = P_MEDIAN[0]; in h263_mv4_search() 714 c->pred_x= mx; in h263_mv4_search() 781 c->pred_x= P_LEFT[0]; 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() 950 c->pred_x = P_MEDIAN[0]; in ff_estimate_p_frame_motion() 953 c->pred_x = P_LEFT[0]; in ff_estimate_p_frame_motion() 957 c->pred_x = P_LEFT[0]; in ff_estimate_p_frame_motion() 1088 c->pred_x= P_LEFT[0]; in ff_pre_estimate_p_frame_motion() [all …]
|
D | mpeg4videoenc.c | 486 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() 727 motion_x - pred_x, in ff_mpeg4_encode_mb() 750 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb() 757 s->mv[0][0][0] - pred_x, in ff_mpeg4_encode_mb() 761 s->mv[0][1][0] - pred_x, in ff_mpeg4_encode_mb() 779 ff_h263_pred_motion(s, i, 0, &pred_x, &pred_y); in ff_mpeg4_encode_mb() 782 … s->current_picture.motion_val[0][s->block_index[i]][0] - pred_x, in ff_mpeg4_encode_mb()
|
D | motion_est.h | 78 int pred_x; member
|
D | mpeg4videodec.c | 818 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() 898 mx = ff_h263_decode_motion(s, pred_x, 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() 929 mx = ff_h263_decode_motion(s, pred_x, 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() 1571 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_mb() 1586 ff_h263_pred_motion(s, 0, 0, &pred_x, &pred_y); in mpeg4_decode_mb() 1587 mx = ff_h263_decode_motion(s, pred_x, s->f_code); in mpeg4_decode_mb() [all …]
|
D | snowenc.c | 316 c->pred_x= P_LEFT[0]; in encode_q_branch() 319 c->pred_x = P_MEDIAN[0]; in encode_q_branch()
|
D | mpegvideo_enc.c | 2687 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() 2694 bytestream_put_byte(&ptr, pred_x); /* hmv1 */ in write_mb_info()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_mestimate.c | 234 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in filter_frame() 237 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in filter_frame() 240 me_ctx->pred_x = preds[0].mvs[1][0]; in filter_frame() 243 me_ctx->pred_x = 0; in filter_frame() 283 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in filter_frame() 286 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in filter_frame() 289 me_ctx->pred_x = preds[0].mvs[1][0]; in filter_frame() 292 me_ctx->pred_x = 0; in filter_frame()
|
D | vf_minterpolate.c | 272 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() 470 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in search_mv() 473 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in search_mv() 476 me_ctx->pred_x = preds[0].mvs[1][0]; in search_mv() 479 me_ctx->pred_x = 0; in search_mv() 536 … me_ctx->pred_x = mid_pred(preds[0].mvs[1][0], preds[0].mvs[2][0], preds[0].mvs[3][0]); in search_mv() 539 me_ctx->pred_x = mid_pred(0, preds[0].mvs[1][0], preds[0].mvs[2][0]); in search_mv() 542 me_ctx->pred_x = preds[0].mvs[1][0]; in search_mv() [all …]
|
D | motion_estimation.h | 56 int pred_x; ///< median predictor x member
|
D | motion_estimation.c | 347 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()
|