[FFmpeg-cvslog] r22196 - trunk/libavcodec/aac.c

alexc subversion
Thu Mar 4 05:58:44 CET 2010


Author: alexc
Date: Thu Mar  4 05:58:43 2010
New Revision: 22196

Log:
AAC: Mark predictor functions av_always_inline.

This results in a 50% speedup on main profile with no increase in binary size.

Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Thu Mar  4 03:32:48 2010	(r22195)
+++ trunk/libavcodec/aac.c	Thu Mar  4 05:58:43 2010	(r22196)
@@ -478,7 +478,7 @@ static av_always_inline int lcg_random(i
     return previous_val * 1664525 + 1013904223;
 }
 
-static void reset_predict_state(PredictorState *ps)
+static av_always_inline void reset_predict_state(PredictorState *ps)
 {
     ps->r0   = 0.0f;
     ps->r1   = 0.0f;
@@ -1247,7 +1247,7 @@ static av_always_inline float flt16_trun
     return pun.f;
 }
 
-static void predict(AACContext *ac, PredictorState *ps, float *coef,
+static av_always_inline void predict(AACContext *ac, PredictorState *ps, float *coef,
                     int output_enable)
 {
     const float a     = 0.953125; // 61.0 / 64



More information about the ffmpeg-cvslog mailing list