FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
j2k_dwt.h File Reference

Discrete wavelet transform. More...

#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  DWTContext
 

Macros

#define FF_DWT_MAX_DECLVLS   32
 max number of decomposition levels
 

Enumerations

enum  DWTType { FF_DWT97, FF_DWT53 }
 

Functions

int ff_j2k_dwt_init (DWTContext *s, uint16_t border[2][2], int decomp_levels, int type)
 initialize DWT
 
int ff_j2k_dwt_encode (DWTContext *s, int *t)
 
int ff_j2k_dwt_decode (DWTContext *s, int *t)
 
void ff_j2k_dwt_destroy (DWTContext *s)
 

Detailed Description

Discrete wavelet transform.

Author
Kamil Nowosad

Definition in file j2k_dwt.h.

Macro Definition Documentation

#define FF_DWT_MAX_DECLVLS   32

max number of decomposition levels

Definition at line 33 of file j2k_dwt.h.

Referenced by ff_j2k_dwt_init().

Enumeration Type Documentation

enum DWTType
Enumerator:
FF_DWT97 
FF_DWT53 

Definition at line 35 of file j2k_dwt.h.

Function Documentation

int ff_j2k_dwt_init ( DWTContext s,
uint16_t  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

Definition at line 319 of file j2k_dwt.c.

Referenced by ff_j2k_init_component().

int ff_j2k_dwt_encode ( DWTContext s,
int *  t 
)

Definition at line 357 of file j2k_dwt.c.

Referenced by encode_tile().

int ff_j2k_dwt_decode ( DWTContext s,
int *  t 
)

Definition at line 370 of file j2k_dwt.c.

Referenced by decode_tile().

void ff_j2k_dwt_destroy ( DWTContext s)

Definition at line 383 of file j2k_dwt.c.

Referenced by ff_j2k_cleanup().