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 Filename: /audio/gsm_amr/c/include/dtx_common_def.h
31
32------------------------------------------------------------------------------
33 REVISION HISTORY
34
35
36 Who:                       Date:
37 Description:
38
39------------------------------------------------------------------------------
40 INCLUDE DESCRIPTION
41
42    File             : dtx_common_def.h
43    Purpose          : DTX definitions common to encoder and decoder
44
45------------------------------------------------------------------------------
46*/
47
48/*----------------------------------------------------------------------------
49; CONTINUE ONLY IF NOT ALREADY DEFINED
50----------------------------------------------------------------------------*/
51#ifndef DTX_COMMON_DEF_H
52#define DTX_COMMON_DEF_H
53
54/*----------------------------------------------------------------------------
55; INCLUDES
56----------------------------------------------------------------------------*/
57
58/*--------------------------------------------------------------------------*/
59#ifdef __cplusplus
60extern "C"
61{
62#endif
63
64    /*----------------------------------------------------------------------------
65    ; MACROS
66    ; Define module specific macros here
67    ----------------------------------------------------------------------------*/
68
69    /*----------------------------------------------------------------------------
70    ; DEFINES
71    ; Include all pre-processor statements here.
72    ----------------------------------------------------------------------------*/
73#define DTX_MAX_EMPTY_THRESH 50
74#define DTX_HIST_SIZE 8
75#define DTX_ELAPSED_FRAMES_THRESH (24 + 7 -1)
76#define DTX_HANG_CONST 7             /* yields eight frames of SP HANGOVER  */
77
78    /*----------------------------------------------------------------------------
79    ; EXTERNAL VARIABLES REFERENCES
80    ; Declare variables used in this module but defined elsewhere
81    ----------------------------------------------------------------------------*/
82
83    /*----------------------------------------------------------------------------
84    ; SIMPLE TYPEDEF'S
85    ----------------------------------------------------------------------------*/
86
87
88    /*----------------------------------------------------------------------------
89    ; ENUMERATED TYPEDEF'S
90    ----------------------------------------------------------------------------*/
91
92    /*----------------------------------------------------------------------------
93    ; STRUCTURES TYPEDEF'S
94    ----------------------------------------------------------------------------*/
95    /*----------------------------------------------------------------------------
96    ; END
97    ----------------------------------------------------------------------------*/
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* DTX_COMMON_DEF_H */
103
104