[FFmpeg-devel] [PATCH] Another function shared between AMR and SIPR

Diego Biurrun diego
Mon Oct 26 11:02:05 CET 2009


On Mon, Oct 26, 2009 at 12:12:46AM +0100, Vitor Sessak wrote:
> 
> --- libavcodec/acelp_pitch_delay.c	(revision 20368)
> +++ libavcodec/acelp_pitch_delay.c	(working copy)
> @@ -119,3 +119,24 @@
> +
> +    float val = fixed_gain_factor *
> +        exp2f(log2f(10.0) * 0.05 *
> +              (ff_dot_productf(pred_table, prediction_error, 4) +
> +               energy_mean)) /

weird indentation

> --- libavcodec/acelp_pitch_delay.h	(revision 20368)
> +++ libavcodec/acelp_pitch_delay.h	(working copy)
> @@ -220,4 +220,18 @@
>  
> +/**
> + * Calculate fixed gain (part of section 6.1.3 of AMR spec)

.

Diego



More information about the ffmpeg-devel mailing list