Classes | Public Types | Static Public Member Functions

Celartem::DjVu::JpegEncoder Struct Reference

#include <djv_jpgencoder.h>

List of all members.

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

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