Celartem::ExportUtils::JPEGExportParam Struct Reference

#include <pxl_imageexport.h>

List of all members.

Public Types

enum  JPEGFLAGS { OptimizeCompression = 1, Progressive = 2, ISOCompliant = 4, ARIB_TR_B14_Compatible = 8 }

Public Member Functions

 JPEGExportParam (size_t inQuality=80, size_t inFlags=0)
void initDCTQTable (size_t inQuality)

Public Attributes

size_t quality
 Output Quality in 1-100 (0 for 80).
size_t flags
 One or any combination of JPEGFLAGS enumeration values.
SimpleArray< DCTQTableqtables
 DCT coefficient quantization tables.

Classes

struct  DCTQTable


Detailed Description

JPEGExportParam structure is used with exportAsJPEG function and it customizes the parameter for encoding JPEG files. Before using this structure, you should zero-clear the whole instance to prevent some errors due to lack of the initialization.
See also:
exportAsJPEG

Exporting Images, JPEG Image File Format

Definition at line 628 of file pxl_imageexport.h.


Member Enumeration Documentation

enum Celartem::ExportUtils::JPEGExportParam::JPEGFLAGS

This enumeration defines options for JPEGExportParam::flags.

Enumerator:
OptimizeCompression  Optimize Compression (non-baseline). Without this option, output baseline compression JPEG.
Progressive  Progressive.
ISOCompliant  We do exactly the ISO procedure; any vender specific JPEG extensions are disabled such as Adobe JPEG. This flag instruct the encoder not to reverse tones in CMYK JPEG. (non-Adobe style JPEG)
ARIB_TR_B14_Compatible  Output ARIB TR-B14 compatible JPEG. With the flag, all the input image will be automatically converted into RGB (usually sRGB).
You can not use this flag with the other flags except ISOCompliant. For more information, see ARIB TR-B14 specification.

Definition at line 633 of file pxl_imageexport.h.


Constructor & Destructor Documentation

Celartem::ExportUtils::JPEGExportParam::JPEGExportParam ( size_t  inQuality = 80,
size_t  inFlags = 0 
) [inline]

This constructor initializes the structure.

Parameters:
inQuality Output quality in 1-100 or 0 for the default (80).
inFlags One or any combination of JPEGFLAGS enumeration values.

Definition at line 700 of file pxl_imageexport.h.


Member Function Documentation

void Celartem::ExportUtils::JPEGExportParam::initDCTQTable ( size_t  inQuality  ) 

Initializes the DCT coefficient quantization table.

Parameters:
ioTable Pointer to the table.
inQuality Output quality in 1-100 or 0 for the default (80).
isLuminance Whether the channel is luminance or not.


Member Data Documentation

size_t Celartem::ExportUtils::JPEGExportParam::quality

Output Quality in 1-100 (0 for 80).

Output quality in 1-100 or 0 for the default (80).
This parameter is ignored if qtables for each component is valid.

Definition at line 666 of file pxl_imageexport.h.

size_t Celartem::ExportUtils::JPEGExportParam::flags

One or any combination of JPEGFLAGS enumeration values.

One or any combination of JPEGFLAGS enumeration values.

Definition at line 671 of file pxl_imageexport.h.

SimpleArray<DCTQTable> Celartem::ExportUtils::JPEGExportParam::qtables

DCT coefficient quantization tables.

The first element is for luminance or independent channel and the second element is for chrominance. The chrominance channel is only used for Cb Cr of YCbCr. For normal uses, you had better use quality member rather than this table. This table is for advanced purpose only.

Definition at line 690 of file pxl_imageexport.h.


The documentation for this struct was generated from the following file:
This document is automatically generated using doxygen 1.5.4 at Fri Jun 27 18:23:33 2008.