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 Name: pvamrnbdecoder_api.h
32 ------------------------------------------------------------------------------
35 Main header file for the Packet Video AMR Narrow Band decoder library. The
36 constants, structures, and functions defined within this file, along with
37 a basic data types header file, is all that is needed to use and communicate
38 with the library. The internal data structures within the library are
41 ------------------------------------------------------------------------------
44 ------------------------------------------------------------------------------
47 /*----------------------------------------------------------------------------
48 ; CONTINUE ONLY IF NOT ALREADY DEFINED
49 ----------------------------------------------------------------------------*/
50 #ifndef _PVAMRNBDECODER_API_H
51 #define _PVAMRNBDECODER_API_H
53 #include "oscl_base.h" /* Basic data types used within the lib */
54 #include "pvgsmamrdecoderinterface.h"
57 /*----------------------------------------------------------------------------
59 ----------------------------------------------------------------------------*/
65 /*----------------------------------------------------------------------------
67 ; Define module specific macros here
68 ----------------------------------------------------------------------------*/
70 /*----------------------------------------------------------------------------
72 ; Include all pre-processor statements here.
73 ----------------------------------------------------------------------------*/
74 #define MAX_NUM_FRAMES_PER_PACKET 20 /* Max number of frames per packet */
76 #define MAX_NUM_PACKED_INPUT_BYTES 32 /* Max number of packed input bytes */
80 /*----------------------------------------------------------------------------
81 ; EXTERNAL VARIABLES REFERENCES
82 ; Declare variables used in this module but defined elsewhere
83 ----------------------------------------------------------------------------*/
85 /*----------------------------------------------------------------------------
87 ----------------------------------------------------------------------------*/
89 /*----------------------------------------------------------------------------
90 ; ENUMERATED TYPEDEF'S
91 ----------------------------------------------------------------------------*/
93 /*----------------------------------------------------------------------------
94 ; STRUCTURES TYPEDEF'S
95 ----------------------------------------------------------------------------*/
98 /*----------------------------------------------------------------------------
99 ; GLOBAL FUNCTION DEFINITIONS
100 ; Function Prototype declaration
101 ----------------------------------------------------------------------------*/
105 /*----------------------------------------------------------------------------
107 ----------------------------------------------------------------------------*/
114 #endif /* PVMP4AUDIODECODER_API_H */