OpenJPEG  2.1.0
MCT - Implementation of a multi-component transform

Exported functions

void opj_mct_encode (OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n)
 Apply a reversible multi-component transform to an image. More...
 
void opj_mct_decode (OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n)
 Apply a reversible multi-component inverse transform to an image. More...
 
OPJ_FLOAT64 opj_mct_getnorm (OPJ_UINT32 compno)
 Get norm of the basis function used for the reversible multi-component transform. More...
 
void opj_mct_encode_real (OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n)
 Apply an irreversible multi-component transform to an image. More...
 
void opj_mct_decode_real (OPJ_FLOAT32 *c0, OPJ_FLOAT32 *c1, OPJ_FLOAT32 *c2, OPJ_UINT32 n)
 Apply an irreversible multi-component inverse transform to an image. More...
 
OPJ_FLOAT64 opj_mct_getnorm_real (OPJ_UINT32 compno)
 Get norm of the basis function used for the irreversible multi-component transform. More...
 
OPJ_BOOL opj_mct_encode_custom (OPJ_BYTE *p_coding_data, OPJ_UINT32 n, OPJ_BYTE **p_data, OPJ_UINT32 p_nb_comp, OPJ_UINT32 is_signed)
 FIXME DOC. More...
 
OPJ_BOOL opj_mct_decode_custom (OPJ_BYTE *pDecodingData, OPJ_UINT32 n, OPJ_BYTE **pData, OPJ_UINT32 pNbComp, OPJ_UINT32 isSigned)
 FIXME DOC. More...
 
void opj_calculate_norms (OPJ_FLOAT64 *pNorms, OPJ_UINT32 p_nb_comps, OPJ_FLOAT32 *pMatrix)
 FIXME DOC. More...
 
const OPJ_FLOAT64opj_mct_get_mct_norms (void)
 FIXME DOC. More...
 
const OPJ_FLOAT64opj_mct_get_mct_norms_real (void)
 FIXME DOC. More...
 

Detailed Description

Function Documentation

void opj_calculate_norms ( OPJ_FLOAT64 pNorms,
OPJ_UINT32  p_nb_comps,
OPJ_FLOAT32 pMatrix 
)

FIXME DOC.

Parameters
pNormsMCT data
p_nb_compssize of components
pMatrixcomponents
Returns

Referenced by opj_j2k_setup_encoder().

void opj_mct_decode ( OPJ_INT32 c0,
OPJ_INT32 c1,
OPJ_INT32 c2,
OPJ_UINT32  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
OPJ_BOOL opj_mct_decode_custom ( OPJ_BYTE pDecodingData,
OPJ_UINT32  n,
OPJ_BYTE **  pData,
OPJ_UINT32  pNbComp,
OPJ_UINT32  isSigned 
)

FIXME DOC.

Parameters
pDecodingDataMCT data
nsize of components
pDatacomponents
pNbCompnb of components (i.e. size of p_data)
isSignedtells if the data is signed
Returns
OPJ_FALSE if function encounter a problem, OPJ_TRUE otherwise

References OPJ_ARG_NOT_USED, OPJ_FALSE, opj_free, opj_malloc, and OPJ_TRUE.

Referenced by opj_tcd_mct_decode().

void opj_mct_decode_real ( OPJ_FLOAT32 c0,
OPJ_FLOAT32 c1,
OPJ_FLOAT32 c2,
OPJ_UINT32  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
void opj_mct_encode ( OPJ_INT32 c0,
OPJ_INT32 c1,
OPJ_INT32 c2,
OPJ_UINT32  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
OPJ_BOOL opj_mct_encode_custom ( OPJ_BYTE p_coding_data,
OPJ_UINT32  n,
OPJ_BYTE **  p_data,
OPJ_UINT32  p_nb_comp,
OPJ_UINT32  is_signed 
)

FIXME DOC.

Parameters
p_coding_dataMCT data
nsize of components
p_datacomponents
p_nb_compnb of components (i.e. size of p_data)
is_signedtells if the data is signed
Returns
OPJ_FALSE if function encounter a problem, OPJ_TRUE otherwise

References OPJ_ARG_NOT_USED, OPJ_FALSE, opj_free, opj_int_fix_mul(), opj_malloc, and OPJ_TRUE.

Referenced by opj_tcd_mct_encode().

void opj_mct_encode_real ( OPJ_INT32 c0,
OPJ_INT32 c1,
OPJ_INT32 c2,
OPJ_UINT32  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
const OPJ_FLOAT64* opj_mct_get_mct_norms ( void  )

FIXME DOC.

References opj_mct_norms.

Referenced by opj_tcd_t1_encode().

const OPJ_FLOAT64* opj_mct_get_mct_norms_real ( void  )

FIXME DOC.

References opj_mct_norms_real.

Referenced by opj_tcd_t1_encode().

OPJ_FLOAT64 opj_mct_getnorm ( OPJ_UINT32  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 opj_mct_norms.

OPJ_FLOAT64 opj_mct_getnorm_real ( OPJ_UINT32  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 opj_mct_norms_real.