Libav
jpeg2000dwt.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 Libav.
6  *
7  * Libav 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  * Libav 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 Libav; 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_JPEG2000DWT_H
23 #define AVCODEC_JPEG2000DWT_H
24 
30 #include <stdint.h>
31 
32 #define FF_DWT_MAX_DECLVLS 32
33 
34 enum DWTType {
38 };
39 
40 typedef struct DWTContext {
47  float *f_linebuf;
48 } DWTContext;
49 
57 int ff_jpeg2000_dwt_init(DWTContext *s, uint16_t border[2][2],
58  int decomp_levels, int type);
59 
60 int ff_dwt_decode(DWTContext *s, void *t);
61 
62 void ff_dwt_destroy(DWTContext *s);
63 
64 #endif /* AVCODEC_JPEG2000DWT_H */