[FFmpeg-devel] [PATCH 1/4] libavcodec: changed mathematical functions in aacpsy.c
Michael Niedermayer
michaelni at gmx.at
Thu Mar 7 03:21:12 CET 2013
On Wed, Mar 06, 2013 at 02:55:03PM +0100, Bojan Zivkovic wrote:
> This patch changes existing mathematical functions with faster
> ones. Speeds up encoding more than 10%. Tested on x86 and
> MIPS platforms.
>
> Signed-off-by: Bojan Zivkovic <bojan at mips.com>
> ---
> libavcodec/aacpsy.c | 11 ++++++++---
> 1 files changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
> index d77b3de..8056cdc 100644
> --- a/libavcodec/aacpsy.c
> +++ b/libavcodec/aacpsy.c
> @@ -78,6 +78,7 @@
>
> #define PSY_3GPP_AH_THR_LONG 0.5f
> #define PSY_3GPP_AH_THR_SHORT 0.63f
> +#define PSY_LN_10 log(10)
patch applied without PSY_LN_10 (as its unused and could cause a slow
function to be evaluated)
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130307/132383e4/attachment.asc>
More information about the ffmpeg-devel
mailing list