annotate a64tables.h @ 12408:ae72506d4c2a libavcodec

acenc: LAME-inspired window decision This performs quite a bit better than the current 3GPP-inspired window decision on all the samples I have tested. On the castanets.wav sample it performs very similar to iTunes window selection, and seems to perform better than Nero. On fatboy.wav, it seems to perform at least as good as iTunes, if not better. Nero performs horribly on this sample. Patch by: Nathan Caldwell <saintdev@gmail.com>
author alexc
date Mon, 23 Aug 2010 20:00:03 +0000
parents f25a00f68cfa
children 91db982aaaad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12401
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
1 /*
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
2 * a64 video encoder - tables used by a64 encoders
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
3 * Copyright (c) 2009 Tobias Bindhammer
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
4 *
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
5 * This file is part of FFmpeg.
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
6 *
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
11 *
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
15 * Lesser General Public License for more details.
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
16 *
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
20 */
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
21
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
22 /**
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
23 * @file
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
24 * a64 video encoder - tables used by a64 encoders
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
25 */
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
26
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
27 #ifndef AVCODEC_A64TABLES_H
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
28 #define AVCODEC_A64TABLES_H
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
29
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
30 #include <stdint.h>
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
31
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
32 /**
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
33 * dither patterns used vor rendering the multicolor charset
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
34 */
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
35 static const uint8_t prep_dither_patterns[9][4][4] = {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
36 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
37 {0, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
38 {0, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
39 {0, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
40 {0, 0, 0, 0}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
41 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
42 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
43 {1, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
44 {0, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
45 {0, 0, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
46 {0, 0, 0, 0}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
47 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
48 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
49 {1, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
50 {0, 0, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
51 {0, 1, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
52 {0, 0, 0, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
53 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
54 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
55 {1, 0, 0, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
56 {0, 1, 0, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
57 {0, 0, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
58 {0, 1, 0, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
59 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
60 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
61 {1, 0, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
62 {0, 1, 0, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
63 {1, 0, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
64 {0, 1, 0, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
65 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
66 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
67 {1, 1, 1, 0},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
68 {0, 1, 0, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
69 {1, 0, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
70 {0, 1, 0, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
71 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
72 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
73 {0, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
74 {1, 1, 0, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
75 {1, 0, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
76 {1, 1, 1, 0}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
77 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
78 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
79 {0, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
80 {1, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
81 {1, 1, 0, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
82 {1, 1, 1, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
83 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
84 {
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
85 {1, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
86 {1, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
87 {1, 1, 1, 1},
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
88 {1, 1, 1, 1}
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
89 },
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
90 };
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
91
f25a00f68cfa Initial version of the a64 (multicolor charset) codec
bindhammer
parents:
diff changeset
92 #endif /* AVCODEC_A64TABLES_H */