Page Speed Optimization Libraries
1.13.35.1
|
#include "png_optimizer.h"
Public Member Functions | |
PngScanlineWriter (MessageHandler *handler) | |
virtual ScanlineStatus | InitWithStatus (const size_t width, const size_t height, PixelFormat pixel_format) |
virtual ScanlineStatus | InitializeWriteWithStatus (const void *params, GoogleString *png_image) |
virtual ScanlineStatus | WriteNextScanlineWithStatus (const void *scanline_bytes) |
Write a scanline with the data provided. Return false in case of error. | |
virtual ScanlineStatus | FinalizeWriteWithStatus () |
Public Member Functions inherited from pagespeed::image_compression::ScanlineWriterInterface | |
bool | Init (const size_t width, const size_t height, PixelFormat pixel_format) |
bool | InitializeWrite (const void *config, GoogleString *const out) |
bool | WriteNextScanline (const void *scanline_bytes) |
bool | FinalizeWrite () |
Class PngScanlineWriter writes a PNG image. It supports Gray_8, RGB_888, and RGBA_8888 formats.
|
virtual |
Finalize write structure once all scanlines are written. If FinalizeWriter() is called before all of the scanlines have been written, the object will be reset to the initial state.
Implements pagespeed::image_compression::ScanlineWriterInterface.
|
virtual |
Initialize additional parameters for writing the image using 'params', which should be a PngCompressParams*. You can set 'params' to NULL to use the default compression configuration.
Implements pagespeed::image_compression::ScanlineWriterInterface.
|
virtual |
Initialize the basic parameters for writing the image. Size of the image must be 1-by-1 or larger.
Implements pagespeed::image_compression::ScanlineWriterInterface.