[FFmpeg-soc] [soc]: r465 - in qcelp: doc/TODO qcelpdata.h qcelpdec.c
Benjamin Larsson
banan at ludd.ltu.se
Tue Jul 17 21:44:32 CEST 2007
reynaldo wrote:
> Author: reynaldo
> Date: Tue Jul 17 21:39:21 2007
> New Revision: 465
>
> Log:
> - Implemented pitch synthesis filter
>
>
> Modified:
> qcelp/doc/TODO
> qcelp/qcelpdata.h
> qcelp/qcelpdec.c
>
> Modified: qcelp/doc/TODO
> ==============================================================================
> --- qcelp/doc/TODO (original)
> +++ qcelp/doc/TODO Tue Jul 17 21:39:21 2007
> @@ -1,17 +1,15 @@
> -Clear:
> +Clear
>
> -- finish the codebook transmission code's conversion to gain, index and
> - (when needed) cbseed (almost done).
> -- review rates 1 and 1/2 gain predictor calculations.
> -- review qcelp_compute_cdn().
> +- Finish Pitch synthesis filter (almost done).
> +- Pitch pre-filter.
>
> Still somewhat fuzzy:
>
> -- Pitch synthesis filter.
> - Pitch pre-filter.
> - LSP freqs interpolation.
> - Formant synthesis filter.
> - Adaptive postfilter.
> +
> - Workability tests / Sample smashing
> - Fixes (if needed :-)
>
>
> Modified: qcelp/qcelpdata.h
> ==============================================================================
> --- qcelp/qcelpdata.h (original)
> +++ qcelp/qcelpdata.h Tue Jul 17 21:39:21 2007
> @@ -25,6 +25,9 @@
> */
>
> #define FXQ(v) (roundf(16384.0*v)/16384.0)
> +#ifndef PI
> +#define PI 3.141592653
> +#endif
>
> typedef enum
> {
>
> Modified: qcelp/qcelpdec.c
> ==============================================================================
> --- qcelp/qcelpdec.c (original)
> +++ qcelp/qcelpdec.c Tue Jul 17 21:39:21 2007
> @@ -267,6 +267,75 @@ static int qcelp_compute_svector(qcelp_p
> return 1;
> }
>
> +/**
> + * Computes hammsinc(x), this will probably be replaced
> + * by a lookup table
> + */
> +static float qcelp_hammsinc(int i)
> +{
> + return (sin(PI*i)/(PI*i))*(0.5+0.46*cos(PI*i/4));
> +}
> +
PI -> M_PI
/Benjamin
More information about the FFmpeg-soc
mailing list