FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vp56data.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg 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.
10  *
11  * FFmpeg 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.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /**
22  * @file
23  * VP5 and VP6 compatible video decoder (common data)
24  */
25 
26 #include "vp56data.h"
27 
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 };
30 
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 },
38 };
39 
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 }, },
47 };
48 
50  { 8, 0},
51  { 4, 1},
52  { 2, 2}, {-0}, {-1},
53  { 2, 3}, {-2}, {-3},
54  { 4, 4},
55  { 2, 5}, {-4}, {-5},
56  { 2, 6}, {-6}, {-7},
57 };
58 
60  { 4, 6},
61  { 2, 7}, {-0}, {-1},
62  { 4, 8},
63  { 2, 9}, {-2}, {-3},
64  { 2,10}, {-4}, {-5},
65 };
66 
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 };