"L. Spiro Engine"
Static Public Member Functions

lsi::COpenJpeg Class Reference

OpenJpeg declarations. More...

#include <LSIOpenJpeg.h>

List of all members.

Static Public Member Functions

static
CJpegCommonStructs::opj_event_mgr_t
*LSE_CALL 
opj_set_event_mgr (CJpegCommonStructs::opj_common_ptr _cpInfo, CJpegCommonStructs::opj_event_mgr_t *_pemEventManager, LSVOID *_pvContext)
static
CJpegCommonStructs::opj_dinfo_t
*LSE_CALL 
opj_create_decompress (OPJ_CODEC_FORMAT _cfFormat)
static LSVOID LSE_CALL opj_destroy_decompress (CJpegCommonStructs::opj_dinfo_t *_pdInfo)
static LSVOID LSE_CALL opj_set_default_decoder_parameters (CJpegCommonStructs::opj_dparameters_t *_pdParameters)
static LSVOID LSE_CALL opj_setup_decoder (CJpegCommonStructs::opj_dinfo_t *_pdInfo, CJpegCommonStructs::opj_dparameters_t *_pdParameters)
static CJpegImage::opj_image_t
*LSE_CALL 
opj_decode (CJpegCommonStructs::opj_dinfo_t *_pdInfo, CCio::opj_cio_t *_pcCio)
static CJpegImage::opj_image_t
*LSE_CALL 
opj_decode_with_info (CJpegCommonStructs::opj_dinfo_t *_pdInfo, CCio::opj_cio_t *_pcCio, CJpegCommonStructs::opj_codestream_info_t *_pciInfo)
static
CJpegCommonStructs::opj_cinfo_t
*LSE_CALL 
opj_create_compress (OPJ_CODEC_FORMAT _cfFormat)
static LSVOID LSE_CALL opj_destroy_compress (CJpegCommonStructs::opj_cinfo_t *_cpInfo)
static LSVOID LSE_CALL opj_set_default_encoder_parameters (CJpegCommonStructs::opj_cparameters_t *_pdParameters)
static LSVOID LSE_CALL opj_setup_encoder (CJpegCommonStructs::opj_cinfo_t *_cpInfo, CJpegCommonStructs::opj_cparameters_t *_pdParameters, CJpegImage::opj_image_t *_piImage)
static LSBOOL LSE_CALL opj_encode (CJpegCommonStructs::opj_cinfo_t *_cpInfo, CCio::opj_cio_t *_pcCio, CJpegImage::opj_image_t *_piImage)
static LSBOOL LSE_CALL opj_encode_with_info (CJpegCommonStructs::opj_cinfo_t *_cpInfo, CCio::opj_cio_t *_pcCio, CJpegImage::opj_image_t *_piImage, CJpegCommonStructs::opj_codestream_info_t *_pciInfo)
static LSVOID LSE_CALL opj_destroy_cstr_info (CJpegCommonStructs::opj_codestream_info_t *_pciInfo)

Detailed Description

OpenJpeg declarations.

Class COpenJpeg Description: OpenJpeg declarations.


Member Function Documentation

static CJpegCommonStructs::opj_cinfo_t* LSE_CALL lsi::COpenJpeg::opj_create_compress ( OPJ_CODEC_FORMAT  _cfFormat) [static]

Creates a J2K/JP2 compression structure.

Parameters:
_cfFormatCoder to select.
Returns:
Returns a handle to a compressor if successful, returns NULL otherwise.
static CJpegCommonStructs::opj_dinfo_t* LSE_CALL lsi::COpenJpeg::opj_create_decompress ( OPJ_CODEC_FORMAT  _cfFormat) [static]

Creates a J2K/JPT/JP2 decompression structure.

Parameters:
_cfFormatDecoder to select.
Returns:
Returns a handle to a decompressor if successful, returns NULL otherwise.
static CJpegImage::opj_image_t* LSE_CALL lsi::COpenJpeg::opj_decode ( CJpegCommonStructs::opj_dinfo_t _pdInfo,
CCio::opj_cio_t *  _pcCio 
) [static]

Decode an image from a JPEG-2000 codestream.

Parameters:
_pdInfodecompressor handle.
_pcCioInput buffer stream.
Returns:
Returns a decoded image if successful, returns NULL otherwise.
static CJpegImage::opj_image_t* LSE_CALL lsi::COpenJpeg::opj_decode_with_info ( CJpegCommonStructs::opj_dinfo_t _pdInfo,
CCio::opj_cio_t *  _pcCio,
CJpegCommonStructs::opj_codestream_info_t _pciInfo 
) [static]

Decode an image from a JPEG-2000 codestream and extract the codestream information.

Parameters:
_pdInfodecompressor handle.
_pcCioInput buffer stream.
_pciInfoCodestream information structure if needed afterwards, NULL otherwise.
Returns:
Returns a decoded image if successful, returns NULL otherwise.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_destroy_compress ( CJpegCommonStructs::opj_cinfo_t _cpInfo) [static]

Destroy a compressor handle.

Parameters:
_cpInfocompressor handle to destroy.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_destroy_cstr_info ( CJpegCommonStructs::opj_codestream_info_t _pciInfo) [static]

Destroy Codestream information after compression or decompression.

Parameters:
_pciInfoCodestream information structure.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_destroy_decompress ( CJpegCommonStructs::opj_dinfo_t _pdInfo) [static]

Destroy a decompressor handle.

Parameters:
_pdInfodecompressor handle to destroy.
static LSBOOL LSE_CALL lsi::COpenJpeg::opj_encode ( CJpegCommonStructs::opj_cinfo_t _cpInfo,
CCio::opj_cio_t *  _pcCio,
CJpegImage::opj_image_t _piImage 
) [static]

Encode an image into a JPEG-2000 codestream.

Parameters:
_cpInfocompressor handle.
_pcCioOutput buffer stream.
_piImageImage to encode.
Returns:
Returns true if successful, returns false otherwise.
static LSBOOL LSE_CALL lsi::COpenJpeg::opj_encode_with_info ( CJpegCommonStructs::opj_cinfo_t _cpInfo,
CCio::opj_cio_t *  _pcCio,
CJpegImage::opj_image_t _piImage,
CJpegCommonStructs::opj_codestream_info_t _pciInfo 
) [static]

Encode an image into a JPEG-2000 codestream and extract the codestream information.

Parameters:
_cpInfocompressor handle.
_pcCioOutput buffer stream.
_piImageImage to encode.
_pciInfoCodestream information structure if needed afterwards, NULL otherwise.
Returns:
Returns true if successful, returns false otherwise.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_set_default_decoder_parameters ( CJpegCommonStructs::opj_dparameters_t _pdParameters) [static]

Set decoding parameters to default values.

Parameters:
_pdParametersDecompression parameters.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_set_default_encoder_parameters ( CJpegCommonStructs::opj_cparameters_t _pdParameters) [static]

Set encoding parameters to default values, that means:

  • Lossless
  • 1 tile
  • Size of precinct : 2^15 x 2^15 (means 1 precinct)
  • Size of code-block : 64 x 64
  • Number of resolutions: 6
  • No SOP marker in the codestream
  • No EPH marker in the codestream
  • No sub-sampling in x or y direction
  • No mode switch activated
  • Progression order: LRCP
  • No index file
  • No ROI upshifted
  • No offset of the origin of the image
  • No offset of the origin of the tiles
  • Reversible DWT 5-3
Parameters:
_pdParametersCompression parameters.
static CJpegCommonStructs::opj_event_mgr_t* LSE_CALL lsi::COpenJpeg::opj_set_event_mgr ( CJpegCommonStructs::opj_common_ptr  _cpInfo,
CJpegCommonStructs::opj_event_mgr_t _pemEventManager,
LSVOID *  _pvContext 
) [static]

Undocumented function from the OpenJpeg Library.

Parameters:
_cpInfoUndocumented parameter from the OpenJpeg Library.
_pemEventManagerUndocumented parameter from the OpenJpeg Library.
_pvContextUndocumented parameter from the OpenJpeg Library.
Returns:
Undocumented return from the OpenJpeg Library.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_setup_decoder ( CJpegCommonStructs::opj_dinfo_t _pdInfo,
CJpegCommonStructs::opj_dparameters_t _pdParameters 
) [static]

Setup the decoder decoding parameters using user parameters. Decoding parameters are returned in j2k->cp.

Parameters:
_pdInfodecompressor handle.
_pdParametersdecompression parameters.
static LSVOID LSE_CALL lsi::COpenJpeg::opj_setup_encoder ( CJpegCommonStructs::opj_cinfo_t _cpInfo,
CJpegCommonStructs::opj_cparameters_t _pdParameters,
CJpegImage::opj_image_t _piImage 
) [static]

Setup the encoder parameters using the current image and using user parameters.

Parameters:
_cpInfoCompressor handle.
_pdParametersCompression parameters.
_piImageInput filled image.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator