[FFmpeg-soc] [soc]: r1458 - amr/amrnbfloatdec.c
Robert Swain
robert.swain at gmail.com
Sun Nov 25 23:45:49 CET 2007
Hello,
On Sun, 2007-11-25 at 23:42 +0100, superdump wrote:
> Author: superdump
> Date: Sun Nov 25 23:42:47 2007
> New Revision: 1458
>
> Log:
> Pitch sharpening
There are some other cases to add but this is the basic implementation.
I'll do the rest as I get to it.
> Modified:
> amr/amrnbfloatdec.c
>
> Modified: amr/amrnbfloatdec.c
> ==============================================================================
> --- amr/amrnbfloatdec.c (original)
> +++ amr/amrnbfloatdec.c Sun Nov 25 23:42:47 2007
> @@ -807,6 +807,20 @@ static float fixed_gain_prediction(float
> /*** end of gain decoding functions ***/
>
>
> +/*** pre-processing functions ***/
> +
> +static inline float av_clipf(float a, float min, float max) {
> + if(a>max)
> + return max;
> + else if(a<min)
> + return min;
> + else
> + return a;
> +}
> +
> +/*** end of pre-processing functions ***/
I guess this should be added to libavutil, and maybe it can be improved. :)
Rob
More information about the FFmpeg-soc
mailing list