Imported Upstream version 6.1
[platform/upstream/ffmpeg.git] / libavcodec / vp8data.c
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18
19 #include <stdint.h>
20
21 // cat 1 and 2 are defined in vp8data.h
22 static const uint8_t vp8_dct_cat3_prob[] = {
23     173, 148, 140, 0
24 };
25 static const uint8_t vp8_dct_cat4_prob[] = {
26     176, 155, 140, 135, 0
27 };
28 static const uint8_t vp8_dct_cat5_prob[] = {
29     180, 157, 141, 134, 130, 0
30 };
31 static const uint8_t vp8_dct_cat6_prob[] = {
32     254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0
33 };
34
35 // only used for cat3 and above; cat 1 and 2 are referenced directly.
36 const uint8_t *const ff_vp8_dct_cat_prob[] = {
37     vp8_dct_cat3_prob,
38     vp8_dct_cat4_prob,
39     vp8_dct_cat5_prob,
40     vp8_dct_cat6_prob,
41 };
42