OSDN Git Service

mpegvideo: reduce excessive inlining of mpeg_motion()
authorMans Rullgard <mans@mansr.com>
Sat, 4 Aug 2012 01:30:02 +0000 (02:30 +0100)
committerMans Rullgard <mans@mansr.com>
Thu, 9 Aug 2012 00:31:37 +0000 (01:31 +0100)
commitf69f4036f8cc3b673864dce01d2714fd5e49e8da
treec8198545eaebf8f7cb6ba5a995fa3da3675f3d38
parent7a851153d3fe1a9e0d60bf11053870d1ea8241e6
mpegvideo: reduce excessive inlining of mpeg_motion()

The main benefit of inlining this function is from constant
propagation for the 'field_based' argument.  Instead of inlining
all calls, create two versions of the function for field_based
values of 0 and 1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/mpegvideo_motion.c