[FFmpeg-cvslog] vc1dsp: mark put/avg_vc1_mspel_mc() always_inline
Mans Rullgard
git at videolan.org
Sat Jun 9 00:10:27 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Jun 7 14:20:44 2012 +0100| [bc92214e2712d7d185afbd4ad359623eea4f69ed] | committer: Mans Rullgard
vc1dsp: mark put/avg_vc1_mspel_mc() always_inline
This ensures that these functions are inlined into the per-position
entry points, allowing constant propagation as needed for proper
optimisation.
18% faster VC1 decoding on Cortex-A9.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc92214e2712d7d185afbd4ad359623eea4f69ed
---
libavcodec/vc1dsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c
index b40824b..7b50af6 100644
--- a/libavcodec/vc1dsp.c
+++ b/libavcodec/vc1dsp.c
@@ -561,7 +561,7 @@ static av_always_inline int vc1_mspel_filter(const uint8_t *src, int stride, int
/** Function used to do motion compensation with bicubic interpolation
*/
#define VC1_MSPEL_MC(OP, OPNAME)\
-static void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int hmode, int vmode, int rnd)\
+static av_always_inline void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int hmode, int vmode, int rnd)\
{\
int i, j;\
\
More information about the ffmpeg-cvslog
mailing list