Definition: jpeg_optimizer.h:50
Definition: scanline_status.h:93
ColorSampling color_sampling
Color sampling that needs to be used while recompressing the image.
Definition: jpeg_optimizer.h:63
Definition: scanline_interface.h:83
Definition: jpeg_optimizer.h:121
virtual ScanlineStatus InitializeWriteWithStatus(const void *params, GoogleString *compressed)
bool progressive
Definition: jpeg_optimizer.h:76
Definition: jpeg_optimizer.h:66
void SetJmpBufEnv(jmp_buf *env)
Set the environment for longjmp calls.
virtual ScanlineStatus InitWithStatus(const size_t width, const size_t height, PixelFormat pixel_format)
Initialize the basic parameter for writing the image.
bool retain_color_profile
If set to 'true' any color profile information is retained.
Definition: jpeg_optimizer.h:79
bool retain_exif_data
If set to 'true' any exif information is retained.
Definition: jpeg_optimizer.h:82
bool lossy
Whether or not to use lossy compression.
Definition: jpeg_optimizer.h:85
int num_scans
Definition: jpeg_optimizer.h:60
Definition: image_util.h:198
JpegLossyOptions lossy_options
Lossy compression options. Only applicable if lossy (above) is set to true.
Definition: jpeg_optimizer.h:88
virtual ScanlineStatus WriteNextScanlineWithStatus(const void *scanline_bytes)
virtual ScanlineStatus FinalizeWriteWithStatus()
Finalizes write structure once all scanlines are written.
int quality
Definition: jpeg_optimizer.h:56