#include <djv_jpgencoder.h>
Classes | |
| struct | Params |
Public Types | |
| enum | JpegEncoderFlags { jefProgressive = 1, jefOptimizeCompression = 2, jefISOCompliant = 4, jefARIB_TR_B14_Compatible = 8, jefMakeGrayscale = 16 } |
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 > | encodeJPGChunk (const u8 *inImage, ssize_t inRowStride, Photometric inPM, size_t inWidth, size_t inHeight, const Params &inParams, const String &inChunkId) |
JPEG Encoder
JPEG Encoding options.
| static void Celartem::DjVu::JpegEncoder::encode | ( | Storage * | inStorage, | |
| const u8 * | inImage, | |||
| ssize_t | inRowStride, | |||
| Photometric | inPm, | |||
| size_t | inWidth, | |||
| size_t | inHeight, | |||
| const Params & | inParams | |||
| ) | [static] |
Encode JPEG 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 JPEG encoding. |
| static AutoPtr<Chunk> Celartem::DjVu::JpegEncoder::encodeJPGChunk | ( | const u8 * | inImage, | |
| ssize_t | inRowStride, | |||
| Photometric | inPM, | |||
| size_t | inWidth, | |||
| size_t | inHeight, | |||
| const Params & | inParams, | |||
| const String & | inChunkId | |||
| ) | [static] |
Encode JPEG 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 JPEG encoding. | |
| inChunkId | The identififer of the chunk. |