[FFmpeg-soc] [soc]: r1434 - amr/amrnbfloatdata.h

superdump subversion at mplayerhq.hu
Wed Nov 7 12:47:56 CET 2007


Author: superdump
Date: Wed Nov  7 12:47:56 2007
New Revision: 1434

Log:
We (myself, Kostya, maybe others) believe the 12.2kbps mode is bolted on. I'm
trying to minimise what is basically code duplication and noticed that these
tables are very similar.


Modified:
   amr/amrnbfloatdata.h

Modified: amr/amrnbfloatdata.h
==============================================================================
--- amr/amrnbfloatdata.h	(original)
+++ amr/amrnbfloatdata.h	Wed Nov  7 12:47:56 2007
@@ -1806,6 +1806,7 @@ static const uint8_t gray_decode[8] = { 
 
 // gain tables
 
+// scalar quantised pitch gain table for 7.95 and 12.2 kbps modes
 static const float qua_gain_pit[16] = {
 0.0             , 0.20001220703125, 0.400146484375  , 0.5             ,
 0.5999755859375 , 0.70001220703125, 0.75            , 0.79998779296875,
@@ -1813,11 +1814,4 @@ static const float qua_gain_pit[16] = {
 1.04998779296875, 1.0999755859375 , 1.1500244140625 , 1.20001220703125,
 };
 
-static const float qua_gain_pit_MODE_122[16] = {
-0.0           , 0.199951171875, 0.400146484375, 0.5           ,
-0.599853515625, 0.699951171875, 0.75          , 0.7998046875  ,
-0.849853515625, 0.89990234375 , 0.949951171875, 1.0           ,
-1.0498046875  , 1.099853515625, 1.14990234375 , 1.199951171875,
-};
-
 /**************************** end of tables *****************************/



More information about the FFmpeg-soc mailing list