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::FrameToScanlineWriterAdapter Class Reference

#include "scanline_interface_frame_adapter.h"

Inheritance diagram for pagespeed::image_compression::FrameToScanlineWriterAdapter:
pagespeed::image_compression::ScanlineWriterInterface

Public Member Functions

 FrameToScanlineWriterAdapter (MultipleFrameWriter *frame_writer)
 Acquires ownership of 'frame_writer'.
 
virtual ScanlineStatus InitWithStatus (size_t width, size_t height, PixelFormat pixel_format)
 Initialize the basic parameter for writing the image.
 
virtual ScanlineStatus InitializeWriteWithStatus (const void *config, GoogleString *out)
 
virtual ScanlineStatus WriteNextScanlineWithStatus (const void *scanline_bytes)
 
virtual ScanlineStatus FinalizeWriteWithStatus ()
 Finalizes write structure once all scanlines are written.
 
- Public Member Functions inherited from pagespeed::image_compression::ScanlineWriterInterface
bool Init (const size_t width, const size_t height, PixelFormat pixel_format)
 
bool InitializeWrite (const void *config, GoogleString *const out)
 
bool WriteNextScanline (const void *scanline_bytes)
 
bool FinalizeWrite ()
 

Detailed Description

The class FrameToScanlineWriterAdapter takes ownership of a MultipleFrameWriter and exposes ScanlineWriterInterface methods.

Member Function Documentation

virtual ScanlineStatus pagespeed::image_compression::FrameToScanlineWriterAdapter::WriteNextScanlineWithStatus ( const void *  scanline_bytes)
virtual

Writes the current scan line with data provided. Returns false if the write fails.

Implements pagespeed::image_compression::ScanlineWriterInterface.


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