FFmpeg  2.6.3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
hqx.h
Go to the documentation of this file.
1 /*
2  * Canopus HQX decoder
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_HQX_H
22 #define AVCODEC_HQX_H
23 
24 #include <stdint.h>
25 #include "libavutil/mem.h"
26 #include "get_bits.h"
27 
28 enum HQXACMode {
29  HQX_AC_Q0 = 0,
36 };
37 
38 typedef struct HQXLUT {
39  int16_t lev;
41  int8_t bits;
42 } HQXLUT;
43 
44 typedef struct HQXAC {
46  const HQXLUT *lut;
47 } HQXAC;
48 
49 typedef struct HQXContext {
52 
53  DECLARE_ALIGNED(16, int16_t, block)[16][64];
54 
56  VLC dc_vlc[3];
57 } HQXContext;
58 
59 #define HQX_DC_VLC_BITS 9
60 
61 extern const HQXAC ff_hqx_ac[NUM_HQX_AC];
62 
64 
65 #endif /* AVCODEC_HQX_H */
Definition: hqx.h:44
int dcb
Definition: hqx.h:50
int height
Definition: hqx.h:50
int interlaced
Definition: hqx.h:51
memory handling functions
Definition: hqx.h:32
#define DECLARE_ALIGNED(n, t, v)
Definition: mem.h:53
int ff_hqx_init_vlcs(HQXContext *ctx)
Definition: hqxvlc.c:2155
Definition: hqx.h:31
const HQXAC ff_hqx_ac[NUM_HQX_AC]
Definition: hqxvlc.c:2132
uint8_t
uint8_t run
Definition: hqx.h:40
int16_t block[16][64]
Definition: hqx.h:53
bitstream reader API header.
const HQXLUT * lut
Definition: hqx.h:46
VLC dc_vlc[3]
Definition: hqx.h:56
int lut_bits
Definition: hqx.h:45
Definition: hqx.h:49
Definition: get_bits.h:63
Definition: hqx.h:33
int extra_bits
Definition: hqx.h:45
HQXACMode
Definition: hqx.h:28
int width
Definition: hqx.h:50
Definition: hqx.h:29
int8_t bits
Definition: hqx.h:41
Definition: hqx.h:38
int16_t lev
Definition: hqx.h:39
int format
Definition: hqx.h:50
Definition: hqx.h:35
VLC cbp_vlc
Definition: hqx.h:55
Definition: hqx.h:30