annotate golomb.c @ 1656:34b0e799aeb6 libavcodec

cleanup
author michael
date Thu, 04 Dec 2003 18:46:49 +0000
parents fa181d095027
children bbf583d24584
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 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
5 * This library is free software; you can redistribute it and/or
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
6 * modify it under the terms of the GNU Lesser General Public
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
7 * License as published by the Free Software Foundation; either
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
8 * version 2 of the License, or (at your option) any later version.
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
9 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
10 * This library is distributed in the hope that it will be useful,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
13 * Lesser General Public License for more details.
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
14 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
15 * You should have received a copy of the GNU Lesser General Public
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
16 * License along with this library; if not, write to the Free Software
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
18 *
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
19 */
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
20
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
21 /**
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
22 * @file golomb.c
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
23 * @brief
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
24 * exp golomb vlc stuff
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
25 * @author Michael Niedermayer <michaelni@gmx.at>
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
26 */
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
27
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
28 #include <inttypes.h>
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
29
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
30 const uint8_t ff_golomb_vlc_len[512]={
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
31 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
32 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
33 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
34 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
35 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
36 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
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 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
40 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
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 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
48
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
49 const uint8_t ff_ue_golomb_vlc_code[512]={
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 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
58 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
59 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
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 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
67
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
68 const int8_t ff_se_golomb_vlc_code[512]={
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
69 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
70 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
71 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
72 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
73 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
74 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
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 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
78 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
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 };
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
86
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
87
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
88 const uint8_t ff_ue_golomb_len[256]={
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
89 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
90 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
91 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
92 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
93 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
94 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
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,17,
5af9aeadbdc3 H264 decoder & demuxer
michaelni
parents:
diff changeset
97 };
1250
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
98
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
99 const uint8_t ff_interleaved_golomb_vlc_len[256]={
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
100 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
101 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
102 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
103 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
104 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
105 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
106 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
107 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
108 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
109 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
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 };
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
117
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
118 const uint8_t ff_interleaved_ue_golomb_vlc_code[256]={
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
119 15,16,7, 7, 17,18,8, 8, 3, 3, 3, 3, 3, 3, 3, 3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
120 19,20,9, 9, 21,22,10,10,4, 4, 4, 4, 4, 4, 4, 4,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
121 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
122 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
123 23,24,11,11,25,26,12,12,5, 5, 5, 5, 5, 5, 5, 5,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
124 27,28,13,13,29,30,14,14,6, 6, 6, 6, 6, 6, 6, 6,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
125 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
126 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
127 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
128 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
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 };
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
136
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
137 const int8_t ff_interleaved_se_golomb_vlc_code[256]={
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
138 8, -8, 4, 4, 9, -9, -4, -4, 2, 2, 2, 2, 2, 2, 2, 2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
139 10,-10, 5, 5, 11,-11, -5, -5, -2, -2, -2, -2, -2, -2, -2, -2,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
140 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
141 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
142 12,-12, 6, 6, 13,-13, -6, -6, 3, 3, 3, 3, 3, 3, 3, 3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
143 14,-14, 7, 7, 15,-15, -7, -7, -3, -3, -3, -3, -3, -3, -3, -3,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
144 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
145 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
146 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
fa181d095027 optimizations
michaelni
parents: 1168
diff changeset
147 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
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 };