1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Add a few comments pointing to the G.728 specification

Originally committed as revision 14444 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-07-27 22:22:51 +00:00
parent 854ce441c3
commit b26d320583

View File

@ -74,11 +74,13 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
ractx->sb[x] = -scalar_product_float(ractx->sb + x + 1,
ractx->sp_lpc, 36);
/* convert log and do rms */
/* block 46 of G.728 spec */
sum = 32. - scalar_product_float(ractx->gain_lpc, ractx->lhist, 10);
/* block 47 of G.728 spec */
sum = av_clipf(sum, 0, 60);
/* block 48 of G.728 spec */
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */
for (x=0; x < 5; x++)