OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / media / libstagefright / codecs / m4v_h263 / dec / src / max_level.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 *                    MPEG-4 Simple Profile Video Decoder                    *
21 *     -------------------------------------------------------------------   *
22 *
23 * This software module was originally developed by
24 *
25 *   Michael Wollborn (TUH / ACTS-MoMuSyS)
26 *
27 * in the course of development of the MPEG-4 Video (ISO/IEC 14496-2) standard.
28 * This software module is an implementation of a part of one or more MPEG-4
29 * Video (ISO/IEC 14496-2) tools as specified by the MPEG-4 Video (ISO/IEC
30 * 14496-2) standard.
31 *
32 * ISO/IEC gives users of the MPEG-4 Video (ISO/IEC 14496-2) standard free
33 * license to this software module or modifications thereof for use in hardware
34 * or software products claiming conformance to the MPEG-4 Video (ISO/IEC
35 * 14496-2) standard.
36 *
37 * Those intending to use this software module in hardware or software products
38 * are advised that its use may infringe existing patents. The original
39 * developer of this software module and his/her company, the subsequent
40 * editors and their companies, and ISO/IEC have no liability for use of this
41 * software module or modifications thereof in an implementation. Copyright is
42 * not released for non MPEG-4 Video (ISO/IEC 14496-2) Standard conforming
43 * products.
44 *
45 * ACTS-MoMuSys partners retain full right to use the code for his/her own
46 * purpose, assign or donate the code to a third party and to inhibit third
47 * parties from using the code for non MPEG-4 Video (ISO/IEC 14496-2) Standard
48 * conforming products. This copyright notice must be included in all copies or
49 * derivative works.
50 *
51 * Copyright (c) 1997
52 *
53 *****************************************************************************
54
55 This is a header file for "vlc_decode.c".  The table data actually resides
56 in "vlc_tab.c".
57
58
59 ------------------------------------------------------------------------------
60 */
61
62 /*----------------------------------------------------------------------------
63 ; CONTINUE ONLY IF NOT ALREADY DEFINED
64 ----------------------------------------------------------------------------*/
65
66 #ifndef max_level_H
67 #define max_level_H
68
69 /*----------------------------------------------------------------------------
70 ; INCLUDES
71 ----------------------------------------------------------------------------*/
72 #include "mp4def.h"
73
74 /*----------------------------------------------------------------------------
75 ; MACROS
76 ; Define module specific macros here
77 ----------------------------------------------------------------------------*/
78
79 /*----------------------------------------------------------------------------
80 ; DEFINES
81 ; Include all pre-processor statements here.
82 ----------------------------------------------------------------------------*/
83
84 /*----------------------------------------------------------------------------
85 ; EXTERNAL VARIABLES REFERENCES
86 ; Declare variables used in this module but defined elsewhere
87 ----------------------------------------------------------------------------*/
88
89 #ifdef __cplusplus
90 extern "C"
91 {
92 #endif
93
94     extern const int intra_max_level[2][NCOEFF_BLOCK];
95
96     extern const int inter_max_level[2][NCOEFF_BLOCK];
97
98     extern const int intra_max_run0[28];
99
100
101     extern const int intra_max_run1[9];
102
103     extern const int inter_max_run0[13];
104
105
106     extern const int inter_max_run1[4];
107
108
109     /*----------------------------------------------------------------------------
110     ; SIMPLE TYPEDEF'S
111     ----------------------------------------------------------------------------*/
112
113     /*----------------------------------------------------------------------------
114     ; ENUMERATED TYPEDEF'S
115     ----------------------------------------------------------------------------*/
116
117     /*----------------------------------------------------------------------------
118     ; STRUCTURES TYPEDEF'S
119     ----------------------------------------------------------------------------*/
120
121
122     /*----------------------------------------------------------------------------
123     ; GLOBAL FUNCTION DEFINITIONS
124     ; Function Prototype declaration
125     ----------------------------------------------------------------------------*/
126
127
128     /*----------------------------------------------------------------------------
129     ; END
130     ----------------------------------------------------------------------------*/
131
132 #ifdef __cplusplus
133 }
134 #endif
135
136 #endif
137
138
139
140
141
142
143
144
145
146
147
148
149