Mercurial > libavcodec.hg
comparison a64tables.h @ 12401:f25a00f68cfa libavcodec
Initial version of the a64 (multicolor charset) codec
author | bindhammer |
---|---|
date | Mon, 23 Aug 2010 11:46:32 +0000 |
parents | |
children | 91db982aaaad |
comparison
equal
deleted
inserted
replaced
12400:4f13b2ded34d | 12401:f25a00f68cfa |
---|---|
1 /* | |
2 * a64 video encoder - tables used by a64 encoders | |
3 * Copyright (c) 2009 Tobias Bindhammer | |
4 * | |
5 * This file is part of FFmpeg. | |
6 * | |
7 * FFmpeg is free software; you can redistribute it and/or | |
8 * modify it under the terms of the GNU Lesser General Public | |
9 * License as published by the Free Software Foundation; either | |
10 * version 2.1 of the License, or (at your option) any later version. | |
11 * | |
12 * FFmpeg is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Lesser General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Lesser General Public | |
18 * License along with FFmpeg; if not, write to the Free Software | |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 */ | |
21 | |
22 /** | |
23 * @file | |
24 * a64 video encoder - tables used by a64 encoders | |
25 */ | |
26 | |
27 #ifndef AVCODEC_A64TABLES_H | |
28 #define AVCODEC_A64TABLES_H | |
29 | |
30 #include <stdint.h> | |
31 | |
32 /** | |
33 * dither patterns used vor rendering the multicolor charset | |
34 */ | |
35 static const uint8_t prep_dither_patterns[9][4][4] = { | |
36 { | |
37 {0, 0, 0, 0}, | |
38 {0, 0, 0, 0}, | |
39 {0, 0, 0, 0}, | |
40 {0, 0, 0, 0} | |
41 }, | |
42 { | |
43 {1, 0, 0, 0}, | |
44 {0, 0, 0, 0}, | |
45 {0, 0, 1, 0}, | |
46 {0, 0, 0, 0} | |
47 }, | |
48 { | |
49 {1, 0, 0, 0}, | |
50 {0, 0, 1, 0}, | |
51 {0, 1, 0, 0}, | |
52 {0, 0, 0, 1} | |
53 }, | |
54 { | |
55 {1, 0, 0, 0}, | |
56 {0, 1, 0, 1}, | |
57 {0, 0, 1, 0}, | |
58 {0, 1, 0, 1} | |
59 }, | |
60 { | |
61 {1, 0, 1, 0}, | |
62 {0, 1, 0, 1}, | |
63 {1, 0, 1, 0}, | |
64 {0, 1, 0, 1} | |
65 }, | |
66 { | |
67 {1, 1, 1, 0}, | |
68 {0, 1, 0, 1}, | |
69 {1, 0, 1, 1}, | |
70 {0, 1, 0, 1} | |
71 }, | |
72 { | |
73 {0, 1, 1, 1}, | |
74 {1, 1, 0, 1}, | |
75 {1, 0, 1, 1}, | |
76 {1, 1, 1, 0} | |
77 }, | |
78 { | |
79 {0, 1, 1, 1}, | |
80 {1, 1, 1, 1}, | |
81 {1, 1, 0, 1}, | |
82 {1, 1, 1, 1} | |
83 }, | |
84 { | |
85 {1, 1, 1, 1}, | |
86 {1, 1, 1, 1}, | |
87 {1, 1, 1, 1}, | |
88 {1, 1, 1, 1} | |
89 }, | |
90 }; | |
91 | |
92 #endif /* AVCODEC_A64TABLES_H */ |