OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / media / libstagefright / codecs / aacdec / s_sbr_header_data.h
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
20  Filename: s_sbr_header_data.h
21  Funtions:
22
23 ------------------------------------------------------------------------------
24  REVISION HISTORY
25
26
27  Who:                                   Date: MM/DD/YYYY
28  Description:
29 ------------------------------------------------------------------------------
30
31
32 ----------------------------------------------------------------------------
33 ; CONTINUE ONLY IF NOT ALREADY DEFINED
34 ----------------------------------------------------------------------------*/
35 #ifndef S_SBR_HEADER_DATA_H
36 #define S_SBR_HEADER_DATA_H
37
38 /*----------------------------------------------------------------------------
39 ; INCLUDES
40 ----------------------------------------------------------------------------*/
41 #include    "pv_audio_type_defs.h"
42 #include    "e_sbr_header_status.h"
43 #include    "e_sbr_master_status.h"
44 #include    "e_sr_mode.h"
45 /*----------------------------------------------------------------------------
46 ; MACROS
47 ; Define module specific macros here
48 ----------------------------------------------------------------------------*/
49
50 /*----------------------------------------------------------------------------
51 ; DEFINES
52 ; Include all pre-processor statements here.
53 ----------------------------------------------------------------------------*/
54
55 /*----------------------------------------------------------------------------
56 ; EXTERNAL VARIABLES REFERENCES
57 ; Declare variables used in this module but defined elsewhere
58 ----------------------------------------------------------------------------*/
59
60 /*----------------------------------------------------------------------------
61 ; SIMPLE TYPEDEF'S
62 ----------------------------------------------------------------------------*/
63
64 /*----------------------------------------------------------------------------
65 ; ENUMERATED TYPEDEF'S
66 ----------------------------------------------------------------------------*/
67
68 /*----------------------------------------------------------------------------
69 ; STRUCTURES TYPEDEF'S
70 ----------------------------------------------------------------------------*/
71 typedef struct
72 {
73     SBR_HEADER_STATUS status;      /* the current status of the header     */
74     SBR_MASTER_STATUS masterStatus;/* status of v_k_master freq table      */
75
76     /* Changes in these variables indicates an error */
77     Int32 crcEnable;
78     SR_MODE sampleRateMode;
79     Int32 ampResolution;
80
81     /* Changes in these variables causes a reset of the decoder */
82     Int32 startFreq;
83     Int32 stopFreq;
84     Int32 xover_band;
85     Int32 freqScale;
86     Int32 alterScale;
87     Int32 noise_bands;               /* noise bands per octave, read from bitstream */
88
89     /* Helper variable*/
90     Int32 noNoiseBands;              /* actual number of noise bands to read from the bitstream */
91
92     Int32 limiterBands;
93     Int32 limiterGains;
94     Int32 interpolFreq;
95     Int32 smoothingLength;
96 }
97 SBR_HEADER_DATA;
98
99 typedef SBR_HEADER_DATA *HANDLE_SBR_HEADER_DATA;
100
101 /*----------------------------------------------------------------------------
102 ; GLOBAL FUNCTION DEFINITIONS
103 ; Function Prototype declaration
104 ----------------------------------------------------------------------------*/
105
106
107 /*----------------------------------------------------------------------------
108 ; END
109 ----------------------------------------------------------------------------*/
110 #endif
111
112