Mercurial > libavcodec.hg
comparison rv40.c @ 12019:570816e8d347 libavcodec
rv40: make rv40_adaptive_loop_filter() always_inline
This function is called from the rv40_[hv]_loop_filter() wrappers
with some arguments constant, so it really needs to be inlined.
3% faster overall on Cortex-A8.
author | mru |
---|---|
date | Tue, 29 Jun 2010 22:41:22 +0000 |
parents | 7dd2a45249a9 |
children | 914f484bb476 |
comparison
equal
deleted
inserted
replaced
12018:1b11083f4bb4 | 12019:570816e8d347 |
---|---|
305 t = (diff_q1q0 + diff_q1q2 + diff) >> 1; | 305 t = (diff_q1q0 + diff_q1q2 + diff) >> 1; |
306 src[ 1*step] = cm[src[ 1*step] - CLIP_SYMM(t, lim_q1)]; | 306 src[ 1*step] = cm[src[ 1*step] - CLIP_SYMM(t, lim_q1)]; |
307 } | 307 } |
308 } | 308 } |
309 | 309 |
310 static inline void rv40_adaptive_loop_filter(uint8_t *src, const int step, | 310 static av_always_inline void rv40_adaptive_loop_filter(uint8_t *src, const int step, |
311 const int stride, const int dmode, | 311 const int stride, const int dmode, |
312 const int lim_q1, const int lim_p1, | 312 const int lim_q1, const int lim_p1, |
313 const int alpha, | 313 const int alpha, |
314 const int beta, const int beta2, | 314 const int beta, const int beta2, |
315 const int chroma, const int edge) | 315 const int chroma, const int edge) |