1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
22 ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23 Available from http://www.3gpp.org
25 (C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)
26 Permission to distribute, modify and use this file under the standard license
27 terms listed above has been obtained from the copyright holder.
28 ****************************************************************************************/
31 Filename: gray_tbl.cpp
33 ------------------------------------------------------------------------------
36 This file contains the declaration for the gray encoding and decoding tables,
37 gray_tbl[] and dgray_tbl[] used by the c1035pf and d1035pf module
40 ------------------------------------------------------------------------------
43 /*----------------------------------------------------------------------------
45 ----------------------------------------------------------------------------*/
48 /*--------------------------------------------------------------------------*/
54 /*----------------------------------------------------------------------------
56 ; [Define module specific macros here]
57 ----------------------------------------------------------------------------*/
59 /*----------------------------------------------------------------------------
61 ; [Include all pre-processor statements here. Include conditional
62 ; compile variables also.]
63 ----------------------------------------------------------------------------*/
65 /*----------------------------------------------------------------------------
66 ; LOCAL FUNCTION DEFINITIONS
67 ; [List function prototypes here]
68 ----------------------------------------------------------------------------*/
70 /*----------------------------------------------------------------------------
71 ; LOCAL VARIABLE DEFINITIONS
72 ; [Variable declaration - defined here and used outside this module]
73 ----------------------------------------------------------------------------*/
75 extern const Word16 gray[];
76 extern const Word16 dgray[];
77 const Word16 gray[8] = {0, 1, 3, 2, 6, 4, 5, 7};
78 const Word16 dgray[8] = {0, 1, 3, 2, 5, 6, 4, 7};
80 /*--------------------------------------------------------------------------*/
86 ------------------------------------------------------------------------------
88 ------------------------------------------------------------------------------
89 INPUT AND OUTPUT DEFINITIONS
100 Global Variables Used:
103 Local Variables Needed:
106 ------------------------------------------------------------------------------
111 ------------------------------------------------------------------------------
116 ------------------------------------------------------------------------------
119 [1] gray.tab, UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001
121 ------------------------------------------------------------------------------
125 ------------------------------------------------------------------------------
127 [State any special notes, constraints or cautions for users of this function]
129 ------------------------------------------------------------------------------
132 /*----------------------------------------------------------------------------
134 ----------------------------------------------------------------------------*/