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

#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< ChunkencodeJPGChunk (const u8 *inImage, ssize_t inRowStride, Photometric inPM, size_t inWidth, size_t inHeight, const Params &inParams, const String &inChunkId)
 

Detailed Description

JPEG Encoder

Member Enumeration Documentation

JPEG Encoding options.

Enumerator
jefProgressive 

Generate progressive JPEG.

jefOptimizeCompression 

Optimize compression.

jefISOCompliant 

Generate fully ISO compliant JPEG.

jefARIB_TR_B14_Compatible 

Generate ARIB TR B14 compatible JPEG.

jefMakeGrayscale 

Generate Grayscale regardless of input photometric.

Member Function Documentation

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.

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 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.

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 JPEG encoding.
inChunkIdThe identififer of the chunk.
Returns
Pointer to a newly created JPEG 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