1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
19 * ------------------------------------------------------------------- *
20 * MPEG-4 Simple Profile Video Decoder *
21 * ------------------------------------------------------------------- *
23 * This software module was originally developed by
25 * Michael Wollborn (TUH / ACTS-MoMuSyS)
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
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
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
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
53 *****************************************************************************
55 This is a header file for "vlc_decode.c". The table data actually resides
59 ------------------------------------------------------------------------------
62 /*----------------------------------------------------------------------------
63 ; CONTINUE ONLY IF NOT ALREADY DEFINED
64 ----------------------------------------------------------------------------*/
69 /*----------------------------------------------------------------------------
71 ----------------------------------------------------------------------------*/
74 /*----------------------------------------------------------------------------
76 ; Define module specific macros here
77 ----------------------------------------------------------------------------*/
79 /*----------------------------------------------------------------------------
81 ; Include all pre-processor statements here.
82 ----------------------------------------------------------------------------*/
84 /*----------------------------------------------------------------------------
85 ; EXTERNAL VARIABLES REFERENCES
86 ; Declare variables used in this module but defined elsewhere
87 ----------------------------------------------------------------------------*/
94 extern const int intra_max_level[2][NCOEFF_BLOCK];
96 extern const int inter_max_level[2][NCOEFF_BLOCK];
98 extern const int intra_max_run0[28];
101 extern const int intra_max_run1[9];
103 extern const int inter_max_run0[13];
106 extern const int inter_max_run1[4];
109 /*----------------------------------------------------------------------------
111 ----------------------------------------------------------------------------*/
113 /*----------------------------------------------------------------------------
114 ; ENUMERATED TYPEDEF'S
115 ----------------------------------------------------------------------------*/
117 /*----------------------------------------------------------------------------
118 ; STRUCTURES TYPEDEF'S
119 ----------------------------------------------------------------------------*/
122 /*----------------------------------------------------------------------------
123 ; GLOBAL FUNCTION DEFINITIONS
124 ; Function Prototype declaration
125 ----------------------------------------------------------------------------*/
128 /*----------------------------------------------------------------------------
130 ----------------------------------------------------------------------------*/