OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / media / libstagefright / codecs / aacdec / unpack_idx.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  Pathname: ./include/unpack_idx.h
21
22
23 ------------------------------------------------------------------------------
24  REVISION HISTORY
25
26  Who:                       Date:
27  Description:
28
29 ------------------------------------------------------------------------------
30  INCLUDE DESCRIPTION
31
32  This header file includes the function definition for unpack_idx()
33
34 ------------------------------------------------------------------------------
35 */
36
37 /*----------------------------------------------------------------------------
38 ; CONTINUE ONLY IF NOT ALREADY DEFINED
39 ----------------------------------------------------------------------------*/
40 #ifndef UNPACK_IDX_H
41 #define UNPACK_IDX_H
42
43 /*----------------------------------------------------------------------------
44 ; INCLUDES
45 ----------------------------------------------------------------------------*/
46 #include    "pv_audio_type_defs.h"
47 #include    "s_hcb.h"
48 #include    "s_bits.h"
49 /*----------------------------------------------------------------------------
50 ; MACROS
51 ; Define module specific macros here
52 ----------------------------------------------------------------------------*/
53
54 /*----------------------------------------------------------------------------
55 ; DEFINES
56 ; Include all pre-processor statements here.
57 ----------------------------------------------------------------------------*/
58 #define DIMENSION_4     4
59
60 /*----------------------------------------------------------------------------
61 ; EXTERNAL VARIABLES REFERENCES
62 ; Declare variables used in this module but defined elsewhere
63 ----------------------------------------------------------------------------*/
64
65 /*----------------------------------------------------------------------------
66 ; SIMPLE TYPEDEF'S
67 ----------------------------------------------------------------------------*/
68
69 /*----------------------------------------------------------------------------
70 ; ENUMERATED TYPEDEF'S
71 ----------------------------------------------------------------------------*/
72
73 /*----------------------------------------------------------------------------
74 ; STRUCTURES TYPEDEF'S
75 ----------------------------------------------------------------------------*/
76
77 /*----------------------------------------------------------------------------
78 ; GLOBAL FUNCTION DEFINITIONS
79 ; Function Prototype declaration
80 ----------------------------------------------------------------------------*/
81 #ifdef __cplusplus
82 extern "C"
83 {
84 #endif
85
86
87     void unpack_idx(
88         Int16  QuantSpec[],
89         Int  codeword_indx,
90         const Hcb *pHuffCodebook,
91         BITS  *pInputStream,
92         Int *max);
93     void unpack_idx_sgn(
94         Int16  quant_spec[],
95         Int  codeword_indx,
96         const Hcb *pHuffCodebook,
97         BITS  *pInputStream,
98         Int *max);
99     void unpack_idx_esc(
100         Int16  quant_spec[],
101         Int  codeword_indx,
102         const Hcb *pHuffCodebook,
103         BITS  *pInputStream,
104         Int *max);
105
106 #ifdef __cplusplus
107 }
108 #endif
109
110 /*----------------------------------------------------------------------------
111 ; END
112 ----------------------------------------------------------------------------*/
113 #endif
114
115