aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-03-04 04:58:43 +0000
committerAlex Converse <alex.converse@gmail.com>2010-03-04 04:58:43 +0000
commitab2a30283417b37f29c4da9ad4dd708e79b21446 (patch)
tree85111eaf333d0540f76fd069763cb18643b100e6 /libavcodec/aac.c
parent65bec42e33dde457cbd7b9841c028460c0467b49 (diff)
downloadffmpeg-ab2a30283417b37f29c4da9ad4dd708e79b21446.tar.gz
AAC: Mark predictor functions av_always_inline.
This results in a 50% speedup on main profile with no increase in binary size. Originally committed as revision 22196 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac.c')
-rw-r--r--libavcodec/aac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index faf1d7287f..160c775f7a 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -478,7 +478,7 @@ static av_always_inline int lcg_random(int previous_val)
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_trunc(float pf)
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