/third_party/ffmpeg/libavcodec/ |
H A D | mpegvideo_motion.c | 42 int src_x, src_y, motion_x, motion_y; in gmc1_motion() local 46 motion_x = s->sprite_offset[0][0]; in gmc1_motion() 48 src_x = s->mb_x * 16 + (motion_x >> (s->sprite_warping_accuracy + 1)); in gmc1_motion() 50 motion_x *= 1 << (3 - s->sprite_warping_accuracy); in gmc1_motion() 54 motion_x = 0; in gmc1_motion() 74 if ((motion_x | motion_y) & 7) { in gmc1_motion() 76 motion_x & 15, motion_y & 15, 128 - s->no_rounding); in gmc1_motion() 78 motion_x & 15, motion_y & 15, 128 - s->no_rounding); in gmc1_motion() 82 dxy = ((motion_x >> 3) & 1) | ((motion_y >> 2) & 2); in gmc1_motion() 93 motion_x in gmc1_motion() 192 hpel_motion(MpegEncContext *s, uint8_t *dest, uint8_t *src, int src_x, int src_y, op_pixels_func *pix_op, int motion_x, int motion_y) hpel_motion() argument 228 mpeg_motion_internal(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, uint8_t **ref_picture, op_pixels_func (*pix_op)[4], int motion_x, int motion_y, int h, int is_mpeg12, int is_16x8, int mb_y) mpeg_motion_internal() argument 370 mpeg_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_select, uint8_t **ref_picture, op_pixels_func (*pix_op)[4], int motion_x, int motion_y, int h, int is_16x8, int mb_y) mpeg_motion() argument 388 mpeg_motion_field(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int bottom_field, int field_select, uint8_t **ref_picture, op_pixels_func (*pix_op)[4], int motion_x, int motion_y, int h, int mb_y) mpeg_motion_field() argument 487 qpel_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, uint8_t **ref_picture, op_pixels_func (*pix_op)[4], qpel_mc_func (*qpix_op)[16], int motion_x, int motion_y, int h) qpel_motion() argument 766 int motion_x = s->mv[dir][i][0]; apply_8x8() local [all...] |
H A D | h263.c | 62 int motion_x, motion_y; in ff_h263_update_motion_val() local 64 motion_x = 0; in ff_h263_update_motion_val() 67 motion_x = s->mv[0][0][0]; in ff_h263_update_motion_val() 71 motion_x = s->mv[0][0][0] + s->mv[0][1][0]; in ff_h263_update_motion_val() 73 motion_x = (motion_x>>1) | (motion_x&1); in ff_h263_update_motion_val() 85 s->current_picture.motion_val[0][xy][0] = motion_x; in ff_h263_update_motion_val() 87 s->current_picture.motion_val[0][xy + 1][0] = motion_x; in ff_h263_update_motion_val() 89 s->current_picture.motion_val[0][xy + wrap][0] = motion_x; in ff_h263_update_motion_val() [all...] |
H A D | wmv2.c | 53 int motion_x, int motion_y, int h) in ff_mspel_motion() 61 dxy = ((motion_y & 1) << 1) | (motion_x & 1); in ff_mspel_motion() 63 src_x = s->mb_x * 16 + (motion_x >> 1); in ff_mspel_motion() 99 if ((motion_x & 3) != 0) in ff_mspel_motion() 103 mx = motion_x >> 2; in ff_mspel_motion() 50 ff_mspel_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture, op_pixels_func (*pix_op)[4], int motion_x, int motion_y, int h) ff_mspel_motion() argument
|
H A D | vp3.c | 910 int motion_x[4]; in unpack_vectors() local 948 last_gold_motion_x = motion_x[0] = vp4_get_mv(s, gb, 0, last_gold_motion_x); in unpack_vectors() 955 motion_x[0] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors() 960 motion_x[0] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors() 963 motion_x[0] = vp4_get_mv(s, gb, 0, last_motion_x); in unpack_vectors() 971 last_motion_x = motion_x[0]; in unpack_vectors() 987 motion_x[k] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors() 992 motion_x[k] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors() 995 motion_x[k] = vp4_get_mv(s, gb, 0, prior_last_motion_x); in unpack_vectors() 998 last_motion_x = motion_x[ in unpack_vectors() 1973 vp4_mc_loop_filter(Vp3DecodeContext *s, int plane, int motion_x, int motion_y, int bx, int by, uint8_t * motion_source, int stride, int src_x, int src_y, uint8_t *temp) vp4_mc_loop_filter() argument 2076 int motion_x = 0xdeadbeef, motion_y = 0xdeadbeef; render_slice() local [all...] |
H A D | xan.c | 241 int pixel_count, int motion_x, in xan_wc3_copy_pixel_run() 252 x + motion_x < 0 || x + motion_x >= s->avctx->width) in xan_wc3_copy_pixel_run() 263 prevframe_index = (y + motion_y) * stride + x + motion_x; in xan_wc3_copy_pixel_run() 264 prevframe_x = x + motion_x; in xan_wc3_copy_pixel_run() 266 if (prev_palette_plane == palette_plane && FFABS(motion_x + width*motion_y) < pixel_count) { in xan_wc3_copy_pixel_run() 306 int motion_x, motion_y; in xan_wc3_decode_frame() local 441 motion_x = sign_extend(vector >> 4, 4); in xan_wc3_decode_frame() 445 xan_wc3_copy_pixel_run(s, frame, x, y, size, motion_x, motion_y); in xan_wc3_decode_frame() 239 xan_wc3_copy_pixel_run(XanContext *s, AVFrame *frame, int x, int y, int pixel_count, int motion_x, int motion_y) xan_wc3_copy_pixel_run() argument
|
H A D | h263enc.h | 32 int motion_x, int motion_y); 75 int motion_x, int motion_y){ in get_p_cbp() 109 if (!(motion_x | motion_y | s->dquant) && s->mv_type == MV_TYPE_16X16) { in get_p_cbp() 73 get_p_cbp(MpegEncContext * s, int16_t block[6][64], int motion_x, int motion_y) get_p_cbp() argument
|
H A D | ituh263enc.c | 496 int motion_x, int motion_y) in ff_h263_encode_mb() 506 cbp= get_p_cbp(s, block, motion_x, motion_y); in ff_h263_encode_mb() 508 if ((cbp | motion_x | motion_y | s->dquant | (s->mv_type - MV_TYPE_16X16)) == 0) { 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() 569 motion_x = s->current_picture.motion_val[0][s->block_index[i]][0]; 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 in ff_h263_encode_mb() 494 ff_h263_encode_mb(MpegEncContext * s, int16_t block[6][64], int motion_x, int motion_y) ff_h263_encode_mb() argument [all...] |
H A D | mpegutils.c | 34 int motion_x, int motion_y, int motion_scale, in add_mb() 39 mb->motion_x = motion_x; in add_mb() 44 mb->src_x = dst_x + motion_x / motion_scale; in add_mb() 32 add_mb(AVMotionVector *mb, uint32_t mb_type, int dst_x, int dst_y, int motion_x, int motion_y, int motion_scale, int direction) add_mb() argument
|
H A D | mpeg12enc.c | 783 int motion_x, int motion_y, in mpeg1_encode_mb_internal() 803 ((s->pict_type == AV_PICTURE_TYPE_P && (motion_x | motion_y) == 0) || in mpeg1_encode_mb_internal() 856 if ((motion_x | motion_y) == 0) { in mpeg1_encode_mb_internal() 876 motion_x - s->last_mv[0][0][0], in mpeg1_encode_mb_internal() 891 motion_x - s->last_mv[0][0][0], in mpeg1_encode_mb_internal() 900 s->last_mv[0][1][0] = s->last_mv[0][0][0] = motion_x; in mpeg1_encode_mb_internal() 1058 int motion_x, int motion_y) in ff_mpeg1_encode_mb() 1061 mpeg1_encode_mb_internal(s, block, motion_x, motion_y, 6, 1); in ff_mpeg1_encode_mb() 1063 mpeg1_encode_mb_internal(s, block, motion_x, motion_y, 8, 0); in ff_mpeg1_encode_mb() 781 mpeg1_encode_mb_internal(MpegEncContext *s, int16_t block[8][64], int motion_x, int motion_y, int mb_block_count, int chroma_y_shift) mpeg1_encode_mb_internal() argument 1057 ff_mpeg1_encode_mb(MpegEncContext *s, int16_t block[8][64], int motion_x, int motion_y) ff_mpeg1_encode_mb() argument
|
H A D | wmv2enc.h | 28 int motion_x, int motion_y);
|
H A D | h261enc.c | 248 int motion_x, int motion_y) in ff_h261_encode_mb() 265 mvd = motion_x | motion_y; in ff_h261_encode_mb() 314 mv_diff_x = (motion_x >> 1) - s->last_mv[0][0][0]; in ff_h261_encode_mb() 316 s->last_mv[0][0][0] = (motion_x >> 1); in ff_h261_encode_mb() 247 ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y) ff_h261_encode_mb() argument
|
H A D | mpeg12enc.h | 34 int motion_x, int motion_y);
|
H A D | h261enc.h | 36 int motion_x, int motion_y);
|
H A D | mpeg4videoenc.h | 33 int motion_x, int motion_y);
|
H A D | wmv2.h | 43 int motion_x, int motion_y, int h);
|
H A D | msmpeg4enc.h | 41 int motion_x, int motion_y);
|
H A D | wmv2enc.c | 167 int motion_x, int motion_y) in ff_wmv2_encode_mb() 190 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_wmv2_encode_mb() 166 ff_wmv2_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y) ff_wmv2_encode_mb() argument
|
H A D | mpegvideo.c | 925 int motion_x, int motion_y) in hpel_motion_lowres() 934 motion_x /= 2; in hpel_motion_lowres() 938 sx = motion_x & s_mask; in hpel_motion_lowres() 940 src_x += motion_x >> lowres + 1; in hpel_motion_lowres() 974 int motion_x, int motion_y, in mpeg_motion_lowres() 991 motion_x /= 2; in mpeg_motion_lowres() 999 sx = motion_x & s_mask; in mpeg_motion_lowres() 1001 src_x = s->mb_x * 2 * block_s + (motion_x >> lowres + 1); in mpeg_motion_lowres() 1005 uvsx = ((motion_x >> 1) & s_mask) | (sx & 1); in mpeg_motion_lowres() 1011 mx = motion_x / in mpeg_motion_lowres() 918 hpel_motion_lowres(MpegEncContext *s, uint8_t *dest, uint8_t *src, int field_based, int field_select, int src_x, int src_y, int width, int height, ptrdiff_t stride, int h_edge_pos, int v_edge_pos, int w, int h, h264_chroma_mc_func *pix_op, int motion_x, int motion_y) hpel_motion_lowres() argument 965 mpeg_motion_lowres(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, uint8_t **ref_picture, h264_chroma_mc_func *pix_op, int motion_x, int motion_y, int h, int mb_y) mpeg_motion_lowres() argument [all...] |
H A D | mpeg4videoenc.c | 440 int motion_x, int motion_y, int mb_type) in get_b_cbp() 457 if ((motion_x | motion_y | s->dquant | mb_type) == 0) in get_b_cbp() 484 int motion_x, int motion_y) in ff_mpeg4_encode_mb() 526 cbp = get_b_cbp(s, block, motion_x, motion_y, mb_type); in ff_mpeg4_encode_mb() 528 if ((cbp | motion_x | motion_y | mb_type) == 0) { in ff_mpeg4_encode_mb() 568 ff_h263_encode_motion_vector(s, motion_x, motion_y, 1); in ff_mpeg4_encode_mb() 632 cbp = get_p_cbp(s, block, motion_x, motion_y); in ff_mpeg4_encode_mb() 634 if ((cbp | motion_x | motion_y | s->dquant) == 0 && in ff_mpeg4_encode_mb() 727 motion_x - pred_x, in ff_mpeg4_encode_mb() 439 get_b_cbp(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y, int mb_type) get_b_cbp() argument 483 ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y) ff_mpeg4_encode_mb() argument
|
H A D | mpegvideo_enc.c | 2020 int motion_x, int motion_y, in encode_mb_internal() 2368 ff_mpeg1_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2372 ff_mpeg4_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2378 ff_msmpeg4_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2382 ff_wmv2_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2386 ff_h261_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2394 ff_h263_encode_mb(s, s->block, motion_x, motion_y); in encode_mb_internal() 2411 static av_always_inline void encode_mb(MpegEncContext *s, int motion_x, int motion_y) in encode_mb() argument 2414 encode_mb_internal(s, motion_x, motion_y, 8, 8, 6, 1, 1, CHROMA_420); in encode_mb() 2416 encode_mb_internal(s, motion_x, motion_ in encode_mb() 2019 encode_mb_internal(MpegEncContext *s, int motion_x, int motion_y, int mb_block_height, int mb_block_width, int mb_block_count, int chroma_x_shift, int chroma_y_shift, int chroma_format) encode_mb_internal() argument 2488 encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegEncContext *best, PutBitContext pb[2], PutBitContext pb2[2], PutBitContext tex_pb[2], int *dmin, int *next_block, int motion_x, int motion_y) encode_mb_hq() argument 3233 int motion_x = 0, motion_y = 0; encode_thread() local [all...] |
H A D | msmpeg4enc.c | 374 int motion_x, int motion_y) in ff_msmpeg4_encode_mb() 389 if (s->use_skip_mb_code && (cbp | motion_x | motion_y) == 0) { in ff_msmpeg4_encode_mb() 415 msmpeg4v2_encode_motion(s, motion_x - pred_x); in ff_msmpeg4_encode_mb() 426 ff_msmpeg4_encode_motion(s, motion_x - pred_x, in ff_msmpeg4_encode_mb() 372 ff_msmpeg4_encode_mb(MpegEncContext * s, int16_t block[6][64], int motion_x, int motion_y) ff_msmpeg4_encode_mb() argument
|
H A D | mpeg12dec.c | 1794 int motion_x, motion_y, dir, i; in mpeg_decode_slice() local 1800 motion_x = motion_y = 0; in mpeg_decode_slice() 1803 motion_x = s->mv[dir][0][0]; in mpeg_decode_slice() 1806 motion_x = s->mv[dir][i][0]; in mpeg_decode_slice() 1810 s->current_picture.motion_val[dir][xy][0] = motion_x; in mpeg_decode_slice() 1812 s->current_picture.motion_val[dir][xy + 1][0] = motion_x; in mpeg_decode_slice()
|
H A D | snowdec.c | 105 avmv->motion_x = bn->mx * s->mv_scale; in predict_slice_buffered() 107 avmv->src_x = avmv->dst_x + avmv->motion_x / 8; in predict_slice_buffered()
|
H A D | diracdec.c | 1652 int motion_x = block->u.mv[ref][0]; in mc_subpel() local 1657 motion_x >>= s->chroma_x_shift; in mc_subpel() 1661 mx = motion_x & ~(-1U << s->mv_precision); in mc_subpel() 1663 motion_x >>= s->mv_precision; in mc_subpel() 1670 x += motion_x; in mc_subpel()
|
/third_party/ffmpeg/libavutil/ |
H A D | motion_vector.h | 50 * src_x = dst_x + motion_x / motion_scale 53 int32_t motion_x, motion_y; member
|