summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libmpeg3/video/vlc.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/libmpeg3/video/vlc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libmpeg3/video/vlc.h164
1 files changed, 164 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/video/vlc.h b/core/multimedia/opieplayer/libmpeg3/video/vlc.h
new file mode 100644
index 0000000..727040b
--- a/dev/null
+++ b/core/multimedia/opieplayer/libmpeg3/video/vlc.h
@@ -0,0 +1,164 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20#ifndef VLC_H
21#define VLC_H
22
23/* variable length code tables */
24
25typedef struct {
26 char val, len;
27} mpeg3_VLCtab_t;
28
29typedef struct {
30 char run, level, len;
31} mpeg3_DCTtab_t;
32
33/* Added 03/38/96 by Alex de Jong : avoid IRIX GNU warning */
34#ifdef ERROR
35#undef ERROR
36#define ERROR 99
37#endif
38
39/* Table B-3, mb_type in P-pictures, codes 001..1xx */
40extern mpeg3_VLCtab_t mpeg3_PMBtab0[8];
41
42/* Table B-3, mb_type in P-pictures, codes 000001..00011x */
43extern mpeg3_VLCtab_t mpeg3_PMBtab1[8];
44
45/* Table B-4, mb_type in B-pictures, codes 0010..11xx */
46extern mpeg3_VLCtab_t mpeg3_BMBtab0[16];
47
48/* Table B-4, mb_type in B-pictures, codes 000001..00011x */
49extern mpeg3_VLCtab_t mpeg3_BMBtab1[8];
50
51/* Table B-5, mb_type in spat. scal. I-pictures, codes 0001..1xxx */
52extern mpeg3_VLCtab_t mpeg3_spIMBtab[16];
53
54/* Table B-6, mb_type in spat. scal. P-pictures, codes 0010..11xx */
55extern mpeg3_VLCtab_t mpeg3_spPMBtab0[16];
56
57/* Table B-6, mb_type in spat. scal. P-pictures, codes 0000010..000111x */
58extern mpeg3_VLCtab_t mpeg3_spPMBtab1[16];
59
60/* Table B-7, mb_type in spat. scal. B-pictures, codes 0010..11xx */
61extern mpeg3_VLCtab_t mpeg3_spBMBtab0[14];
62
63/* Table B-7, mb_type in spat. scal. B-pictures, codes 0000100..000111x */
64extern mpeg3_VLCtab_t mpeg3_spBMBtab1[12];
65
66/* Table B-7, mb_type in spat. scal. B-pictures, codes 00000100x..000001111 */
67extern mpeg3_VLCtab_t mpeg3_spBMBtab2[8];
68
69/* Table B-8, mb_type in spat. scal. B-pictures, codes 001..1xx */
70extern mpeg3_VLCtab_t mpeg3_SNRMBtab[8];
71
72/* Table B-10, motion_code, codes 0001 ... 01xx */
73extern mpeg3_VLCtab_t mpeg3_MVtab0[8];
74
75/* Table B-10, motion_code, codes 0000011 ... 000011x */
76extern mpeg3_VLCtab_t mpeg3_MVtab1[8];
77
78/* Table B-10, motion_code, codes 0000001100 ... 000001011x */
79extern mpeg3_VLCtab_t mpeg3_MVtab2[12];
80
81/* Table B-9, coded_block_pattern, codes 01000 ... 111xx */
82extern mpeg3_VLCtab_t mpeg3_CBPtab0[32];
83
84/* Table B-9, coded_block_pattern, codes 00000100 ... 001111xx */
85extern mpeg3_VLCtab_t mpeg3_CBPtab1[64];
86
87/* Table B-9, coded_block_pattern, codes 000000001 ... 000000111 */
88extern mpeg3_VLCtab_t mpeg3_CBPtab2[8];
89
90/* Table B-1, macroblock_address_increment, codes 00010 ... 011xx */
91extern mpeg3_VLCtab_t mpeg3_MBAtab1[16];
92
93/* Table B-1, macroblock_address_increment, codes 00000011000 ... 0000111xxxx */
94extern mpeg3_VLCtab_t mpeg3_MBAtab2[104];
95
96/* Table B-12, dct_dc_size_luminance, codes 00xxx ... 11110 */
97extern mpeg3_VLCtab_t mpeg3_DClumtab0[32];
98
99/* Table B-12, dct_dc_size_luminance, codes 111110xxx ... 111111111 */
100extern mpeg3_VLCtab_t mpeg3_DClumtab1[16];
101
102/* Table B-13, dct_dc_size_chrominance, codes 00xxx ... 11110 */
103extern mpeg3_VLCtab_t mpeg3_DCchromtab0[32];
104
105/* Table B-13, dct_dc_size_chrominance, codes 111110xxxx ... 1111111111 */
106extern mpeg3_VLCtab_t mpeg3_DCchromtab1[32];
107
108/* Table B-14, DCT coefficients table zero,
109 * codes 0100 ... 1xxx (used for first (DC) coefficient)
110 */
111extern mpeg3_DCTtab_t mpeg3_DCTtabfirst[12];
112
113/* Table B-14, DCT coefficients table zero,
114 * codes 0100 ... 1xxx (used for all other coefficients)
115 */
116extern mpeg3_DCTtab_t mpeg3_DCTtabnext[12];
117
118/* Table B-14, DCT coefficients table zero,
119 * codes 000001xx ... 00111xxx
120 */
121extern mpeg3_DCTtab_t mpeg3_DCTtab0[60];
122
123/* Table B-15, DCT coefficients table one,
124 * codes 000001xx ... 11111111
125*/
126extern mpeg3_DCTtab_t mpeg3_DCTtab0a[252];
127
128/* Table B-14, DCT coefficients table zero,
129 * codes 0000001000 ... 0000001111
130 */
131extern mpeg3_DCTtab_t mpeg3_DCTtab1[8];
132
133/* Table B-15, DCT coefficients table one,
134 * codes 000000100x ... 000000111x
135 */
136extern mpeg3_DCTtab_t mpeg3_DCTtab1a[8];
137
138/* Table B-14/15, DCT coefficients table zero / one,
139 * codes 000000010000 ... 000000011111
140 */
141extern mpeg3_DCTtab_t mpeg3_DCTtab2[16];
142
143/* Table B-14/15, DCT coefficients table zero / one,
144 * codes 0000000010000 ... 0000000011111
145 */
146extern mpeg3_DCTtab_t mpeg3_DCTtab3[16];
147
148/* Table B-14/15, DCT coefficients table zero / one,
149 * codes 00000000010000 ... 00000000011111
150 */
151extern mpeg3_DCTtab_t mpeg3_DCTtab4[16];
152
153/* Table B-14/15, DCT coefficients table zero / one,
154 * codes 000000000010000 ... 000000000011111
155 */
156extern mpeg3_DCTtab_t mpeg3_DCTtab5[16];
157
158/* Table B-14/15, DCT coefficients table zero / one,
159 * codes 0000000000010000 ... 0000000000011111
160 */
161extern mpeg3_DCTtab_t mpeg3_DCTtab6[16];
162
163
164#endif