Page Speed Optimization Libraries
1.13.35.1
|
Public Member Functions | |
virtual ScanlineStatus | InitWithStatus (const size_t width, const size_t height, PixelFormat pixel_format)=0 |
Initialize the basic parameter for writing the image. | |
bool | Init (const size_t width, const size_t height, PixelFormat pixel_format) |
virtual ScanlineStatus | InitializeWriteWithStatus (const void *config, GoogleString *const out)=0 |
bool | InitializeWrite (const void *config, GoogleString *const out) |
virtual ScanlineStatus | WriteNextScanlineWithStatus (const void *scanline_bytes)=0 |
bool | WriteNextScanline (const void *scanline_bytes) |
virtual ScanlineStatus | FinalizeWriteWithStatus ()=0 |
Finalizes write structure once all scanlines are written. | |
bool | FinalizeWrite () |
|
pure virtual |
Writes the current scan line with data provided. Returns false if the write fails.
Implemented in pagespeed::image_compression::PngScanlineWriter, pagespeed::image_compression::JpegScanlineWriter, and pagespeed::image_compression::FrameToScanlineWriterAdapter.