...
>
>
> In the psy model, we use SNR_s with the formula
> nb[b] = ecb[b] * norm_s[b] * exp( (double) SNR_s[b] * LN_TO_LOG10 );
>
> You can easily notice that
> exp(-8,240 * LN_TO_LOG10) = 0.15
> exp(-7,447 * LN_TO_LOG10) = 0.18
> �
>
> It seems that the exponential calculation is already included in the SNR_s
> table for MPEG-2,
> but not for MPEG-1.
>
> Lionel
-=- MIME -=-
> CE MESSAGE EST AU FORMAT MIME. Comme votre lecteur de courrier ne comprend pas
ce format, il se peut que tout ou partie de ce message soit illisible.
--MS_Mac_OE_3023866806_186234_MIME_Part
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
The table of SNR_s for all the frequencies( deduced from psydata) is :
static double TableSNRShort [] =3D
{
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , // F=
r
equency =3D 16000.
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 ,
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 ,
0.150000006 , 0.150000006 , 0.180000007 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.180000007 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.25 , 0.25 , 0.25 , 0.280000001 ,
0.280000001 ,
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , // F=
r
equency =3D 22050.
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 ,
0.150000006 , 0.150000006 , 0.150000006 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.180000007 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.25 , 0.25 , 0.25 , 0.280000001 , 0.280000001 ,
0.280000001 , 0.300000012 , 0.300000012 , 0.300000012 , 0.400000006 ,
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , // F=
r
equency =3D 24000.
0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 , 0.150000006 ,
0.150000006 , 0.150000006 , 0.180000007 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 , 0.180000007 ,
0.180000007 , 0.180000007 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 ,
0.200000003 , 0.200000003 , 0.200000003 , 0.200000003 , 0.25 ,
0.25 , 0.25 , 0.280000001 , 0.280000001 , 0.300000012 ,
0.300000012 , 0.300000012 , 0.400000006 , 0.400000006 , 0.400000006 ,
-8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , /=
/
Frequency =3D 32000.
-8.240 , -8.240 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 ,
-7.447 , -7.447 , -7.447 , -7.447 , -6.990 , -6.990 , -6.990 , -6.990 ,
-6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.020 , -6.020 ,
-6.020 , -6.020 , -5.229 , -5.229 , -5.229 , -5.229 , -4.559 , -4.559 ,
-3.980 , -3.980 ,
-8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , /=
/
Frequency =3D 44100.
-8.240 , -8.240 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 ,
-7.447 , -7.447 , -7.447 , -7.447 , -6.990 , -6.990 , -6.990 , -6.990 ,
-6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.020 , -6.020 ,
-6.020 , -6.020 , -5.229 , -5.229 , -5.229 , -5.229 , -4.559 ,
-8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , -8.240 , /=
/
Frequency =3D 48000.
-8.240 , -8.240 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 , -7.447 ,
-7.447 , -7.447 , -7.447 , -7.447 , -6.990 , -6.990 , -6.990 , -6.990 ,
-6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.990 , -6.020 , -6.020 ,
-6.020 , -6.020 , -5.229 , -5.229 , -5.229 , -5.229
};
In the psy model, we use SNR_s with the formula
nb[b] =3D ecb[b] * norm_s[b] * exp( (double) SNR_s[b] * LN_TO_LOG10 );
You can easily notice that
exp(-8,240 * LN_TO_LOG10) =3D 0.15
exp(-7,447 * LN_TO_LOG10) =3D 0.18
=8A
It seems that the exponential calculation is already included in the SNR_s
table for MPEG-2,
but not for MPEG-1.
Lionel
--MS_Mac_OE_3023866806_186234_MIME_Part
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Table SNR_s bug</TITLE>
</HEAD>
<BODY BGCOLOR=3D"#FFFFFF">
<TT>The table of SNR_s for all the frequencies( deduced from psydata) is :<=
BR>
<BR>
static double TableSNRShort [] =3D<BR>
{<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 , // Frequency =3D 16000=
.<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 ,<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 ,<BR>
0.150000006 , 0.150000006 , 0.180000007 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.180000007 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.180000007 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.25 , 0.25=
, 0.25 ,&nbs=
p;0.280000001 ,<BR>
0.280000001 ,<BR>
<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 , // Frequency =3D 22050=
.<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 ,<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.180000007 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.180000007 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.25 , 0.25 =
, 0.25 , 0.280000001 ,&nbs=
p;0.280000001 ,<BR>
0.280000001 , 0.300000012 , 0.300000012 ,&nb=
sp;0.300000012 , 0.400000006 ,<BR>
<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 , // Frequency =3D 24000=
.<BR>
0.150000006 , 0.150000006 , 0.150000006 ,&nb=
sp;0.150000006 , 0.150000006 ,<BR>
0.150000006 , 0.150000006 , 0.180000007 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.180000007 ,&nb=
sp;0.180000007 , 0.180000007 ,<BR>
0.180000007 , 0.180000007 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.200000003 ,<BR>
0.200000003 , 0.200000003 , 0.200000003 ,&nb=
sp;0.200000003 , 0.25 ,<BR>
0.25 , 0.25 =
, 0.280000001 , 0.280000001 , 0.300000012&nbs=
p;,<BR>
0.300000012 , 0.300000012 , 0.400000006 ,&nb=
sp;0.400000006 , 0.400000006 ,<BR>
<BR>
-8.240 , -8.240 , -8.240 , -8.240 =
, -8.240 , -8.240 , -8.240 , -8.240 =
, // Frequency =3D 32000.<BR>
-8.240 , -8.240 , -7.447 , -7.447 =
, -7.447 , -7.447 , -7.447 , -7.447 =
,<BR>
-7.447 , -7.447 , -7.447 , -7.447 =
, -6.990 , -6.990 , -6.990 , -6.990 =
,<BR>
-6.990 , -6.990 , -6.990 , -6.990 =
, -6.990 , -6.990 , -6.020 , -6.020 =
,<BR>
-6.020 , -6.020 , -5.229 , -5.229 =
, -5.229 , -5.229 , -4.559 , -4.559 =
,<BR>
-3.980 , -3.980 ,<BR>
<BR>
-8.240 , -8.240 , -8.240 , -8.240 =
, -8.240 , -8.240 , -8.240 , -8.240 =
, // Frequency =3D 44100.<BR>
-8.240 , -8.240 , -7.447 , -7.447 =
, -7.447 , -7.447 , -7.447 , -7.447 =
,<BR>
-7.447 , -7.447 , -7.447 , -7.447 =
, -6.990 , -6.990 , -6.990 , -6.990 =
,<BR>
-6.990 , -6.990 , -6.990 , -6.990 =
, -6.990 , -6.990 , -6.020 , -6.020 =
,<BR>
-6.020 , -6.020 , -5.229 , -5.229 =
, -5.229 , -5.229 , -4.559 ,<BR>
<BR>
-8.240 , -8.240 , -8.240 , -8.240 =
, -8.240 , -8.240 , -8.240 , -8.240 =
, // Frequency =3D 48000.<BR>
-8.240 , -8.240 , -7.447 , -7.447 =
, -7.447 , -7.447 , -7.447 , -7.447 =
,<BR>
-7.447 , -7.447 , -7.447 , -7.447 =
, -6.990 , -6.990 , -6.990 , -6.990 =
,<BR>
-6.990 , -6.990 , -6.990 , -6.990 =
, -6.990 , -6.990 , -6.020 , -6.020 =
,<BR>
-6.020 , -6.020 , -5.229 , -5.229 =
, -5.229 , -5.229<BR>
};<BR>
<BR>
<BR>
In the psy model, we use SNR_s with the formula <BR>
nb[b] =3D ecb[b] * norm_s[b] * exp( (double) SNR_s[b] * LN_TO_LOG10 );<BR>
<BR>
You can easily notice that<BR>
exp(-8,240 * LN_TO_LOG10) =3D 0.15<BR>
exp(-7,447 * LN_TO_LOG10) =3D 0.18<BR>
=8A<BR>
<BR>
It seems that the exponential calculation is already included in the SNR_s =
table for MPEG-2,<BR>
but not for MPEG-1.<BR>
<BR>
Lionel<BR>
</TT>
</BODY>
</HTML>
--MS_Mac_OE_3023866806_186234_MIME_Part--
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Looks like another MPEG2 bug - have you tested this after fixing it?
Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )