Page Speed Optimization Libraries
1.13.35.1
|
Public Member Functions | |
virtual bool | Reset ()=0 |
virtual size_t | GetBytesPerScanline ()=0 |
Returns number of bytes that required to store a scanline. | |
virtual bool | HasMoreScanLines ()=0 |
Returns true if there are more scanlines to read. | |
virtual ScanlineStatus | InitializeWithStatus (const void *image_buffer, size_t buffer_length)=0 |
bool | Initialize (const void *image_buffer, size_t buffer_length) |
virtual ScanlineStatus | ReadNextScanlineWithStatus (void **out_scanline_bytes)=0 |
bool | ReadNextScanline (void **out_scanline_bytes) |
virtual size_t | GetImageHeight ()=0 |
Returns the height of the image. | |
virtual size_t | GetImageWidth ()=0 |
Returns the width of the image. | |
virtual PixelFormat | GetPixelFormat ()=0 |
Returns the pixel format that need to be used by writer. | |
virtual bool | IsProgressive ()=0 |
|
pure virtual |
Returns true if the original image was encoded progressively by the origin site, so that it could be progressively rendered while the image contents were being transferred
Implemented in pagespeed::image_compression::PngScanlineReaderRaw, pagespeed::image_compression::WebpScanlineReader, pagespeed::image_compression::PngScanlineReader, pagespeed::image_compression::JpegScanlineReader, pagespeed::image_compression::ScanlineResizer, pagespeed::image_compression::PixelFormatOptimizer, and pagespeed::image_compression::FrameToScanlineReaderAdapter.
|
inline |
Reads the next available scanline. Returns false if the scan fails.
|
pure virtual |
Reads the next available scanline. Returns the ScanlineStatus of the conversion.
Implemented in pagespeed::image_compression::PngScanlineReaderRaw, pagespeed::image_compression::WebpScanlineReader, pagespeed::image_compression::PngScanlineReader, pagespeed::image_compression::JpegScanlineReader, pagespeed::image_compression::FrameToScanlineReaderAdapter, pagespeed::image_compression::ScanlineResizer, and pagespeed::image_compression::PixelFormatOptimizer.
|
pure virtual |
Reset the ScanlineReaderIngterface to its initial state. This will only return false as a result of an unhandled error condition, such as a longjmp due to a libpng error.
Implemented in pagespeed::image_compression::PngScanlineReaderRaw, pagespeed::image_compression::WebpScanlineReader, pagespeed::image_compression::PngScanlineReader, pagespeed::image_compression::JpegScanlineReader, pagespeed::image_compression::ScanlineResizer, pagespeed::image_compression::FrameToScanlineReaderAdapter, and pagespeed::image_compression::PixelFormatOptimizer.