FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dcahuff.h
Go to the documentation of this file.
1 /*
2  * DCA compatible decoder - huffman tables
3  * Copyright (C) 2004 Gildas Bazin
4  * Copyright (C) 2007 Konstantin Shishkov
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_DCAHUFF_H
24 #define AVCODEC_DCAHUFF_H
25 
26 #include "libavutil/common.h"
27 
28 #include "avcodec.h"
29 #include "get_bits.h"
30 
31 #define DCA_CODE_BOOKS 10
32 
33 typedef struct DCAVLC {
34  int offset; ///< Code values offset
35  int max_depth; ///< Parameter for get_vlc2()
36  VLC vlc[7]; ///< Actual codes
37 } DCAVLC;
38 
43 
44 extern VLC ff_dca_vlc_tnl_grp[5];
45 extern VLC ff_dca_vlc_tnl_scf;
46 extern VLC ff_dca_vlc_damp;
47 extern VLC ff_dca_vlc_dph;
50 extern VLC ff_dca_vlc_rsd_amp;
51 extern VLC ff_dca_vlc_avg_g3;
52 extern VLC ff_dca_vlc_st_grid;
53 extern VLC ff_dca_vlc_grid_2;
54 extern VLC ff_dca_vlc_grid_3;
55 extern VLC ff_dca_vlc_rsd;
56 
57 av_cold void ff_dca_init_vlcs(void);
58 
59 #endif /* AVCODEC_DCAHUFF_H */
VLC vlc[7]
Actual codes.
Definition: dcahuff.h:36
VLC ff_dca_vlc_dph
Definition: dcahuff.c:1254
DCAVLC ff_dca_vlc_quant_index[DCA_CODE_BOOKS]
Definition: dcahuff.c:1249
VLC ff_dca_vlc_rsd_amp
Definition: dcahuff.c:1257
#define av_cold
Definition: attributes.h:82
bitstream reader API header.
VLC ff_dca_vlc_avg_g3
Definition: dcahuff.c:1258
DCAVLC ff_dca_vlc_bit_allocation
Definition: dcahuff.c:1246
VLC ff_dca_vlc_st_grid
Definition: dcahuff.c:1259
VLC ff_dca_vlc_rsd_apprx
Definition: dcahuff.c:1256
int offset
Code values offset.
Definition: dcahuff.h:34
DCAVLC ff_dca_vlc_transition_mode
Definition: dcahuff.c:1247
Definition: vlc.h:26
VLC ff_dca_vlc_tnl_grp[5]
Definition: dcahuff.c:1251
av_cold void ff_dca_init_vlcs(void)
Definition: dcahuff.c:1264
Libavcodec external API header.
#define DCA_CODE_BOOKS
Definition: dcahuff.h:31
VLC ff_dca_vlc_grid_2
Definition: dcahuff.c:1260
VLC ff_dca_vlc_fst_rsd_amp
Definition: dcahuff.c:1255
common internal and external API header
int max_depth
Parameter for get_vlc2()
Definition: dcahuff.h:35
VLC ff_dca_vlc_grid_3
Definition: dcahuff.c:1261
VLC ff_dca_vlc_tnl_scf
Definition: dcahuff.c:1252
DCAVLC ff_dca_vlc_scale_factor
Definition: dcahuff.c:1248
VLC ff_dca_vlc_rsd
Definition: dcahuff.c:1262
VLC ff_dca_vlc_damp
Definition: dcahuff.c:1253
Definition: dcahuff.h:33