2 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
4 * This file is part of Libav.
6 * Libav is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * Libav is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Libav; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * VP5 and VP6 compatible video decoder (common data)
28 const uint8_t ff_vp56_b2p[] = { 0, 0, 0, 0, 1, 2, 3, 3, 3, 3 };
29 const uint8_t ff_vp56_b6to4[] = { 0, 0, 1, 1, 2, 3 };
31 const uint8_t ff_vp56_coeff_parse_table[6][11] = {
32 { 159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
33 { 145, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
34 { 140, 148, 173, 0, 0, 0, 0, 0, 0, 0, 0 },
35 { 135, 140, 155, 176, 0, 0, 0, 0, 0, 0, 0 },
36 { 130, 134, 141, 157, 180, 0, 0, 0, 0, 0, 0 },
37 { 129, 130, 133, 140, 153, 177, 196, 230, 243, 254, 254 },
40 const uint8_t ff_vp56_def_mb_types_stats[3][10][2] = {
41 { { 69, 42 }, { 1, 2 }, { 1, 7 }, { 44, 42 }, { 6, 22 },
42 { 1, 3 }, { 0, 2 }, { 1, 5 }, { 0, 1 }, { 0, 0 }, },
43 { { 229, 8 }, { 1, 1 }, { 0, 8 }, { 0, 0 }, { 0, 0 },
44 { 1, 2 }, { 0, 1 }, { 0, 0 }, { 1, 1 }, { 0, 0 }, },
45 { { 122, 35 }, { 1, 1 }, { 1, 6 }, { 46, 34 }, { 0, 0 },
46 { 1, 2 }, { 0, 1 }, { 0, 1 }, { 1, 1 }, { 0, 0 }, },
49 const VP56Tree ff_vp56_pva_tree[] = {
59 const VP56Tree ff_vp56_pc_tree[] = {
67 const uint8_t ff_vp56_coeff_bias[] = { 0, 1, 2, 3, 4, 5, 7, 11, 19, 35, 67 };
68 const uint8_t ff_vp56_coeff_bit_length[] = { 0, 1, 2, 3, 4, 10 };