OpenJPEG  2.5.0
Functions | Variables
mct.c File Reference
#include "opj_includes.h"

Functions

const OPJ_FLOAT64opj_mct_get_mct_norms ()
 FIXME DOC. More...
 
const OPJ_FLOAT64opj_mct_get_mct_norms_real ()
 FIXME DOC. More...
 
void opj_mct_encode (OPJ_INT32 *OPJ_RESTRICT c0, OPJ_INT32 *OPJ_RESTRICT c1, OPJ_INT32 *OPJ_RESTRICT c2, OPJ_SIZE_T n)
 Apply a reversible multi-component transform to an image. More...
 
void opj_mct_decode (OPJ_INT32 *OPJ_RESTRICT c0, OPJ_INT32 *OPJ_RESTRICT c1, OPJ_INT32 *OPJ_RESTRICT c2, OPJ_SIZE_T 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_FLOAT32 *OPJ_RESTRICT c0, OPJ_FLOAT32 *OPJ_RESTRICT c1, OPJ_FLOAT32 *OPJ_RESTRICT c2, OPJ_SIZE_T n)
 Apply an irreversible multi-component transform to an image. More...
 
void opj_mct_decode_real (OPJ_FLOAT32 *OPJ_RESTRICT c0, OPJ_FLOAT32 *OPJ_RESTRICT c1, OPJ_FLOAT32 *OPJ_RESTRICT c2, OPJ_SIZE_T 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 *pCodingdata, OPJ_SIZE_T n, OPJ_BYTE **pData, OPJ_UINT32 pNbComp, OPJ_UINT32 isSigned)
 FIXME DOC. More...
 
OPJ_BOOL opj_mct_decode_custom (OPJ_BYTE *pDecodingData, OPJ_SIZE_T n, OPJ_BYTE **pData, OPJ_UINT32 pNbComp, OPJ_UINT32 isSigned)
 FIXME DOC. More...
 
void opj_calculate_norms (OPJ_FLOAT64 *pNorms, OPJ_UINT32 pNbComps, OPJ_FLOAT32 *pMatrix)
 FIXME DOC. More...
 

Variables

static const OPJ_FLOAT64 opj_mct_norms [3] = { 1.732, .8292, .8292 }
 
static const OPJ_FLOAT64 opj_mct_norms_real [3] = { 1.732, 1.805, 1.573 }
 

Function Documentation

◆ opj_calculate_norms()

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

◆ opj_mct_decode()

void opj_mct_decode ( OPJ_INT32 *OPJ_RESTRICT  c0,
OPJ_INT32 *OPJ_RESTRICT  c1,
OPJ_INT32 *OPJ_RESTRICT  c2,
OPJ_SIZE_T  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

Referenced by opj_tcd_mct_decode().

◆ opj_mct_decode_custom()

OPJ_BOOL opj_mct_decode_custom ( OPJ_BYTE pDecodingData,
OPJ_SIZE_T  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().

◆ opj_mct_decode_real()

void opj_mct_decode_real ( OPJ_FLOAT32 *OPJ_RESTRICT  c0,
OPJ_FLOAT32 *OPJ_RESTRICT  c1,
OPJ_FLOAT32 *OPJ_RESTRICT  c2,
OPJ_SIZE_T  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

Referenced by opj_tcd_mct_decode().

◆ opj_mct_encode()

void opj_mct_encode ( OPJ_INT32 *OPJ_RESTRICT  c0,
OPJ_INT32 *OPJ_RESTRICT  c1,
OPJ_INT32 *OPJ_RESTRICT  c2,
OPJ_SIZE_T  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

Referenced by opj_tcd_mct_encode().

◆ opj_mct_encode_custom()

OPJ_BOOL opj_mct_encode_custom ( OPJ_BYTE p_coding_data,
OPJ_SIZE_T  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().

◆ opj_mct_encode_real()

void opj_mct_encode_real ( OPJ_FLOAT32 *OPJ_RESTRICT  c0,
OPJ_FLOAT32 *OPJ_RESTRICT  c1,
OPJ_FLOAT32 *OPJ_RESTRICT  c2,
OPJ_SIZE_T  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

Referenced by opj_tcd_mct_encode().

◆ opj_mct_get_mct_norms()

const OPJ_FLOAT64* opj_mct_get_mct_norms ( )

FIXME DOC.

References opj_mct_norms.

Referenced by opj_tcd_t1_encode().

◆ opj_mct_get_mct_norms_real()

const OPJ_FLOAT64* opj_mct_get_mct_norms_real ( )

FIXME DOC.

References opj_mct_norms_real.

Referenced by opj_tcd_t1_encode().

◆ opj_mct_getnorm()

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

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.

Variable Documentation

◆ opj_mct_norms

const OPJ_FLOAT64 opj_mct_norms[3] = { 1.732, .8292, .8292 }
static

◆ opj_mct_norms_real

const OPJ_FLOAT64 opj_mct_norms_real[3] = { 1.732, 1.805, 1.573 }
static