"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/mpegvideo_motion.c" between
libav-12.1.tar.gz and libav-12.2.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

mpegvideo_motion.c  (libav-12.1):mpegvideo_motion.c  (libav-12.2)
skipping to change at line 213 skipping to change at line 213
/* WARNING: do no forget half pels */ /* WARNING: do no forget half pels */
src_x = av_clip(src_x, -16, s->width); // FIXME unneeded for emu? src_x = av_clip(src_x, -16, s->width); // FIXME unneeded for emu?
if (src_x != s->width) if (src_x != s->width)
dxy |= motion_x & 1; dxy |= motion_x & 1;
src_y = av_clip(src_y, -16, s->height); src_y = av_clip(src_y, -16, s->height);
if (src_y != s->height) if (src_y != s->height)
dxy |= (motion_y & 1) << 1; dxy |= (motion_y & 1) << 1;
src += src_y * s->linesize + src_x; src += src_y * s->linesize + src_x;
if (s->unrestricted_mv) { if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 1) - 8, 0) ||
if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 1) - 8, 0) || (unsigned)src_y > FFMAX(s->v_edge_pos - (motion_y & 1) - 8, 0)) {
(unsigned)src_y > FFMAX(s->v_edge_pos - (motion_y & 1) - 8, 0)) { s->vdsp.emulated_edge_mc(s->sc.edge_emu_buffer, src,
s->vdsp.emulated_edge_mc(s->sc.edge_emu_buffer, src, s->linesize, s->linesize,
s->linesize, s->linesize, 9, 9, src_x, src_y,
9, 9, s->h_edge_pos, s->v_edge_pos);
src_x, src_y, s->h_edge_pos, src = s->sc.edge_emu_buffer;
s->v_edge_pos); emu = 1;
src = s->sc.edge_emu_buffer;
emu = 1;
}
} }
pix_op[dxy](dest, src, s->linesize, 8); pix_op[dxy](dest, src, s->linesize, 8);
return emu; return emu;
} }
static av_always_inline static av_always_inline
void emulated_edge_mc(MpegEncContext *s, void emulated_edge_mc(MpegEncContext *s,
int src_x, int src_y, int src_x, int src_y,
int uvsrc_x, int uvsrc_y, int uvsrc_x, int uvsrc_y,
int field_based, int field_based,
 End of changes. 1 change blocks. 
11 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)