#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 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 based on JasPer library.
For more information, see The JasPer Project Home Page.
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.)
| 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.
| 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.
| 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. |