annotate golomb.c @ 5011:03aa103464d4 libavcodec

DTS decoding was broken for every speaker configuration except 5.1. patch by Sergey Vlasov, vsu altlinux org
author diego
date Wed, 16 May 2007 10:50:18 +0000
parents c8c591fe26f8
children 2b72f9bc4f06
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
1 /*
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
2 * exp golomb vlc stuff
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
3 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
4 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3036
diff changeset
5 * This file is part of FFmpeg.
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3036
diff changeset
6 *
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3036
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3036
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
11 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3036
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
15 * Lesser General Public License for more details.
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
16 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
17 * 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: 3036
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
3036
0b546eab515d Update licensing information: The FSF changed postal address.
diego
parents: 2967
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
20 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
21 */
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
22
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
23 /**
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
24 * @file golomb.c
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
25 * @brief
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
26 * exp golomb vlc stuff
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
27 * @author Michael Niedermayer <michaelni@gmx.at>
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
28 */
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
29
1753
bbf583d24584 inttypes.h patch by (Chip <szarlada at freemail dot hu>)
michael
parents: 1250
diff changeset
30 #include "common.h"
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
31
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
32 const uint8_t ff_golomb_vlc_len[512]={
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
33 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
34 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
35 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
36 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
37 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
38 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
39 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
40 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
41 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
42 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
43 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
44 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
45 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
46 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
47 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
48 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
49 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
50
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
51 const uint8_t ff_ue_golomb_vlc_code[512]={
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
52 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
53 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
54 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
55 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
56 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
57 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
58 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
59 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
60 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
61 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
62 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
63 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
64 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
65 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
66 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
67 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
68 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
69
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
70 const int8_t ff_se_golomb_vlc_code[512]={
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
71 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, -8, 9, -9, 10,-10, 11,-11, 12,-12, 13,-13, 14,-14, 15,-15,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
72 4, 4, 4, 4, -4, -4, -4, -4, 5, 5, 5, 5, -5, -5, -5, -5, 6, 6, 6, 6, -6, -6, -6, -6, 7, 7, 7, 7, -7, -7, -7, -7,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
73 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
74 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
75 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
76 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
77 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
78 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
79 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
80 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
81 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
82 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
84 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
85 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
86 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
87 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
88
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
89
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
90 const uint8_t ff_ue_golomb_len[256]={
1168
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
91 1, 3, 3, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,11,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
92 11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,13,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
93 13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
94 13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,15,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
95 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
96 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
97 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
98 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,17,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
99 };
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
100
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
101 const uint8_t ff_interleaved_golomb_vlc_len[256]={
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
102 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
103 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
104 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
105 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
106 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
107 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
108 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
109 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
110 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
111 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
112 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
113 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
114 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
115 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
116 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
117 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
118 };
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
119
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
120 const uint8_t ff_interleaved_ue_golomb_vlc_code[256]={
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
121 15,16,7, 7, 17,18,8, 8, 3, 3, 3, 3, 3, 3, 3, 3,
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
122 19,20,9, 9, 21,22,10,10,4, 4, 4, 4, 4, 4, 4, 4,
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
123 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
124 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
125 23,24,11,11,25,26,12,12,5, 5, 5, 5, 5, 5, 5, 5,
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
126 27,28,13,13,29,30,14,14,6, 6, 6, 6, 6, 6, 6, 6,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
127 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
128 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
129 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
130 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
131 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
132 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
133 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
134 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
136 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
137 };
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
138
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1753
diff changeset
139 const int8_t ff_interleaved_se_golomb_vlc_code[256]={
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
140 8, -8, 4, 4, 9, -9, -4, -4, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
141 10,-10, 5, 5, 11,-11, -5, -5, -2, -2, -2, -2, -2, -2, -2, -2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
142 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
143 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
144 12,-12, 6, 6, 13,-13, -6, -6, 3, 3, 3, 3, 3, 3, 3, 3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
145 14,-14, 7, 7, 15,-15, -7, -7, -3, -3, -3, -3, -3, -3, -3, -3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
146 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
147 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
148 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
149 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
150 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
151 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
152 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
153 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
154 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
155 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
156 };