Git init
[external/opencore-amr.git] / opencore / codecs_v2 / audio / gsm_amr / amr_nb / common / src / gray_tbl.cpp
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
20
21     3GPP TS 26.073
22     ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23     Available from http://www.3gpp.org
24
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 ****************************************************************************************/
29 /*
30
31  Filename: gray_tbl.cpp
32
33 ------------------------------------------------------------------------------
34  MODULE DESCRIPTION
35
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
38  respectively.
39
40 ------------------------------------------------------------------------------
41 */
42
43 /*----------------------------------------------------------------------------
44 ; INCLUDES
45 ----------------------------------------------------------------------------*/
46 #include "typedef.h"
47
48 /*--------------------------------------------------------------------------*/
49 #ifdef __cplusplus
50 extern "C"
51 {
52 #endif
53
54     /*----------------------------------------------------------------------------
55     ; MACROS
56     ; [Define module specific macros here]
57     ----------------------------------------------------------------------------*/
58
59     /*----------------------------------------------------------------------------
60     ; DEFINES
61     ; [Include all pre-processor statements here. Include conditional
62     ; compile variables also.]
63     ----------------------------------------------------------------------------*/
64
65     /*----------------------------------------------------------------------------
66     ; LOCAL FUNCTION DEFINITIONS
67     ; [List function prototypes here]
68     ----------------------------------------------------------------------------*/
69
70     /*----------------------------------------------------------------------------
71     ; LOCAL VARIABLE DEFINITIONS
72     ; [Variable declaration - defined here and used outside this module]
73     ----------------------------------------------------------------------------*/
74
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};
79
80     /*--------------------------------------------------------------------------*/
81 #ifdef __cplusplus
82 }
83 #endif
84
85 /*
86 ------------------------------------------------------------------------------
87  FUNCTION NAME:
88 ------------------------------------------------------------------------------
89  INPUT AND OUTPUT DEFINITIONS
90
91  Inputs:
92     None
93
94  Outputs:
95     None
96
97  Returns:
98     None
99
100  Global Variables Used:
101     None
102
103  Local Variables Needed:
104     None
105
106 ------------------------------------------------------------------------------
107  FUNCTION DESCRIPTION
108
109  None
110
111 ------------------------------------------------------------------------------
112  REQUIREMENTS
113
114  None
115
116 ------------------------------------------------------------------------------
117  REFERENCES
118
119  [1] gray.tab,  UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001
120
121 ------------------------------------------------------------------------------
122  PSEUDO-CODE
123
124
125 ------------------------------------------------------------------------------
126  CAUTION [optional]
127  [State any special notes, constraints or cautions for users of this function]
128
129 ------------------------------------------------------------------------------
130 */
131
132 /*----------------------------------------------------------------------------
133 ; FUNCTION CODE
134 ----------------------------------------------------------------------------*/
135