#include <djv_jpxencoder.h>
|
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< Chunk > | encodeJPXChunk (const u8 *inImage, ssize_t inRowStride, Photometric inPM, size_t inWidth, size_t inHeight, const Params &inParams, const String &inChunkId) |
|
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.
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.
|
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 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
-
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 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
-
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: