annotate src/ffmpeg/libavcodec/golomb.c @ 811:3afe5701df41 trunk

[svn] - remove h261/h263/h264 stuff
author nenolod
date Mon, 12 Mar 2007 11:38:51 -0700
parents e8776388b02a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
808
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
1 /*
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
2 * exp golomb vlc stuff
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
3 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
4 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
5 * This file is part of FFmpeg.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
6 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
11 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
15 * Lesser General Public License for more details.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
16 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
20 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
21 */
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
22
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
23 /**
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
24 * @file golomb.c
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
25 * @brief
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
26 * exp golomb vlc stuff
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
27 * @author Michael Niedermayer <michaelni@gmx.at>
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
28 */
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
29
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
30 #include "common.h"
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
31
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
32 const uint8_t ff_golomb_vlc_len[512]={
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
49 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
50
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
51 const uint8_t ff_ue_golomb_vlc_code[512]={
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
68 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
69
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
70 const int8_t ff_se_golomb_vlc_code[512]={
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
87 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
88
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
89
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
90 const uint8_t ff_ue_golomb_len[256]={
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
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,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
99 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
100
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
101 const uint8_t ff_interleaved_golomb_vlc_len[256]={
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
102 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
103 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
104 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
105 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
106 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
107 9,9,7,7,9,9,7,7,5,5,5,5,5,5,5,5,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
108 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
109 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
110 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
111 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
112 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
113 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
114 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
115 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
116 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
117 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
118 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
119
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
120 const uint8_t ff_interleaved_ue_golomb_vlc_code[256]={
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
121 15,16,7, 7, 17,18,8, 8, 3, 3, 3, 3, 3, 3, 3, 3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
122 19,20,9, 9, 21,22,10,10,4, 4, 4, 4, 4, 4, 4, 4,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
123 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
124 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
125 23,24,11,11,25,26,12,12,5, 5, 5, 5, 5, 5, 5, 5,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
126 27,28,13,13,29,30,14,14,6, 6, 6, 6, 6, 6, 6, 6,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
127 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
128 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
129 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
130 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
131 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
132 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
133 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
134 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
136 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
137 };
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
138
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
139 const int8_t ff_interleaved_se_golomb_vlc_code[256]={
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
140 8, -8, 4, 4, 9, -9, -4, -4, 2, 2, 2, 2, 2, 2, 2, 2,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
141 10,-10, 5, 5, 11,-11, -5, -5, -2, -2, -2, -2, -2, -2, -2, -2,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
142 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
143 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
144 12,-12, 6, 6, 13,-13, -6, -6, 3, 3, 3, 3, 3, 3, 3, 3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
145 14,-14, 7, 7, 15,-15, -7, -7, -3, -3, -3, -3, -3, -3, -3, -3,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
146 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
147 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
148 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
149 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
150 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
151 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
152 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
153 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
154 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
155 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
156 };