FFmpeg
2.6.9
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
libavcodec
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,
30
HQX_AC_Q8
,
31
HQX_AC_Q16
,
32
HQX_AC_Q32
,
33
HQX_AC_Q64
,
34
HQX_AC_Q128
,
35
NUM_HQX_AC
36
};
37
38
typedef
struct
HQXLUT
{
39
int16_t
lev
;
40
uint8_t
run
;
41
int8_t
bits
;
42
}
HQXLUT
;
43
44
typedef
struct
HQXAC
{
45
int
lut_bits
,
extra_bits
;
46
const
HQXLUT
*
lut
;
47
}
HQXAC
;
48
49
typedef
struct
HQXContext
{
50
int
format
,
dcb
,
width
,
height
;
51
int
interlaced
;
52
53
DECLARE_ALIGNED
(16, int16_t,
block
)[16][64];
54
55
VLC
cbp_vlc
;
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
63
int
ff_hqx_init_vlcs
(
HQXContext
*ctx);
64
65
#endif
/* AVCODEC_HQX_H */
HQXAC
Definition:
hqx.h:44
HQXContext::dcb
int dcb
Definition:
hqx.h:50
HQXContext::height
int height
Definition:
hqx.h:50
HQXContext::interlaced
int interlaced
Definition:
hqx.h:51
mem.h
memory handling functions
HQX_AC_Q32
Definition:
hqx.h:32
DECLARE_ALIGNED
#define DECLARE_ALIGNED(n, t, v)
Definition:
mem.h:53
ff_hqx_init_vlcs
int ff_hqx_init_vlcs(HQXContext *ctx)
Definition:
hqxvlc.c:2155
HQX_AC_Q16
Definition:
hqx.h:31
ff_hqx_ac
const HQXAC ff_hqx_ac[NUM_HQX_AC]
Definition:
hqxvlc.c:2132
uint8_t
uint8_t
Definition:
audio_convert.c:194
HQXLUT::run
uint8_t run
Definition:
hqx.h:40
HQXContext::block
int16_t block[16][64]
Definition:
hqx.h:53
get_bits.h
bitstream reader API header.
HQXAC::lut
const HQXLUT * lut
Definition:
hqx.h:46
HQXContext::dc_vlc
VLC dc_vlc[3]
Definition:
hqx.h:56
HQXAC::lut_bits
int lut_bits
Definition:
hqx.h:45
HQXContext
Definition:
hqx.h:49
VLC
Definition:
get_bits.h:63
HQX_AC_Q64
Definition:
hqx.h:33
HQXAC::extra_bits
int extra_bits
Definition:
hqx.h:45
HQXACMode
HQXACMode
Definition:
hqx.h:28
HQXContext::width
int width
Definition:
hqx.h:50
HQX_AC_Q0
Definition:
hqx.h:29
HQXLUT::bits
int8_t bits
Definition:
hqx.h:41
HQXLUT
Definition:
hqx.h:38
HQXLUT::lev
int16_t lev
Definition:
hqx.h:39
HQXContext::format
int format
Definition:
hqx.h:50
NUM_HQX_AC
Definition:
hqx.h:35
HQXContext::cbp_vlc
VLC cbp_vlc
Definition:
hqx.h:55
HQX_AC_Q8
Definition:
hqx.h:30
HQX_AC_Q128
Definition:
hqx.h:34
Generated on Mon May 27 2019 05:45:01 for FFmpeg by
1.8.8