Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
pagespeed::image_compression::ScanlineReaderInterface Class Referenceabstract
Inheritance diagram for pagespeed::image_compression::ScanlineReaderInterface:
pagespeed::image_compression::FrameToScanlineReaderAdapter pagespeed::image_compression::JpegScanlineReader pagespeed::image_compression::PixelFormatOptimizer pagespeed::image_compression::PngScanlineReader pagespeed::image_compression::PngScanlineReaderRaw pagespeed::image_compression::ScanlineResizer pagespeed::image_compression::WebpScanlineReader

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
 

Member Function Documentation

virtual bool pagespeed::image_compression::ScanlineReaderInterface::IsProgressive ( )
pure virtual
bool pagespeed::image_compression::ScanlineReaderInterface::ReadNextScanline ( void **  out_scanline_bytes)
inline

Reads the next available scanline. Returns false if the scan fails.

virtual ScanlineStatus pagespeed::image_compression::ScanlineReaderInterface::ReadNextScanlineWithStatus ( void **  out_scanline_bytes)
pure virtual
virtual bool pagespeed::image_compression::ScanlineReaderInterface::Reset ( )
pure virtual

The documentation for this class was generated from the following file: