bitno_tab.h revision 4f1efc098cb5791c3e9f483f2af84aef70d2d0a0
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/****************************************************************************************
19Portions 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)
26Permission to distribute, modify and use this file under the standard license
27terms listed above has been obtained from the copyright holder.
28****************************************************************************************/
29/*
30
31  Pathname: .audio/gsm-amr/c/include/bitno_tab.h
32
33
34------------------------------------------------------------------------------
35 REVISION HISTORY
36
37 Description: Define "const Word16 *bitno[N_MODES]" as "const Word16 *const
38                      bitno[N_MODES]"
39
40 Description: Added #ifdef __cplusplus after Include section.
41
42 Who:                       Date:
43 Description:
44
45------------------------------------------------------------------------------
46 INCLUDE DESCRIPTION
47
48 This file declares a tables in bitno_tab.c.
49
50------------------------------------------------------------------------------
51*/
52
53/*----------------------------------------------------------------------------
54; CONTINUE ONLY IF NOT ALREADY DEFINED
55----------------------------------------------------------------------------*/
56#ifndef BITNO_TAB_H
57#define BITNO_TAB_H
58
59/*----------------------------------------------------------------------------
60; INCLUDES
61----------------------------------------------------------------------------*/
62#include "typedef.h"
63
64/*--------------------------------------------------------------------------*/
65#ifdef __cplusplus
66extern "C"
67{
68#endif
69
70    /*----------------------------------------------------------------------------
71    ; MACROS
72    ; Define module specific macros here
73    ----------------------------------------------------------------------------*/
74
75    /*----------------------------------------------------------------------------
76    ; DEFINES
77    ; Include all pre-processor statements here.
78    ----------------------------------------------------------------------------*/
79#define BIT_0      0
80#define BIT_1      1
81
82#define PRMNO_MR475 17
83#define PRMNO_MR515 19
84#define PRMNO_MR59  19
85#define PRMNO_MR67  19
86#define PRMNO_MR74  19
87#define PRMNO_MR795 23
88#define PRMNO_MR102 39
89#define PRMNO_MR122 57
90#define PRMNO_MRDTX 5
91
92    /* number of parameters to first subframe */
93#define PRMNOFSF_MR475 7
94#define PRMNOFSF_MR515 7
95#define PRMNOFSF_MR59  7
96#define PRMNOFSF_MR67  7
97#define PRMNOFSF_MR74  7
98#define PRMNOFSF_MR795 8
99#define PRMNOFSF_MR102 12
100#define PRMNOFSF_MR122 18
101    /*----------------------------------------------------------------------------
102    ; EXTERNAL VARIABLES REFERENCES
103    ; Declare variables used in this module but defined elsewhere
104    ----------------------------------------------------------------------------*/
105    extern const Word16 prmno[];
106    extern const Word16 prmnofsf[];
107    extern const Word16 bitno_MR475[];
108    extern const Word16 bitno_MR515[];
109    extern const Word16 bitno_MR59[];
110    extern const Word16 bitno_MR67[];
111    extern const Word16 bitno_MR74[];
112    extern const Word16 bitno_MR95[];
113    extern const Word16 bitno_MR102[];
114    extern const Word16 bitno_MR122[];
115    extern const Word16 bitno_MRDTX[];
116    extern const Word16 *const bitno[];
117
118    /*----------------------------------------------------------------------------
119    ; SIMPLE TYPEDEF'S
120    ----------------------------------------------------------------------------*/
121
122    /*----------------------------------------------------------------------------
123    ; ENUMERATED TYPEDEF'S
124    ----------------------------------------------------------------------------*/
125
126    /*----------------------------------------------------------------------------
127    ; STRUCTURES TYPEDEF'S
128    ----------------------------------------------------------------------------*/
129
130
131    /*----------------------------------------------------------------------------
132    ; GLOBAL FUNCTION DEFINITIONS
133    ; Function Prototype declaration
134    ----------------------------------------------------------------------------*/
135
136
137    /*----------------------------------------------------------------------------
138    ; END
139    ----------------------------------------------------------------------------*/
140#ifdef __cplusplus
141}
142#endif
143
144#endif
145
146
147