MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_mpv_motion

Function ff_mpv_motion

libavcodec/mpegvideo_motion.c:823–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823void ff_mpv_motion(MpegEncContext *s,
824 uint8_t *dest_y, uint8_t *dest_cb,
825 uint8_t *dest_cr, int dir,
826 uint8_t *const *ref_picture,
827 const op_pixels_func (*pix_op)[4],
828 const qpel_mc_func (*qpix_op)[16])
829{
830 av_assert2(s->out_format == FMT_MPEG1 ||
831 s->out_format == FMT_H263 ||
832 s->out_format == FMT_H261);
833 prefetch_motion(s, ref_picture, dir);
834
835#if !CONFIG_SMALL
836 if (s->out_format == FMT_MPEG1)
837 mpv_motion_internal(s, dest_y, dest_cb, dest_cr, dir,
838 ref_picture, pix_op, qpix_op, 1);
839 else
840#endif
841 mpv_motion_internal(s, dest_y, dest_cb, dest_cr, dir,
842 ref_picture, pix_op, qpix_op, 0);
843}

Callers 2

encode_mb_internalFunction · 0.85

Calls 2

mpv_motion_internalFunction · 0.85
prefetch_motionFunction · 0.70

Tested by

no test coverage detected