Page Speed Optimization Libraries
1.13.35.1
|
MultipleFrame API to Scanline API adapters. More...
#include "scanline_interface_frame_adapter.h"
Public Member Functions | |
FrameToScanlineReaderAdapter (MultipleFrameReader *frame_reader) | |
Acquires ownership of 'frame_reader'. | |
virtual bool | Reset () |
virtual size_t | GetBytesPerScanline () |
Returns number of bytes that required to store a scanline. | |
virtual bool | HasMoreScanLines () |
Returns true if there are more scanlines to read. | |
virtual bool | IsProgressive () |
virtual ScanlineStatus | InitializeWithStatus (const void *image_buffer, size_t buffer_length) |
virtual ScanlineStatus | ReadNextScanlineWithStatus (void **out_scanline_bytes) |
virtual size_t | GetImageHeight () |
Returns the height of the image. | |
virtual size_t | GetImageWidth () |
Returns the width of the image. | |
virtual PixelFormat | GetPixelFormat () |
Returns the pixel format that need to be used by writer. | |
Public Member Functions inherited from pagespeed::image_compression::ScanlineReaderInterface | |
bool | Initialize (const void *image_buffer, size_t buffer_length) |
bool | ReadNextScanline (void **out_scanline_bytes) |
MultipleFrame API to Scanline API adapters.
The class FrameToScanlineReaderAdapter takes ownership of a MultipleFrameReader and exposes ScanlineReaderInterface methods.
|
virtual |
Will return an error status if the underlying MultipleFrameReader is processing an animated image.
Implements pagespeed::image_compression::ScanlineReaderInterface.
|
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
Implements pagespeed::image_compression::ScanlineReaderInterface.
|
virtual |
Reads the next available scanline. Returns the ScanlineStatus of the conversion.
Implements pagespeed::image_compression::ScanlineReaderInterface.
|
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.
Implements pagespeed::image_compression::ScanlineReaderInterface.