fixed graphics bug
[swftools.git] / lib / h.263 / h263tables.h
1 /* h263tables.h
2
3    Copyright (c) 2003 Matthias Kramm <kramm@quiss.org>
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
18
19 struct huffcode {
20     char*code;
21     int len;
22     int index;
23 };
24
25 struct mcbpc_intra_params
26 {
27     int index;
28     int mb_type;
29     int cbpc;
30 };
31
32 struct mcbpc_inter_params
33 {
34     int index;
35     int mb_type;
36     int cbpc;
37 };
38
39 struct rle_params
40 {
41     int index;
42     int last;
43     int run;
44     int level;
45 };
46
47 #define MCBPC_INTRA_STUFFING 8
48 #define MCBPC_INTER_STUFFING 20
49 #define RLE_ESCAPE 102
50
51 extern struct huffcode mcbpc_intra[];
52 extern struct mcbpc_intra_params mcbpc_intra_params[];
53 extern struct mcbpc_inter_params mcbpc_inter_params[];
54 extern struct mvd_params mvd_params[];
55 extern struct rle_params rle_params[];
56
57 extern struct huffcode mcbpc_inter[];
58 extern struct huffcode cbpy[];
59 extern struct huffcode mvd[];
60 extern struct huffcode rle[];