Mercurial > libavcodec.hg
comparison a64colors.h @ 12409:91db982aaaad libavcodec
fixed some return values and deprecated CODEC_TYPE_VIDEO.
dithering (faster) along a linear gradient now.
author | bindhammer |
---|---|
date | Tue, 24 Aug 2010 14:02:31 +0000 |
parents | |
children | 7cf900245fce |
comparison
equal
deleted
inserted
replaced
12408:ae72506d4c2a | 12409:91db982aaaad |
---|---|
1 /* | |
2 * a64 video encoder - tables used by 64enc | |
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 - c64 colors in rgb | |
25 */ | |
26 | |
27 #ifndef AVCODEC_A64COLORS_H | |
28 #define AVCODEC_A64COLORS_H | |
29 | |
30 /* c64 palette in RGB */ | |
31 static const uint8_t a64_palette[16][3] = { | |
32 {0x00, 0x00, 0x00}, | |
33 {0xff, 0xff, 0xff}, | |
34 {0x68, 0x37, 0x2b}, | |
35 {0x70, 0xa4, 0xb2}, | |
36 {0x6f, 0x3d, 0x86}, | |
37 {0x58, 0x8d, 0x43}, | |
38 {0x35, 0x28, 0x79}, | |
39 {0xb8, 0xc7, 0x6f}, | |
40 {0x6f, 0x4f, 0x25}, | |
41 {0x43, 0x39, 0x00}, | |
42 {0x9a, 0x67, 0x59}, | |
43 {0x44, 0x44, 0x44}, | |
44 {0x6c, 0x6c, 0x6c}, | |
45 {0x9a, 0xd2, 0x84}, | |
46 {0x6c, 0x5e, 0xb5}, | |
47 {0x95, 0x95, 0x95}, | |
48 }; | |
49 | |
50 #endif /* AVCODEC_A64COLORS_H */ |