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: s_Hcb.h
21
22     Date: 05/07/2001
23
24------------------------------------------------------------------------------
25 REVISION HISTORY
26
27 Description:
28 (1) Modified to include the lines...
29
30    #ifdef __cplusplus
31    extern "C" {
32    #endif
33
34    #ifdef __cplusplus
35    }
36    #endif
37
38 (2) Updated the copyright header.
39
40 Description:
41 (1) LAV removed from structure definition, since it was never used.
42
43 Description: Huffman tables are stored as UInt16
44
45 Description: Modified the declaration of the structure so no pointers are
46              used in the structure.
47
48 Who:                       Date:
49 Description:
50
51------------------------------------------------------------------------------
52 INCLUDE DESCRIPTION
53
54 define the structure Hcb to store Huffman codebook information,
55 this structure was originally defined in all.h
56
57------------------------------------------------------------------------------
58*/
59
60/*----------------------------------------------------------------------------
61; CONTINUE ONLY IF NOT ALREADY DEFINED
62----------------------------------------------------------------------------*/
63#ifndef S_HCB_H
64#define S_HCB_H
65
66
67/*----------------------------------------------------------------------------
68; INCLUDES
69----------------------------------------------------------------------------*/
70#include    "pv_audio_type_defs.h"
71#include    "s_huffman.h"
72
73#ifdef __cplusplus
74extern "C"
75{
76#endif
77
78    /*----------------------------------------------------------------------------
79    ; MACROS
80    ; Define module specific macros here
81    ----------------------------------------------------------------------------*/
82
83    /*----------------------------------------------------------------------------
84    ; DEFINES
85    ; Include all pre-processor statements here.
86    ----------------------------------------------------------------------------*/
87
88    /*----------------------------------------------------------------------------
89    ; EXTERNAL VARIABLES REFERENCES
90    ; Declare variables used in this module but defined elsewhere
91    ----------------------------------------------------------------------------*/
92
93    /*----------------------------------------------------------------------------
94    ; SIMPLE TYPEDEF'S
95    ----------------------------------------------------------------------------*/
96
97    /*----------------------------------------------------------------------------
98    ; ENUMERATED TYPEDEF'S
99    ----------------------------------------------------------------------------*/
100
101    /*----------------------------------------------------------------------------
102    ; STRUCTURES TYPEDEF'S
103    ----------------------------------------------------------------------------*/
104    typedef struct
105    {
106        Int     n;
107        Int     dim;
108        Int     mod;
109        Int     off;
110        Int     signed_cb;
111    } Hcb;
112
113    /*----------------------------------------------------------------------------
114    ; GLOBAL FUNCTION DEFINITIONS
115    ; Function Prototype declaration
116    ----------------------------------------------------------------------------*/
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif /* S_HCB_H */
123
124