[FFmpeg-soc] [soc]: r340 - qcelp/qcelpdec.c
Michael Niedermayer
michaelni at gmx.at
Sun Jul 8 09:11:28 CEST 2007
Hi
On Sun, Jul 08, 2007 at 03:11:52AM +0200, reynaldo wrote:
> Author: reynaldo
> Date: Sun Jul 8 03:11:51 2007
> New Revision: 340
>
> Log:
> Main incorrect packet detection loop, still lacks codebook gain sanity checks
>
> Modified:
> qcelp/qcelpdec.c
>
> Modified: qcelp/qcelpdec.c
> ==============================================================================
> --- qcelp/qcelpdec.c (original)
> +++ qcelp/qcelpdec.c Sun Jul 8 03:11:51 2007
> @@ -80,6 +80,26 @@ static int qcelp_decode_close(AVCodecCon
> return 0;
> }
>
> +/**
> + * Decodes the five |R2 LSPVi vectors to get the 10
> + * quantized LSP frequencies from any packet rate but 1/8
> + *
> + * For details see TIA/EIA/IS-733 2.4.3.2.6.2-2
> + */
> +void qcelp_lspv2lspf(const uint8_t *lspv, float *lspf)
> +{
> + lspf[0]= qcelp_lspvq1[lspv[0]].x;
> + lspf[1]=lspf[0]+qcelp_lspvq1[lspv[0]].y;
> + lspf[2]=lspf[1]+qcelp_lspvq2[lspv[1]].x;
> + lspf[3]=lspf[2]+qcelp_lspvq2[lspv[1]].y;
> + lspf[4]=lspf[3]+qcelp_lspvq3[lspv[2]].x;
> + lspf[5]=lspf[4]+qcelp_lspvq3[lspv[2]].y;
> + lspf[6]=lspf[5]+qcelp_lspvq4[lspv[3]].x;
> + lspf[7]=lspf[6]+qcelp_lspvq4[lspv[3]].y;
> + lspf[8]=lspf[7]+qcelp_lspvq5[lspv[4]].x;
> + lspf[9]=lspf[8]+qcelp_lspvq5[lspv[4]].y;
> +}
this looks like it should be a for() loop
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20070708/89c88cb1/attachment.pgp>
More information about the FFmpeg-soc
mailing list