31 #ifndef PAGESPEED_KERNEL_IMAGE_SCANLINE_INTERFACE_FRAME_ADAPTER_H_
32 #define PAGESPEED_KERNEL_IMAGE_SCANLINE_INTERFACE_FRAME_ADAPTER_H_
43 namespace net_instaweb {
51 namespace image_compression {
72 size_t buffer_length);
74 void** out_scanline_bytes);
97 PixelFormat pixel_format);
98 virtual ScanlineStatus InitializeWriteWithStatus(
const void* config,
101 const void *scanline_bytes);
virtual size_t GetImageWidth()
Returns the width of the image.
ScanlineToFrameWriterAdapter(ScanlineWriterInterface *scanline_writer, MessageHandler *handler)
Acquires ownership of 'scanline_writer'.
Definition: scanline_status.h:93
virtual ScanlineStatus ReadNextScanline(const void **out_scanline_bytes)
virtual ScanlineStatus PrepareImage(const ImageSpec *image_spec)
Definition: image_frame_interface.h:146
virtual ScanlineStatus PrepareNextFrame()
virtual bool IsProgressive()
MessageHandler * message_handler() const
Definition: image_frame_interface.h:203
Definition: image_frame_interface.h:279
virtual bool HasMoreFrames() const
virtual ScanlineStatus InitializeWithStatus(const void *image_buffer, size_t buffer_length)
Definition: scanline_interface.h:83
virtual ScanlineStatus PrepareNextFrame(const FrameSpec *frame_spec)
Scanline API to MultipleFrame API adapters.
Definition: scanline_interface_frame_adapter.h:119
MultipleFrame API to Scanline API adapters.
Definition: scanline_interface_frame_adapter.h:58
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: scanline_interface_frame_adapter.h:152
virtual ScanlineStatus FinalizeWriteWithStatus()
Finalizes write structure once all scanlines are written.
virtual ScanlineStatus GetImageSpec(ImageSpec *image_spec) const
virtual ScanlineStatus GetFrameSpec(FrameSpec *frame_spec) const
virtual ScanlineStatus InitWithStatus(size_t width, size_t height, PixelFormat pixel_format)
Initialize the basic parameter for writing the image.
Definition: image_frame_interface.h:43
Definition: image_frame_interface.h:79
virtual ScanlineStatus WriteNextScanlineWithStatus(const void *scanline_bytes)
Definition: scanline_interface.h:32
Definition: scanline_interface_frame_adapter.h:90
virtual size_t GetImageHeight()
Returns the height of the image.
FrameToScanlineReaderAdapter(MultipleFrameReader *frame_reader)
Acquires ownership of 'frame_reader'.
virtual bool HasMoreScanlines() const
virtual size_t GetBytesPerScanline()
Returns number of bytes that required to store a scanline.
virtual ScanlineStatus Reset()
Resets the MultipleFrameReader to its initial state.
virtual ScanlineStatus Initialize()
virtual bool HasMoreScanLines()
Returns true if there are more scanlines to read.
Definition: message_handler.h:39
FrameToScanlineWriterAdapter(MultipleFrameWriter *frame_writer)
Acquires ownership of 'frame_writer'.
virtual ScanlineStatus Initialize(const void *config, GoogleString *out)
virtual ScanlineStatus WriteNextScanline(const void *scanline_bytes)
virtual PixelFormat GetPixelFormat()
Returns the pixel format that need to be used by writer.
virtual ScanlineStatus ReadNextScanlineWithStatus(void **out_scanline_bytes)
ScanlineToFrameReaderAdapter(ScanlineReaderInterface *scanline_reader, MessageHandler *message_handler)
Acquires ownership of 'scanline_reader'.
virtual ScanlineStatus FinalizeWrite()
Finalizes the image once all the frames have been written.