/third_party/ffmpeg/libavcodec/ |
H A D | mpegvideo_motion.c | 42 int src_x, src_y, motion_x, motion_y; in gmc1_motion() local 47 motion_y = s->sprite_offset[0][1]; in gmc1_motion() 49 src_y = s->mb_y * 16 + (motion_y >> (s->sprite_warping_accuracy + 1)); in gmc1_motion() 51 motion_y *= 1 << (3 - s->sprite_warping_accuracy); in gmc1_motion() 57 motion_y = 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() 94 motion_y 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 767 int motion_y = s->mv[dir][i][1]; apply_8x8() local [all...] |
H A D | h263.c | 62 int motion_x, motion_y; in ff_h263_update_motion_val() local 65 motion_y = 0; in ff_h263_update_motion_val() 68 motion_y = s->mv[0][0][1]; in ff_h263_update_motion_val() 72 motion_y = s->mv[0][0][1] + s->mv[0][1][1]; in ff_h263_update_motion_val() 86 s->current_picture.motion_val[0][xy][1] = motion_y; in ff_h263_update_motion_val() 88 s->current_picture.motion_val[0][xy + 1][1] = motion_y; in ff_h263_update_motion_val() 90 s->current_picture.motion_val[0][xy + wrap][1] = motion_y; in ff_h263_update_motion_val() 92 s->current_picture.motion_val[0][xy + 1 + wrap][1] = motion_y; in ff_h263_update_motion_val()
|
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() 64 src_y = s->mb_y * 16 + (motion_y >> 1); in ff_mspel_motion() 101 if ((motion_y & 3) != 0) in ff_mspel_motion() 104 my = motion_y >> 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 | 911 int motion_y[4]; in unpack_vectors() local 949 last_gold_motion_y = motion_y[0] = vp4_get_mv(s, gb, 1, last_gold_motion_y); in unpack_vectors() 957 motion_y[0] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors() 961 motion_y[0] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors() 964 motion_y[0] = vp4_get_mv(s, gb, 1, last_motion_y); in unpack_vectors() 972 last_motion_y = motion_y[0]; in unpack_vectors() 989 motion_y[k] = get_vlc2(gb, s->motion_vector_vlc.table, in unpack_vectors() 993 motion_y[k] = fixed_motion_vector_table[get_bits(gb, 6)]; in unpack_vectors() 996 motion_y[k] = vp4_get_mv(s, gb, 1, prior_last_motion_y); in unpack_vectors() 999 last_motion_y = motion_y[ in unpack_vectors() 1950 await_reference_row(Vp3DecodeContext *s, Vp3Fragment *fragment, int motion_y, int y) await_reference_row() argument 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 | 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 | xan.c | 242 int motion_y) in xan_wc3_copy_pixel_run() 251 if (y + motion_y < 0 || y + motion_y >= s->avctx->height || in xan_wc3_copy_pixel_run() 263 prevframe_index = (y + motion_y) * stride + 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 442 motion_y = sign_extend(vector & 0xF, 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 | 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() 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() 570 motion_y = s->current_picture.motion_val[0][s->block_index[i]][1]; 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 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() 40 mb->motion_y = motion_y; in add_mb() 45 mb->src_y = dst_y + motion_y / 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() 880 motion_y - s->last_mv[0][0][1], in mpeg1_encode_mb_internal() 895 motion_y - s->last_mv[0][0][1], in mpeg1_encode_mb_internal() 901 s->last_mv[0][1][1] = s->last_mv[0][0][1] = motion_y; 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() 315 mv_diff_y = (motion_y >> 1) - s->last_mv[0][0][1]; in ff_h261_encode_mb() 317 s->last_mv[0][0][1] = (motion_y >> 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() 191 motion_y - pred_y); 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() 935 motion_y /= 2; in hpel_motion_lowres() 939 sy = motion_y & s_mask; in hpel_motion_lowres() 941 src_y += motion_y >> lowres + 1; in hpel_motion_lowres() 974 int motion_x, int motion_y, in mpeg_motion_lowres() 992 motion_y /= 2; in mpeg_motion_lowres() 996 motion_y += (bottom_field - field_select)*((1 << lowres)-1); in mpeg_motion_lowres() 1000 sy = motion_y & s_mask; in mpeg_motion_lowres() 1002 src_y = (mb_y * 2 * block_s >> field_based) + (motion_y >> lowres + 1); in mpeg_motion_lowres() 1006 uvsy = ((motion_y >> 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() 728 motion_y - pred_y, 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_y, 1 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() 416 msmpeg4v2_encode_motion(s, motion_y - pred_y); in ff_msmpeg4_encode_mb() 427 motion_y - pred_y); 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() 1804 motion_y = s->mv[dir][0][1]; in mpeg_decode_slice() 1807 motion_y = s->mv[dir][i][1]; in mpeg_decode_slice() 1811 s->current_picture.motion_val[dir][xy][1] = motion_y; in mpeg_decode_slice() 1813 s->current_picture.motion_val[dir][xy + 1][1] = motion_y; in mpeg_decode_slice()
|
H A D | snowdec.c | 106 avmv->motion_y = bn->my * s->mv_scale; in predict_slice_buffered() 108 avmv->src_y = avmv->dst_y + avmv->motion_y / 8; in predict_slice_buffered()
|
H A D | diracdec.c | 1653 int motion_y = block->u.mv[ref][1]; in mc_subpel() local 1658 motion_y >>= s->chroma_y_shift; in mc_subpel() 1662 my = motion_y & ~(-1U << s->mv_precision); in mc_subpel() 1664 motion_y >>= s->mv_precision; in mc_subpel() 1671 y += motion_y; in mc_subpel()
|
/third_party/ffmpeg/libavutil/ |
H A D | motion_vector.h | 51 * src_y = dst_y + motion_y / motion_scale 53 int32_t motion_x, motion_y; member
|