OpenJPEG 1.5.1
mct.h File Reference

Implementation of a multi-component transforms (MCT) More...

Go to the source code of this file.

Functions

Exported functions
void mct_encode (int *c0, int *c1, int *c2, int n)
 Apply a reversible multi-component transform to an image.
 
void mct_decode (int *c0, int *c1, int *c2, int n)
 Apply a reversible multi-component inverse transform to an image.
 
double mct_getnorm (int compno)
 Get norm of the basis function used for the reversible multi-component transform.
 
void mct_encode_real (int *c0, int *c1, int *c2, int n)
 Apply an irreversible multi-component transform to an image.
 
void mct_decode_real (float *c0, float *c1, float *c2, int n)
 Apply an irreversible multi-component inverse transform to an image.
 
double mct_getnorm_real (int compno)
 Get norm of the basis function used for the irreversible multi-component transform.
 

Detailed Description

Implementation of a multi-component transforms (MCT)

The functions in MCT.C have for goal to realize reversible and irreversible multicomponent transform. The functions in MCT.C are used by some function in TCD.C.

Function Documentation

◆ mct_decode()

void mct_decode ( int *  c0,
int *  c1,
int *  c2,
int  n 
)

Apply a reversible multi-component inverse transform to an image.

Parameters
c0Samples for luminance component
c1Samples for red chrominance component
c2Samples for blue chrominance component
nNumber of samples for each component

◆ mct_decode_real()

void mct_decode_real ( float *  c0,
float *  c1,
float *  c2,
int  n 
)

Apply an irreversible multi-component inverse transform to an image.

Parameters
c0Samples for luminance component
c1Samples for red chrominance component
c2Samples for blue chrominance component
nNumber of samples for each component

◆ mct_encode()

void mct_encode ( int *  c0,
int *  c1,
int *  c2,
int  n 
)

Apply a reversible multi-component transform to an image.

Parameters
c0Samples for red component
c1Samples for green component
c2Samples blue component
nNumber of samples for each component

◆ mct_encode_real()

void mct_encode_real ( int *  c0,
int *  c1,
int *  c2,
int  n 
)

Apply an irreversible multi-component transform to an image.

Parameters
c0Samples for red component
c1Samples for green component
c2Samples blue component
nNumber of samples for each component

◆ mct_getnorm()

double mct_getnorm ( int  compno)

Get norm of the basis function used for the reversible multi-component transform.

Parameters
compnoNumber of the component (0->Y, 1->U, 2->V)
Returns

References mct_norms.

Referenced by t1_getwmsedec().

◆ mct_getnorm_real()

double mct_getnorm_real ( int  compno)

Get norm of the basis function used for the irreversible multi-component transform.

Parameters
compnoNumber of the component (0->Y, 1->U, 2->V)
Returns

References mct_norms_real.

Referenced by t1_getwmsedec().