exc_8_128_table.c 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /* Copyright (C) 2002 Jean-Marc Valin
  2. File: exc_8_128_table.c
  3. Codebook for excitation in narrowband CELP mode (7000 bps)
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7. - Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. - Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. - Neither the name of the Xiph.org Foundation nor the names of its
  13. contributors may be used to endorse or promote products derived from
  14. this software without specific prior written permission.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16. ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
  19. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  20. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  21. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  22. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  23. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  24. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. const signed char exc_8_128_table[1024] = {
  28. -14,9,13,-32,2,-10,31,-10,
  29. -8,-8,6,-4,-1,10,-64,23,
  30. 6,20,13,6,8,-22,16,34,
  31. 7,42,-49,-28,5,26,4,-15,
  32. 41,34,41,32,33,24,23,14,
  33. 8,40,34,4,-24,-41,-19,-15,
  34. 13,-13,33,-54,24,27,-44,33,
  35. 27,-15,-15,24,-19,14,-36,14,
  36. -9,24,-12,-4,37,-5,16,-34,
  37. 5,10,33,-15,-54,-16,12,25,
  38. 12,1,2,0,3,-1,-4,-4,
  39. 11,2,-56,54,27,-20,13,-6,
  40. -46,-41,-33,-11,-5,7,12,14,
  41. -14,-5,8,20,6,3,4,-8,
  42. -5,-42,11,8,-14,25,-2,2,
  43. 13,11,-22,39,-9,9,5,-45,
  44. -9,7,-9,12,-7,34,-17,-102,
  45. 7,2,-42,18,35,-9,-34,11,
  46. -5,-2,3,22,46,-52,-25,-9,
  47. -94,8,11,-5,-5,-5,4,-7,
  48. -35,-7,54,5,-32,3,24,-9,
  49. -22,8,65,37,-1,-12,-23,-6,
  50. -9,-28,55,-33,14,-3,2,18,
  51. -60,41,-17,8,-16,17,-11,0,
  52. -11,29,-28,37,9,-53,33,-14,
  53. -9,7,-25,-7,-11,26,-32,-8,
  54. 24,-21,22,-19,19,-10,29,-14,
  55. 0,0,0,0,0,0,0,0,
  56. -5,-52,10,41,6,-30,-4,16,
  57. 32,22,-27,-22,32,-3,-28,-3,
  58. 3,-35,6,17,23,21,8,2,
  59. 4,-45,-17,14,23,-4,-31,-11,
  60. -3,14,1,19,-11,2,61,-8,
  61. 9,-12,7,-10,12,-3,-24,99,
  62. -48,23,50,-37,-5,-23,0,8,
  63. -14,35,-64,-5,46,-25,13,-1,
  64. -49,-19,-15,9,34,50,25,11,
  65. -6,-9,-16,-20,-32,-33,-32,-27,
  66. 10,-8,12,-15,56,-14,-32,33,
  67. 3,-9,1,65,-9,-9,-10,-2,
  68. -6,-23,9,17,3,-28,13,-32,
  69. 4,-2,-10,4,-16,76,12,-52,
  70. 6,13,33,-6,4,-14,-9,-3,
  71. 1,-15,-16,28,1,-15,11,16,
  72. 9,4,-21,-37,-40,-6,22,12,
  73. -15,-23,-14,-17,-16,-9,-10,-9,
  74. 13,-39,41,5,-9,16,-38,25,
  75. 46,-47,4,49,-14,17,-2,6,
  76. 18,5,-6,-33,-22,44,50,-2,
  77. 1,3,-6,7,7,-3,-21,38,
  78. -18,34,-14,-41,60,-13,6,16,
  79. -24,35,19,-13,-36,24,3,-17,
  80. -14,-10,36,44,-44,-29,-3,3,
  81. -54,-8,12,55,26,4,-2,-5,
  82. 2,-11,22,-23,2,22,1,-25,
  83. -39,66,-49,21,-8,-2,10,-14,
  84. -60,25,6,10,27,-25,16,5,
  85. -2,-9,26,-13,-20,58,-2,7,
  86. 52,-9,2,5,-4,-15,23,-1,
  87. -38,23,8,27,-6,0,-27,-7,
  88. 39,-10,-14,26,11,-45,-12,9,
  89. -5,34,4,-35,10,43,-22,-11,
  90. 56,-7,20,1,10,1,-26,9,
  91. 94,11,-27,-14,-13,1,-11,0,
  92. 14,-5,-6,-10,-4,-15,-8,-41,
  93. 21,-5,1,-28,-8,22,-9,33,
  94. -23,-4,-4,-12,39,4,-7,3,
  95. -60,80,8,-17,2,-6,12,-5,
  96. 1,9,15,27,31,30,27,23,
  97. 61,47,26,10,-5,-8,-12,-13,
  98. 5,-18,25,-15,-4,-15,-11,12,
  99. -2,-2,-16,-2,-6,24,12,11,
  100. -4,9,1,-9,14,-45,57,12,
  101. 20,-35,26,11,-64,32,-10,-10,
  102. 42,-4,-9,-16,32,24,7,10,
  103. 52,-11,-57,29,0,8,0,-6,
  104. 17,-17,-56,-40,7,20,18,12,
  105. -6,16,5,7,-1,9,1,10,
  106. 29,12,16,13,-2,23,7,9,
  107. -3,-4,-5,18,-64,13,55,-25,
  108. 9,-9,24,14,-25,15,-11,-40,
  109. -30,37,1,-19,22,-5,-31,13,
  110. -2,0,7,-4,16,-67,12,66,
  111. -36,24,-8,18,-15,-23,19,0,
  112. -45,-7,4,3,-13,13,35,5,
  113. 13,33,10,27,23,0,-7,-11,
  114. 43,-74,36,-12,2,5,-8,6,
  115. -33,11,-16,-14,-5,-7,-3,17,
  116. -34,27,-16,11,-9,15,33,-31,
  117. 8,-16,7,-6,-7,63,-55,-17,
  118. 11,-1,20,-46,34,-30,6,9,
  119. 19,28,-9,5,-24,-8,-23,-2,
  120. 31,-19,-16,-5,-15,-18,0,26,
  121. 18,37,-5,-15,-2,17,5,-27,
  122. 21,-33,44,12,-27,-9,17,11,
  123. 25,-21,-31,-7,13,33,-8,-25,
  124. -7,7,-10,4,-6,-9,48,-82,
  125. -23,-8,6,11,-23,3,-3,49,
  126. -29,25,31,4,14,16,9,-4,
  127. -18,10,-26,3,5,-44,-9,9,
  128. -47,-55,15,9,28,1,4,-3,
  129. 46,6,-6,-38,-29,-31,-15,-6,
  130. 3,0,14,-6,8,-54,-50,33,
  131. -5,1,-14,33,-48,26,-4,-5,
  132. -3,-5,-3,-5,-28,-22,77,55,
  133. -1,2,10,10,-9,-14,-66,-49,
  134. 11,-36,-6,-20,10,-10,16,12,
  135. 4,-1,-16,45,-44,-50,31,-2,
  136. 25,42,23,-32,-22,0,11,20,
  137. -40,-35,-40,-36,-32,-26,-21,-13,
  138. 52,-22,6,-24,-20,17,-5,-8,
  139. 36,-25,-11,21,-26,6,34,-8,
  140. 7,20,-3,5,-25,-8,18,-5,
  141. -9,-4,1,-9,20,20,39,48,
  142. -24,9,5,-65,22,29,4,3,
  143. -43,-11,32,-6,9,19,-27,-10,
  144. -47,-14,24,10,-7,-36,-7,-1,
  145. -4,-5,-5,16,53,25,-26,-29,
  146. -4,-12,45,-58,-34,33,-5,2,
  147. -1,27,-48,31,-15,22,-5,4,
  148. 7,7,-25,-3,11,-22,16,-12,
  149. 8,-3,7,-11,45,14,-73,-19,
  150. 56,-46,24,-20,28,-12,-2,-1,
  151. -36,-3,-33,19,-6,7,2,-15,
  152. 5,-31,-45,8,35,13,20,0,
  153. -9,48,-13,-43,-3,-13,2,-5,
  154. 72,-68,-27,2,1,-2,-7,5,
  155. 36,33,-40,-12,-4,-5,23,19};