FFmpeg
1.2.4
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavcodec
j2k_dwt.h
Go to the documentation of this file.
1
/*
2
* Discrete wavelet transform
3
* Copyright (c) 2007 Kamil Nowosad
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_DWT_H
23
#define AVCODEC_DWT_H
24
31
#include "
avcodec.h
"
32
33
#define FF_DWT_MAX_DECLVLS 32
34
35
enum
DWTType
{
36
FF_DWT97
,
37
FF_DWT53
38
};
39
40
typedef
struct
{
42
uint16_t linelen[
FF_DWT_MAX_DECLVLS
][2];
43
uint8_t
mod[
FF_DWT_MAX_DECLVLS
][2];
44
uint8_t
ndeclevels
;
45
uint8_t
type
;
46
void
*
linebuf
;
47
}
DWTContext
;
48
56
int
ff_j2k_dwt_init
(
DWTContext
*s, uint16_t border[2][2],
int
decomp_levels,
int
type);
57
58
int
ff_j2k_dwt_encode
(
DWTContext
*s,
int
*
t
);
59
int
ff_j2k_dwt_decode
(
DWTContext
*s,
int
*
t
);
60
61
void
ff_j2k_dwt_destroy
(
DWTContext
*s);
62
63
#endif
/* AVCODEC_DWT_H */
Generated on Fri Nov 29 2013 19:15:03 for FFmpeg by
1.8.1.2