Page Speed Optimization Libraries
1.13.35.1
|
#include "scanline_interface_frame_adapter.h"
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 () |
The class FrameToScanlineWriterAdapter takes ownership of a MultipleFrameWriter and exposes ScanlineWriterInterface methods.
|
virtual |
Writes the current scan line with data provided. Returns false if the write fails.
Implements pagespeed::image_compression::ScanlineWriterInterface.