Classes | Public Types | Static Public Member Functions

Celartem::DjVu::JPXEncoder Struct Reference

#include <djv_jpxencoder.h>

List of all members.

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 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 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:
inStorage Storage to write on.
inImage The pointer to the first line in the RAW data.
inRowStride The row-stride of the RAW data.
inPm The photometric of srouce image. This is one of the Photometric enumeration values.
inWidth The width of the image.
inHeight The height of the image.
inParams The 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:
inImage The pointer to the first line in the RAW data.
inRowStride The row-stride of the RAW data.
inPm The photometric of srouce image. This is one of the Photometric enumeration values.
inWidth The width of the image.
inHeight The height of the image.
inParams The parameters to configure JPX encoding.
inChunkId The identififer of the chunk.
Returns:
Pointer to a newly created JPX chunk.

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

This document is made with doxygen 1.7.1 at Sun Sep 5 2010 13:03:40.
Caminova Logo