1324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver/* Copyright (C) 2002 Jean-Marc Valin 2324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver File: high_lsp_tables.c 3324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver Codebooks for high-band LSPs in SB-CELP mode 4324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 5324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver Redistribution and use in source and binary forms, with or without 6324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver modification, are permitted provided that the following conditions are 7324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver met: 8324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 9324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 1. Redistributions of source code must retain the above copyright notice, 10324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver this list of conditions and the following disclaimer. 11324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 12324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 2. Redistributions in binary form must reproduce the above copyright 13324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver notice, this list of conditions and the following disclaimer in the 14324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver documentation and/or other materials provided with the distribution. 15324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 16324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 3. The name of the author may not be used to endorse or promote products 17324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver derived from this software without specific prior written permission. 18324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 19324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 23324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 28324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver POSSIBILITY OF SUCH DAMAGE. 30324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver*/ 31324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver 32324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruverconst signed char high_lsp_cdbk[512]={ 33324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver39,12,-14,-20,-29,-61,-67,-76, 34324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-32,-71,-67,68,77,46,34,5, 35324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-13,-48,-46,-72,-81,-84,-60,-58, 36324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-40,-28,82,93,68,45,29,3, 37324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-19,-47,-28,-43,-35,-30,-8,-13, 38324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-39,-91,-91,-123,-96,10,10,-6, 39324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-18,-55,-60,-91,-56,-36,-27,-16, 40324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-48,-75,40,28,-10,-28,35,9, 41324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver37,19,1,-20,-31,-41,-18,-25, 42324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-35,-68,-80,45,27,-1,47,13, 43324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver0,-29,-35,-57,-50,-79,-73,-38, 44324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-19,5,35,14,-10,-23,16,-8, 45324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver5,-24,-40,-62,-23,-27,-22,-16, 46324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-18,-46,-72,-77,43,21,33,1, 47324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-80,-70,-70,-64,-56,-52,-39,-33, 48324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-31,-38,-19,-19,-15,32,33,-2, 49324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver7,-15,-15,-24,-23,-33,-41,-56, 50324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-24,-57,5,89,64,41,27,5, 51324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-9,-47,-60,-97,-97,-124,-20,-9, 52324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-44,-73,31,29,-4,64,48,7, 53324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-35,-57,0,-3,-26,-47,-3,-6, 54324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-40,-76,-79,-48,12,81,55,10, 55324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver9,-24,-43,-73,-57,-69,16,5, 56324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-28,-53,18,29,20,0,-4,-11, 57324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver6,-13,23,7,-17,-35,-37,-37, 58324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-30,-68,-63,6,24,-9,-14,3, 59324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver21,-13,-27,-57,-49,-80,-24,-41, 60324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-5,-16,-5,1,45,25,12,-7, 61324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver3,-15,-6,-16,-15,-8,6,-13, 62324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-42,-81,-80,-87,14,1,-10,-3, 63324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-43,-69,-46,-24,-28,-29,36,6, 64324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-43,-56,-12,12,54,79,43,9, 65324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver54,22,2,8,-12,-43,-46,-52, 66324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-38,-69,-89,-5,75,38,33,5, 67324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-13,-53,-62,-87,-89,-113,-99,-55, 68324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-34,-37,62,55,33,16,21,-2, 69324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-17,-46,-29,-38,-38,-48,-39,-42, 70324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-36,-75,-72,-88,-48,-30,21,2, 71324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-15,-57,-64,-98,-84,-76,25,1, 72324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-46,-80,-12,18,-7,3,34,6, 73324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver38,31,23,4,-1,20,14,-15, 74324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-43,-78,-91,-24,14,-3,54,16, 75324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver0,-27,-28,-44,-56,-83,-92,-89, 76324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-3,34,56,41,36,22,20,-8, 77324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-7,-35,-42,-62,-49,3,12,-10, 78324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-50,-87,-96,-66,92,70,38,9, 79324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-70,-71,-62,-42,-39,-43,-11,-7, 80324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-50,-79,-58,-50,-31,32,31,-6, 81324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-4,-25,7,-17,-38,-70,-58,-27, 82324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-43,-83,-28,59,36,20,31,2, 83324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-27,-71,-80,-109,-98,-75,-33,-32, 84324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-31,-2,33,15,-6,43,33,-5, 85324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver0,-22,-10,-27,-34,-49,-11,-20, 86324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-41,-91,-100,-121,-39,57,41,10, 87324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-19,-50,-38,-59,-60,-70,-18,-20, 88324c4644fee44b9898524c09511bd33c3f12e2dfBen Gruver-8,-31,-8,-15,1,-14,-26,-25, 8933,21,32,17,1,-19,-19,-26, 90-58,-81,-35,-22,45,30,11,-11, 913,-26,-48,-87,-67,-83,-58,3, 92-1,-26,-20,44,10,25,39,5, 93-9,-35,-27,-38,7,10,4,-9, 94-42,-85,-102,-127,52,44,28,10, 95-47,-61,-40,-39,-17,-1,-10,-33, 96-42,-74,-48,21,-4,70,52,10}; 97 98 99const signed char high_lsp_cdbk2[512]={ 100-36,-62,6,-9,-10,-14,-56,23, 1011,-26,23,-48,-17,12,8,-7, 10223,29,-36,-28,-6,-29,-17,-5, 10340,23,10,10,-46,-13,36,6, 1044,-30,-29,62,32,-32,-1,22, 105-14,1,-4,-22,-45,2,54,4, 106-30,-57,-59,-12,27,-3,-31,8, 107-9,5,10,-14,32,66,19,9, 1082,-25,-37,23,-15,18,-38,-31, 1095,-9,-21,15,0,22,62,30, 11015,-12,-14,-46,77,21,33,3, 11134,29,-19,50,2,11,9,-38, 112-12,-37,62,1,-15,54,32,6, 1132,-24,20,35,-21,2,19,24, 114-13,55,4,9,39,-19,30,-1, 115-21,73,54,33,8,18,3,15, 1166,-19,-47,6,-3,-48,-50,1, 11726,20,8,-23,-50,65,-14,-55, 118-17,-31,-37,-28,53,-1,-17,-53, 1191,57,11,-8,-25,-30,-37,64, 1205,-52,-45,15,23,31,15,14, 121-25,24,33,-2,-44,-56,-18,6, 122-21,-43,4,-12,17,-37,20,-10, 12334,15,2,15,55,21,-11,-31, 124-6,46,25,16,-9,-25,-8,-62, 12528,17,20,-32,-29,26,30,25, 126-19,2,-16,-17,26,-51,2,50, 12742,19,-66,23,29,-2,3,19, 128-19,-37,32,15,6,30,-34,13, 12911,-5,40,31,10,-42,4,-9, 13026,-9,-70,17,-2,-23,20,-22, 131-55,51,-24,-31,22,-22,15,-13, 1323,-10,-28,-16,56,4,-63,11, 133-18,-15,-18,-38,-35,16,-7,34, 134-1,-21,-49,-47,9,-37,7,8, 13569,55,20,6,-33,-45,-10,-9, 1366,-9,12,71,15,-3,-42,-7, 137-24,32,-35,-2,-42,-17,-5,0, 138-2,-33,-54,13,-12,-34,47,23, 13919,55,7,-8,74,31,14,16, 140-23,-26,19,12,-18,-49,-28,-31, 141-20,2,-14,-20,-47,78,40,13, 142-23,-11,21,-6,18,1,47,5, 14338,35,32,46,22,8,13,16, 144-14,18,51,19,40,39,11,-26, 145-1,-17,47,2,-53,-15,31,-22, 14638,21,-15,-16,5,-33,53,15, 147-38,86,11,-3,-24,49,13,-4, 148-11,-18,28,20,-12,-27,-26,35, 149-25,-35,-3,-20,-61,30,10,-55, 150-12,-22,-52,-54,-14,19,-32,-12, 15145,15,-8,-48,-9,11,-32,8, 152-16,-34,-13,51,18,38,-2,-32, 153-17,22,-2,-18,-28,-70,59,27, 154-28,-19,-10,-20,-9,-9,-8,-21, 15521,-8,35,-2,45,-3,-9,12, 1560,30,7,-39,43,27,-38,-91, 15730,26,19,-55,-4,63,14,-17, 15813,9,13,2,7,4,6,61, 15972,-1,-17,29,-1,-22,-17,8, 160-28,-37,63,44,41,3,2,14, 1619,-6,75,-8,-7,-12,-15,-12, 16213,9,-4,30,-22,-65,15,0, 163-45,4,-4,1,5,22,11,23}; 164