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::ScanlineWriterInterface Class Referenceabstract
Inheritance diagram for pagespeed::image_compression::ScanlineWriterInterface:
pagespeed::image_compression::FrameToScanlineWriterAdapter pagespeed::image_compression::JpegScanlineWriter pagespeed::image_compression::PngScanlineWriter

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 ()
 

Member Function Documentation

virtual ScanlineStatus pagespeed::image_compression::ScanlineWriterInterface::WriteNextScanlineWithStatus ( const void *  scanline_bytes)
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.


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