156c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks/*----------------------------------------------------------------------------
256c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *
356c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * File:
456c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * eas_ima_tables.c
556c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *
656c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * Contents and purpose:
756c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * Contains the constant tables for IMA encode/decode
856c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *
956c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * Copyright (c) 2005 Sonic Network Inc.
107df30109963092559d3760c0661a020f9daf1030The Android Open Source Project
117df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License");
127df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * you may not use this file except in compliance with the License.
137df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * You may obtain a copy of the License at
147df30109963092559d3760c0661a020f9daf1030The Android Open Source Project *
157df30109963092559d3760c0661a020f9daf1030The Android Open Source Project *      http://www.apache.org/licenses/LICENSE-2.0
167df30109963092559d3760c0661a020f9daf1030The Android Open Source Project *
177df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * Unless required by applicable law or agreed to in writing, software
187df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS,
197df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * See the License for the specific language governing permissions and
217df30109963092559d3760c0661a020f9daf1030The Android Open Source Project * limitations under the License.
2256c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *
2356c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *----------------------------------------------------------------------------
2456c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * Revision Control:
2556c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *   $Revision: 760 $
2656c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *   $Date: 2007-07-17 23:09:36 -0700 (Tue, 17 Jul 2007) $
2756c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *----------------------------------------------------------------------------
2856c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks*/
2956c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks
3056c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks#include "eas_types.h"
3156c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks
3256c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks/*----------------------------------------------------------------------------
3356c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks * ADPCM decode tables
3456c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks *----------------------------------------------------------------------------
3556c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks*/
3656c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparksconst EAS_I16 imaIndexTable[16] =
3756c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks{
3856c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    -1, -1, -1, -1, 2, 4, 6, 8,
3956c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    -1, -1, -1, -1, 2, 4, 6, 8
4056c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks};
4156c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks
4256c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparksconst EAS_I16 imaStepSizeTable[89] =
4356c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks{
4456c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
4556c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
4656c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
4756c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    130, 143, 157, 173, 190, 209, 230, 253, 279, 307,
4856c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    337, 371, 408, 449, 494, 544, 598, 658, 724, 796,
4956c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066,
5056c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358,
5156c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899,
5256c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks    15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
5356c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks};
5456c99cd2c2c1e6ab038dac5fced5b92ccf11ff6cDave Sparks
55