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 ****************************************************************************************/
30 ------------------------------------------------------------------------------
33 Filename: dec_input_format_tab.cpp
35 ------------------------------------------------------------------------------
36 INPUT AND OUTPUT DEFINITIONS
47 Global Variables Used:
50 Local Variables Needed:
53 ------------------------------------------------------------------------------
56 This file contains the tables of the number of data bytes per codec mode in
57 both WMF and IF2 input formats.
59 ------------------------------------------------------------------------------
64 ------------------------------------------------------------------------------
67 [1] AMR Speech Codec Frame Structure, 3GPP TS 26.101 version 4.1.0 Release 4,
70 ------------------------------------------------------------------------------
74 ------------------------------------------------------------------------------
78 /*----------------------------------------------------------------------------
80 ----------------------------------------------------------------------------*/
81 #include "amrdecode.h"
83 /*--------------------------------------------------------------------------*/
89 /*----------------------------------------------------------------------------
91 ; Define module specific macros here
92 ----------------------------------------------------------------------------*/
95 /*----------------------------------------------------------------------------
97 ; Include all pre-processor statements here. Include conditional
98 ; compile variables also.
99 ----------------------------------------------------------------------------*/
101 /*----------------------------------------------------------------------------
102 ; LOCAL FUNCTION DEFINITIONS
103 ; Function Prototype declaration
104 ----------------------------------------------------------------------------*/
107 /*----------------------------------------------------------------------------
108 ; LOCAL STORE/BUFFER/POINTER DEFINITIONS
109 ; Variable declaration - defined here and used outside this module
110 ----------------------------------------------------------------------------*/
111 /* Table containing the number of core AMR data bytes for */
112 /* each codec mode for WMF input format(number excludes frame type byte) */
113 const Word16 WmfDecBytesPerFrame[16] =
123 5, /* GsmAmr comfort noise */
124 6, /* Gsm-Efr comfort noise */
125 5, /* IS-641 comfort noise */
126 5, /* Pdc-Efr comfort noise */
130 0 /* No transmission */
133 /* Table containing the number of core AMR data bytes for */
134 /* each codec mode for IF2 input format. */
135 const Word16 If2DecBytesPerFrame[16] =
145 6, /* GsmAmr comfort noise */
146 6, /* Gsm-Efr comfort noise */
147 6, /* IS-641 comfort noise */
148 6, /* Pdc-Efr comfort noise */
152 1 /* No transmission */
155 /*----------------------------------------------------------------------------
156 ; EXTERNAL FUNCTION REFERENCES
157 ; Declare functions defined elsewhere and referenced in this module
158 ----------------------------------------------------------------------------*/
161 /*----------------------------------------------------------------------------
162 ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES
163 ; Declare variables used in this module but defined elsewhere
164 ----------------------------------------------------------------------------*/
167 /*--------------------------------------------------------------------------*/
172 /*----------------------------------------------------------------------------
174 ----------------------------------------------------------------------------*/
176 /*----------------------------------------------------------------------------
177 ; Define all local variables
178 ----------------------------------------------------------------------------*/
181 /*----------------------------------------------------------------------------
183 ----------------------------------------------------------------------------*/
186 /*----------------------------------------------------------------------------
187 ; Return nothing or data or data pointer
188 ----------------------------------------------------------------------------*/