[FFmpeg-devel] [PATCH] G.729 LSF decoding

Vladimir Voroshilov voroshil
Thu Jun 25 04:45:59 CEST 2009


2009/6/25 Michael Niedermayer <michaelni at gmx.at>:
> On Wed, Jun 24, 2009 at 08:08:41PM +0700, Vladimir Voroshilov wrote:
>> 2009/6/24 Michael Niedermayer <michaelni at gmx.at>:
>> > On Wed, Jun 24, 2009 at 12:56:14PM +0700, Vladimir Voroshilov wrote:
>> > [...]
>> >> ?g729data.h | ? 25 +++++++++++++++++++++++++
>> >> ?g729dec.c ?| ? ?9 +++++++++
>> >> ?2 files changed, 34 insertions(+)
>> >> 9a0593d79acb41466fdfd18622d2c4993cacf8ff ?0003-doxy-comments-for-LSF-array.169.patch
>> >> From a44ce37543e86a231e2ec1fffcffdf588338388e Mon Sep 17 00:00:00 2001
>> >> From: Vladimir Voroshilov <voroshil at gmail.com>
>> >> Date: Tue, 23 Jun 2009 12:39:33 +0700
>> >> Subject: [PATCH 03/25] doxy comments for LSF array
>> >>
>> >>
>> >> diff --git ffmpeg-r19260/libavcodec/g729data.h ffmpeg-r19260_v169/libavcodec/g729data.h
>> >> index 02d0b93..a7d73fd 100644
>> >> --- ffmpeg-r19260/libavcodec/g729data.h
>> >> +++ ffmpeg-r19260_v169/libavcodec/g729data.h
>> >> @@ -247,6 +247,25 @@ static const int16_t cb_gain_2nd_8k[1<<GC_2ND_IDX_BITS_8K][2] = { /*(1.14) (1.13
>> >>
>> >> ?/**
>> >> ? * 4th order Moving Average (MA) Predictor codebook (3.2.4 of G.729)
>> >> + *
>> >> + * float cb_ma_predictor_float[2][MA_NP][10] = {
>> >> + * ? {
>> >> + * ? ? {0.2570, 0.2780, 0.2800, 0.2736, 0.2757, 0.2764, 0.2675, 0.2678, 0.2779, 0.2647},
>> >> + * ? ? {0.2142, 0.2194, 0.2331, 0.2230, 0.2272, 0.2252, 0.2148, 0.2123, 0.2115, 0.2096},
>> >> + * ? ? {0.1670, 0.1523, 0.1567, 0.1580, 0.1601, 0.1569, 0.1589, 0.1555, 0.1474, 0.1571},
>> >> + * ? ? {0.1238, 0.0925, 0.0798, 0.0923, 0.0890, 0.0828, 0.1010, 0.0988, 0.0872, 0.1060},
>> >> + * ? },
>> >> + * ? {
>> >> + * ? ? {0.2360, 0.2405, 0.2499, 0.2495, 0.2517, 0.2591, 0.2636, 0.2625, 0.2551, 0.2310},
>> >> + * ? ? {0.1285, 0.0925, 0.0779, 0.1060, 0.1183, 0.1176, 0.1277, 0.1268, 0.1193, 0.1211},
>> >> + * ? ? {0.0981, 0.0589, 0.0401, 0.0654, 0.0761, 0.0728, 0.0841, 0.0826, 0.0776, 0.0891},
>> >> + * ? ? {0.0923, 0.0486, 0.0287, 0.0498, 0.0526, 0.0482, 0.0621, 0.0636, 0.0584, 0.0794},
>> >> + * ? },
>> >> + * };
>> >> + * ? ? ? ? ? ? ? ? ? ? ? ? ? ? 15
>> >> + * cb_ma_predictor[j][k][i] = 2 * cb_ma_predictor_float[j][k][i]
>> >
>> > thats not mathematically correct, = mean equal ...
>>
>> Do you mean dropping decimal part?
>
> i dont know, i just know what you write is not correct
>
>
>> How can i fix this then ? I'm in doubt.
>
> you could use ceil()/floor() and others

If this is not what you want to see, then i didn't know how should i
write this comments.

>
>
> [...]
> --
> Michael ? ? GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> When you are offended at any man's fault, turn to yourself and study your
> own failings. Then you will forget your anger. -- Epictetus
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iD8DBQFKQoX2YR7HhwQLD6sRAg2AAJ9PqLnSuNT2UvZYqW5LAJ5xofFJxQCfZlId
> 0xsK73yDkyYBAVGRnQ4YpJQ=
> =IOPE
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>



-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-doxy-comments-for-LSF-array.171.patch
Type: text/x-diff
Size: 3171 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090625/18f44a64/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Doxy-for-LSF-erasure-case.171.patch
Type: text/x-diff
Size: 2177 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090625/18f44a64/attachment-0001.patch>



More information about the ffmpeg-devel mailing list