Classes | Public Types | Static Public Member Functions | List of all members
Celartem::DjVu::JPXEncoder Struct Reference

#include <djv_jpxencoder.h>

Classes

struct  Params
 

Public Types

enum  CodingMode { cm_Int = 0, cm_Real = 1 }
 
enum  Progression {
  prg_LRCP = 0, prg_RLCP = 1, prg_RPCL = 2, prg_PCRL = 3,
  prg_CPRL = 4
}
 

Static Public Member Functions

static void encode (Storage *inStorage, const u8 *inImage, ssize_t inRowStride, Photometric inPm, size_t inWidth, size_t inHeight, const Params &inParams)
 
static void encode_jas (Storage *inStorage, const u8 *inImage, ssize_t inRowStride, Photometric inPm, size_t inWidth, size_t inHeight, const Params &inParams)
 
static void encode_opj (Storage *inStorage, const u8 *inImage, ssize_t inRowStride, Photometric inPm, size_t inWidth, size_t inHeight, const Params &inParams)
 
static AutoPtr< ChunkencodeJPXChunk (const u8 *inImage, ssize_t inRowStride, Photometric inPM, size_t inWidth, size_t inHeight, const Params &inParams, const String &inChunkId)
 

Detailed Description

JPX (JPEG 2000) encoder. The internal encoder is OpenJPEG but the interface is based on JasPer library. For more information, see The JasPer Project Home Page.

Member Enumeration Documentation

The coding mode.
If lossless coding is desired, the integer mode must be used. By default, the integer mode is employed. The choice of mode also determines which multicomponent and wavelet transforms (if any) are employed.

Enumerator
cm_Int 

Integral mode.

cm_Real 

Real mode.

The progression order.
By default, LRCP progressive ordering is employed. Note that the RPCL and PCRL progressions are not valid for all possible image geometries. (See ISO/IEC 15444-1 for more details.)

Enumerator
prg_LRCP 

layer-resolution-component-position (LRCP) progressive (i.e., rate scalable).

prg_RLCP 

resolution-layer-component-position (RLCP) progressive (i.e., resolution scalable).

prg_RPCL 

resolution-position-component-layer (RPCL) progressive.

prg_PCRL 

position-component-resolution-layer (PCRL) progressive.

prg_CPRL 

component-position-resolution-layer (CPRL) progressive.

Member Function Documentation

static void Celartem::DjVu::JPXEncoder::encode ( Storage inStorage,
const u8 inImage,
ssize_t  inRowStride,
Photometric  inPm,
size_t  inWidth,
size_t  inHeight,
const Params inParams 
)
static

Encode JPX image.

Parameters
inStorageStorage to write on.
inImageThe pointer to the first line in the RAW data.
inRowStrideThe row-stride of the RAW data.
inPmThe photometric of srouce image. This is one of the Photometric enumeration values.
inWidthThe width of the image.
inHeightThe height of the image.
inParamsThe parameters to configure JPX encoding.
static void Celartem::DjVu::JPXEncoder::encode_jas ( Storage inStorage,
const u8 inImage,
ssize_t  inRowStride,
Photometric  inPm,
size_t  inWidth,
size_t  inHeight,
const Params inParams 
)
static

Explicitly call JasPer as JPEG 2000 encoder.

Parameters
inStorageStorage to write on.
inImageThe pointer to the first line in the RAW data.
inRowStrideThe row-stride of the RAW data.
inPmThe photometric of srouce image. This is one of the Photometric enumeration values.
inWidthThe width of the image.
inHeightThe height of the image.
inParamsThe parameters to configure JPX encoding.
static void Celartem::DjVu::JPXEncoder::encode_opj ( Storage inStorage,
const u8 inImage,
ssize_t  inRowStride,
Photometric  inPm,
size_t  inWidth,
size_t  inHeight,
const Params inParams 
)
static

Explicitly call openjpeg as JPEG 2000 encoder.

Parameters
inStorageStorage to write on.
inImageThe pointer to the first line in the RAW data.
inRowStrideThe row-stride of the RAW data.
inPmThe photometric of srouce image. This is one of the Photometric enumeration values.
inWidthThe width of the image.
inHeightThe height of the image.
inParamsThe parameters to configure JPX encoding.
static AutoPtr<Chunk> Celartem::DjVu::JPXEncoder::encodeJPXChunk ( const u8 inImage,
ssize_t  inRowStride,
Photometric  inPM,
size_t  inWidth,
size_t  inHeight,
const Params inParams,
const String inChunkId 
)
static

Encode JPX image.

Parameters
inImageThe pointer to the first line in the RAW data.
inRowStrideThe row-stride of the RAW data.
inPmThe photometric of srouce image. This is one of the Photometric enumeration values.
inWidthThe width of the image.
inHeightThe height of the image.
inParamsThe parameters to configure JPX encoding.
inChunkIdThe identififer of the chunk.
Returns
Pointer to a newly created JPX chunk.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo