Home
last modified time | relevance | path

Searched refs:motion_y (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
45 motion_y = s->sprite_offset[0][1]; in gmc1_motion()
47 src_y = s->mb_y * 16 + (motion_y >> (s->sprite_warping_accuracy + 1)); in gmc1_motion()
49 motion_y *= 1 << (3 - s->sprite_warping_accuracy); in gmc1_motion()
55 motion_y = 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()
92 motion_y = s->sprite_offset[1][1]; in gmc1_motion()
[all …]
Dvp3.c907 int motion_y[4]; in unpack_vectors() local
945 last_gold_motion_y = motion_y[0] = vp4_get_mv(s, gb, 1, last_gold_motion_y); in unpack_vectors()
953 motion_y[0] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors()
957 motion_y[0] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors()
960 motion_y[0] = vp4_get_mv(s, gb, 1, last_motion_y); in unpack_vectors()
968 last_motion_y = motion_y[0]; in unpack_vectors()
985 motion_y[k] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors()
989 motion_y[k] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors()
992 motion_y[k] = vp4_get_mv(s, gb, 1, prior_last_motion_y); in unpack_vectors()
995 last_motion_y = motion_y[k]; in unpack_vectors()
[all …]
Dh263.c63 int motion_x, motion_y; in ff_h263_update_motion_val() local
66 motion_y = 0; in ff_h263_update_motion_val()
69 motion_y = s->mv[0][0][1]; in ff_h263_update_motion_val()
73 motion_y = s->mv[0][0][1] + s->mv[0][1][1]; in ff_h263_update_motion_val()
87 s->current_picture.motion_val[0][xy][1] = motion_y; in ff_h263_update_motion_val()
89 s->current_picture.motion_val[0][xy + 1][1] = motion_y; in ff_h263_update_motion_val()
91 s->current_picture.motion_val[0][xy + wrap][1] = motion_y; in ff_h263_update_motion_val()
93 s->current_picture.motion_val[0][xy + 1 + wrap][1] = motion_y; in ff_h263_update_motion_val()
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()
114 src_y = s->mb_y * 16 + (motion_y >> 1); in ff_mspel_motion()
151 if ((motion_y & 3) != 0) in ff_mspel_motion()
154 my = motion_y >> 2; in ff_mspel_motion()
Dxan.c241 int motion_y) in xan_wc3_copy_pixel_run() argument
250 if (y + motion_y < 0 || y + motion_y >= s->avctx->height || in xan_wc3_copy_pixel_run()
262 prevframe_index = (y + motion_y) * stride + 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
441 motion_y = sign_extend(vector & 0xF, 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()
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()
497 motion_y - pred_y, 1); in ff_h263_encode_mb()
501 h263p_encode_umotion(&s->pb, motion_y - pred_y); in ff_h263_encode_mb()
502 if (((motion_x - pred_x) == 1) && ((motion_y - pred_y) == 1)) in ff_h263_encode_mb()
523 motion_y = s->current_picture.motion_val[0][s->block_index[i]][1]; in ff_h263_encode_mb()
526 motion_y - pred_y, 1); in ff_h263_encode_mb()
530 h263p_encode_umotion(&s->pb, motion_y - pred_y); 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
40 mb->motion_y = motion_y; in add_mb()
45 mb->src_y = dst_y + motion_y / 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()
303 mv_diff_y = (motion_y >> 1) - s->last_mv[0][0][1]; in ff_h261_encode_mb()
305 s->last_mv[0][0][1] = (motion_y >> 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()
848 motion_y - s->last_mv[0][0][1], in mpeg1_encode_mb_internal()
863 motion_y - s->last_mv[0][0][1], in mpeg1_encode_mb_internal()
869 s->last_mv[0][1][1] = s->last_mv[0][0][1] = motion_y; 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
172 motion_y - pred_y); 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()
727 motion_y - pred_y, 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()
413 msmpeg4v2_encode_motion(s, motion_y - pred_y); in ff_msmpeg4_encode_mb()
424 motion_y - pred_y); 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
1468 motion_y /= 2; in hpel_motion_lowres()
1472 sy = motion_y & s_mask; in hpel_motion_lowres()
1474 src_y += motion_y >> lowres + 1; in hpel_motion_lowres()
1507 int motion_x, int motion_y, in mpeg_motion_lowres() argument
1525 motion_y /= 2; in mpeg_motion_lowres()
1529 motion_y += (bottom_field - field_select)*((1 << lowres)-1); in mpeg_motion_lowres()
1533 sy = motion_y & s_mask; in mpeg_motion_lowres()
1535 src_y = (mb_y * 2 * block_s >> field_based) + (motion_y >> lowres + 1); in mpeg_motion_lowres()
1539 uvsy = ((motion_y >> 1) & s_mask) | (sy & 1); 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.c109 avmv->motion_y = bn->my * s->mv_scale; in predict_slice_buffered()
111 avmv->src_y = avmv->dst_y + avmv->motion_y / 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()
1824 motion_y = s->mv[dir][0][1]; in mpeg_decode_slice()
1827 motion_y = s->mv[dir][i][1]; in mpeg_decode_slice()
1831 s->current_picture.motion_val[dir][xy][1] = motion_y; in mpeg_decode_slice()
1833 s->current_picture.motion_val[dir][xy + 1][1] = motion_y; in mpeg_decode_slice()
Ddiracdec.c1652 int motion_y = block->u.mv[ref][1]; in mc_subpel() local
1657 motion_y >>= s->chroma_y_shift; in mc_subpel()
1661 my = motion_y & ~(-1U << s->mv_precision); in mc_subpel()
1663 motion_y >>= s->mv_precision; in mc_subpel()
1670 y += motion_y; in mc_subpel()
/third_party/ffmpeg/libavutil/
Dmotion_vector.h53 int32_t motion_x, motion_y; member