Home
last modified time | relevance | path

Searched refs:motion_x (Results 1 – 24 of 24) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dmpegvideo_motion.c40 int src_x, src_y, motion_x, motion_y; in gmc1_motion() local
44 motion_x = s->sprite_offset[0][0]; in gmc1_motion()
46 src_x = s->mb_x * 16 + (motion_x >> (s->sprite_warping_accuracy + 1)); in gmc1_motion()
48 motion_x *= 1 << (3 - s->sprite_warping_accuracy); in gmc1_motion()
52 motion_x = 0; in gmc1_motion()
72 if ((motion_x | motion_y) & 7) { in gmc1_motion()
74 motion_x & 15, motion_y & 15, 128 - s->no_rounding); in gmc1_motion()
76 motion_x & 15, motion_y & 15, 128 - s->no_rounding); in gmc1_motion()
80 dxy = ((motion_x >> 3) & 1) | ((motion_y >> 2) & 2); in gmc1_motion()
91 motion_x = s->sprite_offset[1][0]; in gmc1_motion()
[all …]
Dh263.c63 int motion_x, motion_y; in ff_h263_update_motion_val() local
65 motion_x = 0; in ff_h263_update_motion_val()
68 motion_x = s->mv[0][0][0]; in ff_h263_update_motion_val()
72 motion_x = s->mv[0][0][0] + s->mv[0][1][0]; in ff_h263_update_motion_val()
74 motion_x = (motion_x>>1) | (motion_x&1); in ff_h263_update_motion_val()
86 s->current_picture.motion_val[0][xy][0] = motion_x; in ff_h263_update_motion_val()
88 s->current_picture.motion_val[0][xy + 1][0] = motion_x; in ff_h263_update_motion_val()
90 s->current_picture.motion_val[0][xy + wrap][0] = motion_x; in ff_h263_update_motion_val()
92 s->current_picture.motion_val[0][xy + 1 + wrap][0] = motion_x; in ff_h263_update_motion_val()
Dvp3.c906 int motion_x[4]; in unpack_vectors() local
944 last_gold_motion_x = motion_x[0] = vp4_get_mv(s, gb, 0, last_gold_motion_x); in unpack_vectors()
951 motion_x[0] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors()
956 motion_x[0] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors()
959 motion_x[0] = vp4_get_mv(s, gb, 0, last_motion_x); in unpack_vectors()
967 last_motion_x = motion_x[0]; in unpack_vectors()
983 motion_x[k] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors()
988 motion_x[k] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors()
991 motion_x[k] = vp4_get_mv(s, gb, 0, prior_last_motion_x); in unpack_vectors()
994 last_motion_x = motion_x[k]; in unpack_vectors()
[all …]
Dxan.c240 int pixel_count, int motion_x, in xan_wc3_copy_pixel_run() argument
251 x + motion_x < 0 || x + motion_x >= s->avctx->width) in xan_wc3_copy_pixel_run()
262 prevframe_index = (y + motion_y) * stride + x + motion_x; in xan_wc3_copy_pixel_run()
263 prevframe_x = x + motion_x; in xan_wc3_copy_pixel_run()
265 if (prev_palette_plane == palette_plane && FFABS(motion_x + width*motion_y) < pixel_count) { in xan_wc3_copy_pixel_run()
305 int motion_x, motion_y; in xan_wc3_decode_frame() local
440 motion_x = sign_extend(vector >> 4, 4); in xan_wc3_decode_frame()
444 xan_wc3_copy_pixel_run(s, frame, x, y, size, motion_x, motion_y); in xan_wc3_decode_frame()
Dwmv2.c103 int motion_x, int motion_y, int h) in ff_mspel_motion() argument
111 dxy = ((motion_y & 1) << 1) | (motion_x & 1); in ff_mspel_motion()
113 src_x = s->mb_x * 16 + (motion_x >> 1); in ff_mspel_motion()
149 if ((motion_x & 3) != 0) in ff_mspel_motion()
153 mx = motion_x >> 2; in ff_mspel_motion()
Dituh263enc.c449 int motion_x, int motion_y) in ff_h263_encode_mb() argument
459 cbp= get_p_cbp(s, block, motion_x, motion_y); in ff_h263_encode_mb()
461 if ((cbp | motion_x | motion_y | s->dquant | (s->mv_type - MV_TYPE_16X16)) == 0) { 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()
522 motion_x = s->current_picture.motion_val[0][s->block_index[i]][0]; 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()
Dh263.h62 int motion_x, int motion_y);
132 int motion_x, int motion_y){ in get_p_cbp() argument
166 if ((motion_x | motion_y | s->dquant) == 0 && s->mv_type==MV_TYPE_16X16){ in get_p_cbp()
Dwmv2.h64 int motion_x, int motion_y);
73 int motion_x, int motion_y, int h);
Dmpegutils.c34 int motion_x, int motion_y, int motion_scale, in add_mb() argument
39 mb->motion_x = motion_x; in add_mb()
44 mb->src_x = dst_x + motion_x / motion_scale; in add_mb()
Dh261enc.c239 int motion_x, int motion_y) in ff_h261_encode_mb() argument
253 mvd = motion_x | motion_y; in ff_h261_encode_mb()
302 mv_diff_x = (motion_x >> 1) - s->last_mv[0][0][0]; in ff_h261_encode_mb()
304 s->last_mv[0][0][0] = (motion_x >> 1); in ff_h261_encode_mb()
Dmpeg12enc.c754 int motion_x, int motion_y, in mpeg1_encode_mb_internal() argument
771 ((s->pict_type == AV_PICTURE_TYPE_P && (motion_x | motion_y) == 0) || in mpeg1_encode_mb_internal()
824 if ((motion_x | motion_y) == 0) { in mpeg1_encode_mb_internal()
844 motion_x - s->last_mv[0][0][0], in mpeg1_encode_mb_internal()
859 motion_x - s->last_mv[0][0][0], in mpeg1_encode_mb_internal()
868 s->last_mv[0][1][0] = s->last_mv[0][0][0] = motion_x; in mpeg1_encode_mb_internal()
1031 int motion_x, int motion_y) in ff_mpeg1_encode_mb() argument
1034 mpeg1_encode_mb_internal(s, block, motion_x, motion_y, 6); in ff_mpeg1_encode_mb()
1036 mpeg1_encode_mb_internal(s, block, motion_x, motion_y, 8); in ff_mpeg1_encode_mb()
Dh261.h65 int motion_x, int motion_y);
Dwmv2enc.c148 int motion_x, int motion_y) in ff_wmv2_encode_mb() argument
171 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_wmv2_encode_mb()
Dmpeg4videoenc.c433 int motion_x, int motion_y, int mb_type) in get_b_cbp() argument
450 if ((motion_x | motion_y | s->dquant | mb_type) == 0) in get_b_cbp()
477 int motion_x, int motion_y) in ff_mpeg4_encode_mb() argument
519 cbp = get_b_cbp(s, block, motion_x, motion_y, mb_type); in ff_mpeg4_encode_mb()
521 if ((cbp | motion_x | motion_y | mb_type) == 0) { in ff_mpeg4_encode_mb()
561 ff_h263_encode_motion_vector(s, motion_x, motion_y, 1); in ff_mpeg4_encode_mb()
631 cbp = get_p_cbp(s, block, motion_x, motion_y); in ff_mpeg4_encode_mb()
633 if ((cbp | motion_x | motion_y | s->dquant) == 0 && in ff_mpeg4_encode_mb()
726 motion_x - pred_x, in ff_mpeg4_encode_mb()
Dmsmpeg4enc.c371 int motion_x, int motion_y) in ff_msmpeg4_encode_mb() argument
386 if (s->use_skip_mb_code && (cbp | motion_x | motion_y) == 0) { in ff_msmpeg4_encode_mb()
412 msmpeg4v2_encode_motion(s, motion_x - pred_x); in ff_msmpeg4_encode_mb()
423 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_msmpeg4_encode_mb()
Dmsmpeg4.h57 int motion_x, int motion_y);
Dmpeg12.h67 int motion_x, int motion_y);
Dmpegvideo.c1458 int motion_x, int motion_y) in hpel_motion_lowres() argument
1467 motion_x /= 2; in hpel_motion_lowres()
1471 sx = motion_x & s_mask; in hpel_motion_lowres()
1473 src_x += motion_x >> lowres + 1; in hpel_motion_lowres()
1507 int motion_x, int motion_y, in mpeg_motion_lowres() argument
1524 motion_x /= 2; in mpeg_motion_lowres()
1532 sx = motion_x & s_mask; in mpeg_motion_lowres()
1534 src_x = s->mb_x * 2 * block_s + (motion_x >> lowres + 1); in mpeg_motion_lowres()
1538 uvsx = ((motion_x >> 1) & s_mask) | (sx & 1); in mpeg_motion_lowres()
1544 mx = motion_x / 4; in mpeg_motion_lowres()
[all …]
Dmpegvideo_enc.c2236 int motion_x, int motion_y, in encode_mb_internal() argument
2577 ff_mpeg1_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2581 ff_mpeg4_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2587 ff_msmpeg4_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2591 ff_wmv2_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2595 ff_h261_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2603 ff_h263_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal()
2619 static av_always_inline void encode_mb(MpegEncContext *s, int motion_x, int motion_y) in encode_mb() argument
2621 if (s->chroma_format == CHROMA_420) encode_mb_internal(s, motion_x, motion_y, 8, 8, 6); in encode_mb()
2622 else if (s->chroma_format == CHROMA_422) encode_mb_internal(s, motion_x, motion_y, 16, 8, 8); in encode_mb()
[all …]
Dmpeg4video.h156 int motion_x, int motion_y);
Dsnowdec.c108 avmv->motion_x = bn->mx * s->mv_scale; in predict_slice_buffered()
110 avmv->src_x = avmv->dst_x + avmv->motion_x / 8; in predict_slice_buffered()
Dmpeg12dec.c1814 int motion_x, motion_y, dir, i; in mpeg_decode_slice() local
1820 motion_x = motion_y = 0; in mpeg_decode_slice()
1823 motion_x = s->mv[dir][0][0]; in mpeg_decode_slice()
1826 motion_x = s->mv[dir][i][0]; in mpeg_decode_slice()
1830 s->current_picture.motion_val[dir][xy][0] = motion_x; in mpeg_decode_slice()
1832 s->current_picture.motion_val[dir][xy + 1][0] = motion_x; in mpeg_decode_slice()
Ddiracdec.c1651 int motion_x = block->u.mv[ref][0]; in mc_subpel() local
1656 motion_x >>= s->chroma_x_shift; in mc_subpel()
1660 mx = motion_x & ~(-1U << s->mv_precision); in mc_subpel()
1662 motion_x >>= s->mv_precision; in mc_subpel()
1669 x += motion_x; in mc_subpel()
/third_party/ffmpeg/libavutil/
Dmotion_vector.h53 int32_t motion_x, motion_y; member