JpegParams

JPEG compression parameters structure.

Members

Functions

check
bool check()

Variables

noChromaDiscrimFlag
bool noChromaDiscrimFlag;

Disables CbCr discrimination - only intended for testing. If true, the Y quantization table is also used for the CbCr channels.

quality
int quality;

Quality: 1-100, higher is better. Typical values are around 50-95.

subsampling
JpegSubsampling subsampling;

subsampling: 0 = Y (grayscale) only 1 = YCbCr, no subsampling (H1V1, YCbCr 1x1x1, 3 blocks per MCU) 2 = YCbCr, H2V1 subsampling (YCbCr 2x1x1, 4 blocks per MCU) 3 = YCbCr, H2V2 subsampling (YCbCr 4x1x1, 6 blocks per MCU-- very common)

twoPass
bool twoPass;

Meta