j2k_dwt.c File Reference

Discrete wavelet transform. More...

#include "j2k_dwt.h"
Include dependency graph for j2k_dwt.c:

Go to the source code of this file.

Functions

static void extend53 (int *p, int i0, int i1)
 
static void extend97 (float *p, int i0, int i1)
 
static void sd_1d53 (int *p, int i0, int i1)
 
static void dwt_encode53 (DWTContext *s, int *t)
 
static void sd_1d97 (float *p, int i0, int i1)
 
static void dwt_encode97 (DWTContext *s, int *t)
 
static void sr_1d53 (int *p, int i0, int i1)
 
static void dwt_decode53 (DWTContext *s, int *t)
 
static void sr_1d97 (float *p, int i0, int i1)
 
static void dwt_decode97 (DWTContext *s, int *t)
 
int ff_j2k_dwt_init (DWTContext *s, uint16_t border[2][2], int decomp_levels, int type)
 initialize DWT More...
 
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)
 

Variables

static const float scale97 [] = {1.625786, 1.230174}
 

Detailed Description

Discrete wavelet transform.

Author
Kamil Nowosad

Definition in file j2k_dwt.c.

Function Documentation

static void dwt_decode53 ( DWTContext s,
int *  t 
)
static

Definition at line 202 of file j2k_dwt.c.

Referenced by ff_j2k_dwt_decode().

static void dwt_decode97 ( DWTContext s,
int *  t 
)
static

Definition at line 270 of file j2k_dwt.c.

Referenced by ff_j2k_dwt_decode().

static void dwt_encode53 ( DWTContext s,
int *  t 
)
static

Definition at line 65 of file j2k_dwt.c.

Referenced by ff_j2k_dwt_encode().

static void dwt_encode97 ( DWTContext s,
int *  t 
)
static

Definition at line 136 of file j2k_dwt.c.

Referenced by ff_j2k_dwt_encode().

static void extend53 ( int *  p,
int  i0,
int  i1 
)
inlinestatic

Definition at line 32 of file j2k_dwt.c.

Referenced by sd_1d53(), and sr_1d53().

static void extend97 ( float *  p,
int  i0,
int  i1 
)
inlinestatic

Definition at line 40 of file j2k_dwt.c.

Referenced by sd_1d97(), and sr_1d97().

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().

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_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().

static void sd_1d53 ( int *  p,
int  i0,
int  i1 
)
static

Definition at line 50 of file j2k_dwt.c.

Referenced by dwt_encode53().

static void sd_1d97 ( float *  p,
int  i0,
int  i1 
)
static

Definition at line 116 of file j2k_dwt.c.

Referenced by dwt_encode97().

static void sr_1d53 ( int *  p,
int  i0,
int  i1 
)
static

Definition at line 187 of file j2k_dwt.c.

Referenced by dwt_decode53().

static void sr_1d97 ( float *  p,
int  i0,
int  i1 
)
static

Definition at line 251 of file j2k_dwt.c.

Referenced by dwt_decode97().

Variable Documentation

const float scale97[] = {1.625786, 1.230174}
static

Definition at line 30 of file j2k_dwt.c.

Referenced by dwt_decode97(), and dwt_encode97().