FFmpeg
Classes | Macros | Typedefs | Enumerations | Functions
jpeg2000dwt.h File Reference

Discrete wavelet transform. More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  DWTContext
 

Macros

#define FF_DWT_MAX_DECLVLS   32
 max number of decomposition levels
 
#define F_LFTG_K   1.230174104914001f
 
#define F_LFTG_X   0.812893066115961f
 

Typedefs

typedef struct DWTContext DWTContext
 

Enumerations

enum  DWTType { FF_DWT97, FF_DWT53, FF_DWT97_INT, FF_DWT_NB }
 

Functions

int ff_jpeg2000_dwt_init (DWTContext *s, int border[2][2], int decomp_levels, int type)
 Initialize DWT. More...
 
int ff_dwt_encode (DWTContext *s, void *t)
 
int ff_dwt_decode (DWTContext *s, void *t)
 
void ff_dwt_destroy (DWTContext *s)
 

Detailed Description

Discrete wavelet transform.

Function Documentation

§ ff_jpeg2000_dwt_init()

int ff_jpeg2000_dwt_init ( DWTContext s,
int  border[2][2],
int  decomp_levels,
int  type 
)

Initialize DWT.

Parameters
sDWT context
bordercoordinates of transformed region {{x0, x1}, {y0, y1}}
decomp_levelsnumber of decomposition levels
type0 for DWT 9/7; 1 for DWT 5/3