annotate vp6data.h @ 4021:56a9e98b06a7 libavcodec

Ignore blocks with no samples and flags (but usually with MD5 sum)
author kostya
date Sun, 15 Oct 2006 04:50:19 +0000
parents c8c591fe26f8
children 6a10cc9adb8a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3695
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
1 /**
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
2 * @file vp6data.h
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
3 * VP6 compatible video decoder
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
4 *
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
5 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
6 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3695
diff changeset
7 * This file is part of FFmpeg.
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3695
diff changeset
8 *
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3695
diff changeset
9 * FFmpeg is free software; you can redistribute it and/or
3695
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
10 * modify it under the terms of the GNU Lesser General Public
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
11 * License as published by the Free Software Foundation; either
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
12 * version 2.1 of the License, or (at your option) any later version.
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
13 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3695
diff changeset
14 * FFmpeg is distributed in the hope that it will be useful,
3695
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
17 * Lesser General Public License for more details.
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
18 *
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
19 * You should have received a copy of the GNU Lesser General Public
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3695
diff changeset
20 * License along with FFmpeg; if not, write to the Free Software
3695
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
22 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
23
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
24 #ifndef VP6DATA_H
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
25 #define VP6DATA_H
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
26
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
27 #include <inttypes.h>
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
28 #include "vp56data.h"
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
29
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
30 static const uint8_t vp6_def_fdv_vector_model[2][8] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
31 { 247, 210, 135, 68, 138, 220, 239, 246 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
32 { 244, 184, 201, 44, 173, 221, 239, 253 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
33 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
34
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
35 static const uint8_t vp6_def_pdv_vector_model[2][7] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
36 { 225, 146, 172, 147, 214, 39, 156 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
37 { 204, 170, 119, 235, 140, 230, 228 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
38 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
39
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
40 static const uint8_t vp6_def_coeff_reorder[] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
41 0, 0, 1, 1, 1, 2, 2, 2,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
42 2, 2, 2, 3, 3, 4, 4, 4,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
43 5, 5, 5, 5, 6, 6, 7, 7,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
44 7, 7, 7, 8, 8, 9, 9, 9,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
45 9, 9, 9, 10, 10, 11, 11, 11,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
46 11, 11, 11, 12, 12, 12, 12, 12,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
47 12, 13, 13, 13, 13, 13, 14, 14,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
48 14, 14, 15, 15, 15, 15, 15, 15,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
49 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
50
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
51 static const uint8_t vp6_def_runv_coeff_model[2][14] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
52 { 198, 197, 196, 146, 198, 204, 169, 142, 130, 136, 149, 149, 191, 249 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
53 { 135, 201, 181, 154, 98, 117, 132, 126, 146, 169, 184, 240, 246, 254 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
54 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
55
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
56 static const uint8_t vp6_sig_dct_pct[2][2] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
57 { 237, 246 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
58 { 231, 243 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
59 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
60
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
61 static const uint8_t vp6_pdv_pct[2][7] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
62 { 253, 253, 254, 254, 254, 254, 254 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
63 { 245, 253, 254, 254, 254, 254, 254 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
64 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
65
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
66 static const uint8_t vp6_fdv_pct[2][8] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
67 { 254, 254, 254, 254, 254, 250, 250, 252 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
68 { 254, 254, 254, 254, 254, 251, 251, 254 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
69 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
70
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
71 static const uint8_t vp6_dccv_pct[2][11] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
72 { 146, 255, 181, 207, 232, 243, 238, 251, 244, 250, 249 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
73 { 179, 255, 214, 240, 250, 255, 244, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
74 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
75
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
76 static const uint8_t vp6_coeff_reorder_pct[] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
77 255, 132, 132, 159, 153, 151, 161, 170,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
78 164, 162, 136, 110, 103, 114, 129, 118,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
79 124, 125, 132, 136, 114, 110, 142, 135,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
80 134, 123, 143, 126, 153, 183, 166, 161,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
81 171, 180, 179, 164, 203, 218, 225, 217,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
82 215, 206, 203, 217, 229, 241, 248, 243,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
83 253, 255, 253, 255, 255, 255, 255, 255,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
84 255, 255, 255, 255, 255, 255, 255, 255,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
85 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
86
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
87 static const uint8_t vp6_runv_pct[2][14] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
88 { 219, 246, 238, 249, 232, 239, 249, 255, 248, 253, 239, 244, 241, 248 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
89 { 198, 232, 251, 253, 219, 241, 253, 255, 248, 249, 244, 238, 251, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
90 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
91
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
92 static const uint8_t vp6_ract_pct[3][2][6][11] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
93 { { { 227, 246, 230, 247, 244, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
94 { 255, 255, 209, 231, 231, 249, 249, 253, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
95 { 255, 255, 225, 242, 241, 251, 253, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
96 { 255, 255, 241, 253, 252, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
97 { 255, 255, 248, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
98 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
99 { { 240, 255, 248, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
100 { 255, 255, 240, 253, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
101 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
102 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
103 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
104 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
105 { { { 206, 203, 227, 239, 247, 255, 253, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
106 { 207, 199, 220, 236, 243, 252, 252, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
107 { 212, 219, 230, 243, 244, 253, 252, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
108 { 236, 237, 247, 252, 253, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
109 { 240, 240, 248, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
110 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
111 { { 230, 233, 249, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
112 { 238, 238, 250, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
113 { 248, 251, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
114 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
115 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
116 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
117 { { { 225, 239, 227, 231, 244, 253, 243, 255, 255, 253, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
118 { 232, 234, 224, 228, 242, 249, 242, 252, 251, 251, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
119 { 235, 249, 238, 240, 251, 255, 249, 255, 253, 253, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
120 { 249, 253, 251, 250, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
121 { 251, 250, 249, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
122 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
123 { { 243, 244, 250, 250, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
124 { 249, 248, 250, 253, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
125 { 253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
126 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
127 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
128 { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 } } }
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
129 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
130
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
131 static const int vp6_dccv_lc[3][5][2] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
132 { { 122, 133 }, { 0, 1 }, { 78, 171 }, { 139, 117 }, { 168, 79 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
133 { { 133, 51 }, { 0, 1 }, { 169, 71 }, { 214, 44 }, { 210, 38 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
134 { { 142, -16 }, { 0, 1 }, { 221, -30 }, { 246, -3 }, { 203, 17 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
135 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
136
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
137 static const uint8_t vp6_coeff_groups[] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
138 0, 0, 1, 1, 1, 2, 2, 2,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
139 2, 2, 2, 3, 3, 3, 3, 3,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
140 3, 3, 3, 3, 3, 3, 4, 4,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
141 4, 4, 4, 4, 4, 4, 4, 4,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
142 4, 4, 4, 4, 4, 5, 5, 5,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
143 5, 5, 5, 5, 5, 5, 5, 5,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
144 5, 5, 5, 5, 5, 5, 5, 5,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
145 5, 5, 5, 5, 5, 5, 5, 5,
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
146 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
147
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
148 static const int16_t vp6_block_copy_filter[16][8][4] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
149 { { 0, 128, 0, 0 }, /* 0 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
150 { -3, 122, 9, 0 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
151 { -4, 109, 24, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
152 { -5, 91, 45, -3 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
153 { -4, 68, 68, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
154 { -3, 45, 91, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
155 { -1, 24, 109, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
156 { 0, 9, 122, -3 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
157 { { 0, 128, 0, 0 }, /* 1 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
158 { -4, 124, 9, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
159 { -5, 110, 25, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
160 { -6, 91, 46, -3 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
161 { -5, 69, 69, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
162 { -3, 46, 91, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
163 { -2, 25, 110, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
164 { -1, 9, 124, -4 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
165 { { 0, 128, 0, 0 }, /* 2 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
166 { -4, 123, 10, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
167 { -6, 110, 26, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
168 { -7, 92, 47, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
169 { -6, 70, 70, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
170 { -4, 47, 92, -7 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
171 { -2, 26, 110, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
172 { -1, 10, 123, -4 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
173 { { 0, 128, 0, 0 }, /* 3 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
174 { -5, 124, 10, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
175 { -7, 110, 27, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
176 { -7, 91, 48, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
177 { -6, 70, 70, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
178 { -4, 48, 92, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
179 { -2, 27, 110, -7 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
180 { -1, 10, 124, -5 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
181 { { 0, 128, 0, 0 }, /* 4 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
182 { -6, 124, 11, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
183 { -8, 111, 28, -3 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
184 { -8, 92, 49, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
185 { -7, 71, 71, -7 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
186 { -5, 49, 92, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
187 { -3, 28, 111, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
188 { -1, 11, 124, -6 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
189 { { 0, 128, 0, 0 }, /* 5 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
190 { -6, 123, 12, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
191 { -9, 111, 29, -3 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
192 { -9, 93, 50, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
193 { -8, 72, 72, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
194 { -6, 50, 93, -9 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
195 { -3, 29, 111, -9 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
196 { -1, 12, 123, -6 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
197 { { 0, 128, 0, 0 }, /* 6 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
198 { -7, 124, 12, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
199 { -10, 111, 30, -3 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
200 { -10, 93, 51, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
201 { -9, 73, 73, -9 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
202 { -6, 51, 93, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
203 { -3, 30, 111, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
204 { -1, 12, 124, -7 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
205 { { 0, 128, 0, 0 }, /* 7 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
206 { -7, 123, 13, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
207 { -11, 112, 31, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
208 { -11, 94, 52, -7 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
209 { -10, 74, 74, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
210 { -7, 52, 94, -11 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
211 { -4, 31, 112, -11 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
212 { -1, 13, 123, -7 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
213 { { 0, 128, 0, 0 }, /* 8 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
214 { -8, 124, 13, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
215 { -12, 112, 32, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
216 { -12, 94, 53, -7 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
217 { -10, 74, 74, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
218 { -7, 53, 94, -12 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
219 { -4, 32, 112, -12 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
220 { -1, 13, 124, -8 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
221 { { 0, 128, 0, 0 }, /* 9 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
222 { -9, 124, 14, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
223 { -13, 112, 33, -4 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
224 { -13, 95, 54, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
225 { -11, 75, 75, -11 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
226 { -8, 54, 95, -13 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
227 { -4, 33, 112, -13 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
228 { -1, 14, 124, -9 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
229 { { 0, 128, 0, 0 }, /* 10 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
230 { -9, 123, 15, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
231 { -14, 113, 34, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
232 { -14, 95, 55, -8 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
233 { -12, 76, 76, -12 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
234 { -8, 55, 95, -14 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
235 { -5, 34, 112, -13 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
236 { -1, 15, 123, -9 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
237 { { 0, 128, 0, 0 }, /* 11 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
238 { -10, 124, 15, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
239 { -14, 113, 34, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
240 { -15, 96, 56, -9 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
241 { -13, 77, 77, -13 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
242 { -9, 56, 96, -15 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
243 { -5, 34, 113, -14 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
244 { -1, 15, 124, -10 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
245 { { 0, 128, 0, 0 }, /* 12 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
246 { -10, 123, 16, -1 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
247 { -15, 113, 35, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
248 { -16, 98, 56, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
249 { -14, 78, 78, -14 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
250 { -10, 56, 98, -16 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
251 { -5, 35, 113, -15 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
252 { -1, 16, 123, -10 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
253 { { 0, 128, 0, 0 }, /* 13 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
254 { -11, 124, 17, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
255 { -16, 113, 36, -5 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
256 { -17, 98, 57, -10 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
257 { -14, 78, 78, -14 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
258 { -10, 57, 98, -17 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
259 { -5, 36, 113, -16 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
260 { -2, 17, 124, -11 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
261 { { 0, 128, 0, 0 }, /* 14 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
262 { -12, 125, 17, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
263 { -17, 114, 37, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
264 { -18, 99, 58, -11 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
265 { -15, 79, 79, -15 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
266 { -11, 58, 99, -18 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
267 { -6, 37, 114, -17 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
268 { -2, 17, 125, -12 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
269 { { 0, 128, 0, 0 }, /* 15 */
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
270 { -12, 124, 18, -2 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
271 { -18, 114, 38, -6 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
272 { -19, 99, 59, -11 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
273 { -16, 80, 80, -16 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
274 { -11, 59, 99, -19 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
275 { -6, 38, 114, -18 },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
276 { -2, 18, 124, -12 } },
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
277 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
278
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
279 const vp56_tree_t vp6_pcr_tree[] = {
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
280 { 8, 0},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
281 { 4, 1},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
282 { 2, 2}, {-1}, {-2},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
283 { 2, 3}, {-3}, {-4},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
284 { 8, 4},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
285 { 4, 5},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
286 { 2, 6}, {-5}, {-6},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
287 { 2, 7}, {-7}, {-8},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
288 {-0},
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
289 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
290
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
291 static const uint8_t vp6_coord_div[] = { 4, 4, 4, 4, 8, 8 };
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
292
6795c9e5f983 VP5 and VP6 video decoder
aurel
parents:
diff changeset
293 #endif /* VP6DATA_H */