Home
last modified time | relevance | path

Searched refs:last_mv (Results 1 - 12 of 12) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dmpeg12enc.c806 ? ((s->mv[0][0][0] - s->last_mv[0][0][0]) | in mpeg1_encode_mb_internal()
807 (s->mv[0][0][1] - s->last_mv[0][0][1])) : 0) | in mpeg1_encode_mb_internal()
809 ? ((s->mv[1][0][0] - s->last_mv[1][0][0]) | in mpeg1_encode_mb_internal()
810 (s->mv[1][0][1] - s->last_mv[1][0][1])) : 0)) == 0))) { in mpeg1_encode_mb_internal()
817 s->last_mv[0][0][0] = in mpeg1_encode_mb_internal()
818 s->last_mv[0][0][1] = in mpeg1_encode_mb_internal()
819 s->last_mv[0][1][0] = in mpeg1_encode_mb_internal()
820 s->last_mv[0][1][1] = 0; in mpeg1_encode_mb_internal()
852 memset(s->last_mv, 0, sizeof(s->last_mv)); in mpeg1_encode_mb_internal()
[all...]
H A Dh261enc.c115 s->last_mv[0][0][0] = 0; in h261_encode_gob_header()
116 s->last_mv[0][0][1] = 0; in h261_encode_gob_header()
126 s->last_mv[0][0][0] = 0; in ff_h261_reorder_mb_index()
127 s->last_mv[0][0][1] = 0; in ff_h261_reorder_mb_index()
271 s->last_mv[0][0][0] = 0; in ff_h261_encode_mb()
272 s->last_mv[0][0][1] = 0; in ff_h261_encode_mb()
314 mv_diff_x = (motion_x >> 1) - s->last_mv[0][0][0]; in ff_h261_encode_mb()
315 mv_diff_y = (motion_y >> 1) - s->last_mv[0][0][1]; in ff_h261_encode_mb()
316 s->last_mv[0][0][0] = (motion_x >> 1); in ff_h261_encode_mb()
317 s->last_mv[ in ff_h261_encode_mb()
[all...]
H A Dmotion_est_template.c861 int P[10][2], int src_index, int ref_index, const int16_t (*last_mv)[2], in epzs_motion_search_internal()
875 const int ref_mv_xy = s->mb_x + s->mb_y * ref_mv_stride; // add to last_mv before passing FIXME in epzs_motion_search_internal()
906 CHECK_CLIPPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16, in epzs_motion_search_internal()
907 (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16) in epzs_motion_search_internal()
923 CHECK_CLIPPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16, in epzs_motion_search_internal()
924 (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16) in epzs_motion_search_internal()
931 CHECK_CLIPPED_MV((last_mv[ref_mv_xy-1][0]*ref_mv_scale + (1<<15))>>16, in epzs_motion_search_internal()
932 (last_mv[ref_mv_xy-1][1]*ref_mv_scale + (1<<15))>>16) in epzs_motion_search_internal()
934 CHECK_CLIPPED_MV((last_mv[ref_mv_xy-ref_mv_stride][0]*ref_mv_scale + (1<<15))>>16, in epzs_motion_search_internal()
935 (last_mv[ref_mv_x in epzs_motion_search_internal()
860 epzs_motion_search_internal(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int src_index, int ref_index, const int16_t (*last_mv)[2], int ref_mv_scale, int flags, int size, int h) epzs_motion_search_internal() argument
977 ff_epzs_motion_search(MpegEncContext *s, int *mx_ptr, int *my_ptr, int P[10][2], int src_index, int ref_index, const int16_t (*last_mv)[2], int ref_mv_scale, int size, int h) ff_epzs_motion_search() argument
993 epzs_motion_search2(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int src_index, int ref_index, const int16_t (*last_mv)[2], int ref_mv_scale, const int size) epzs_motion_search2() argument
[all...]
H A Dmpeg4videoenc.c502 s->last_mv[i][0][0] = in ff_mpeg4_encode_mb()
503 s->last_mv[i][0][1] = in ff_mpeg4_encode_mb()
504 s->last_mv[i][1][0] = in ff_mpeg4_encode_mb()
505 s->last_mv[i][1][1] = 0; in ff_mpeg4_encode_mb()
574 s->mv[0][0][0] - s->last_mv[0][0][0], in ff_mpeg4_encode_mb()
575 s->mv[0][0][1] - s->last_mv[0][0][1], in ff_mpeg4_encode_mb()
577 s->last_mv[0][0][0] = in ff_mpeg4_encode_mb()
578 s->last_mv[0][1][0] = s->mv[0][0][0]; in ff_mpeg4_encode_mb()
579 s->last_mv[0][0][1] = in ff_mpeg4_encode_mb()
580 s->last_mv[ in ff_mpeg4_encode_mb()
[all...]
H A Dmpeg12dec.c755 s->last_mv[0][0][0] = in mpeg_decode_mb()
756 s->last_mv[0][1][0] = mpeg_decode_motion(s, s->mpeg_f_code[0][0], in mpeg_decode_mb()
757 s->last_mv[0][0][0]); in mpeg_decode_mb()
759 s->last_mv[0][0][1] = in mpeg_decode_mb()
760 s->last_mv[0][1][1] = mpeg_decode_motion(s, s->mpeg_f_code[0][1], in mpeg_decode_mb()
761 s->last_mv[0][0][1]); in mpeg_decode_mb()
766 memset(s->last_mv, 0, sizeof(s->last_mv)); in mpeg_decode_mb()
814 s->last_mv[0][0][0] = 0; in mpeg_decode_mb()
815 s->last_mv[ in mpeg_decode_mb()
[all...]
H A Dmpeg4video.c73 s->last_mv[0][0][0] = in ff_mpeg4_clean_buffers()
74 s->last_mv[0][0][1] = in ff_mpeg4_clean_buffers()
75 s->last_mv[1][0][0] = in ff_mpeg4_clean_buffers()
76 s->last_mv[1][0][1] = 0; in ff_mpeg4_clean_buffers()
H A Dmpeg4videodec.c1627 s->last_mv[i][0][0] = in mpeg4_decode_mb()
1628 s->last_mv[i][0][1] = in mpeg4_decode_mb()
1629 s->last_mv[i][1][0] = in mpeg4_decode_mb()
1630 s->last_mv[i][1][1] = 0; in mpeg4_decode_mb()
1707 mx = ff_h263_decode_motion(s, s->last_mv[0][0][0], s->f_code); in mpeg4_decode_mb()
1708 my = ff_h263_decode_motion(s, s->last_mv[0][0][1], s->f_code); in mpeg4_decode_mb()
1709 s->last_mv[0][1][0] = in mpeg4_decode_mb()
1710 s->last_mv[0][0][0] = in mpeg4_decode_mb()
1712 s->last_mv[0][1][1] = in mpeg4_decode_mb()
1713 s->last_mv[ in mpeg4_decode_mb()
[all...]
H A Dmotion_est.h121 const int16_t (*last_mv)[2], int ref_mv_scale,
H A Dmpeg12.c116 memset(s->last_mv, 0, sizeof(s->last_mv)); in ff_mpeg1_clean_buffers()
H A Dsnowenc.c254 int16_t last_mv[3][2]; in encode_q_branch() local
280 last_mv[0][0]= s->block[index].mx; in encode_q_branch()
281 last_mv[0][1]= s->block[index].my; in encode_q_branch()
282 last_mv[1][0]= right->mx; in encode_q_branch()
283 last_mv[1][1]= right->my; in encode_q_branch()
284 last_mv[2][0]= bottom->mx; in encode_q_branch()
285 last_mv[2][1]= bottom->my; in encode_q_branch()
334 ref_score= ff_epzs_motion_search(&s->m, &ref_mx, &ref_my, P, 0, /*ref_index*/ 0, last_mv, in encode_q_branch()
H A Dmpegvideo.h258 int last_mv[2][2][2]; ///< last MV, used for MV prediction in MPEG-1 & B-frame MPEG-4 member
H A Dmpegvideo_enc.c2426 memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int)); //FIXME is memcpy faster than a loop? in copy_context_before_encode()
2455 memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int)); //FIXME is memcpy faster than a loop? in copy_context_after_encode()
2796 memset(s->last_mv, 0, sizeof(s->last_mv)); in encode_thread()

Completed in 23 milliseconds