libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
PNGEncoder Class Reference

#include <PNGEncoder.h>

Inheritance diagram for PNGEncoder:
Inheritance graph
Collaboration diagram for PNGEncoder:
Collaboration graph

Public Member Functions

 PNGEncoder (Image *image, Palette *palette=NULL)
 ~PNGEncoder ()
size_t read (uint8_t *buffer, size_t size)
bool eof ()
std::string getType ()
std::string getEncoding ()
int getHttpStatus ()
- Public Member Functions inherited from DataStream
virtual ~DataStream ()

Protected Member Functions

virtual size_t write_IHDR (uint8_t *buffer, size_t size, uint8_t colortype)
virtual size_t write_IDAT (uint8_t *buffer, size_t size)
virtual size_t write_IEND (uint8_t *buffer, size_t size)
void addCRC (uint8_t *buffer, uint32_t length)

Protected Attributes

Imageimage
int line
Palettepalette
Palettestubpalette

Private Attributes

uint8_t * linebuffer
z_stream zstream

Detailed Description

D

Constructor & Destructor Documentation

PNGEncoder::PNGEncoder ( Image image,
Palette palette = NULL 
)

D

Here is the call graph for this function:

PNGEncoder::~PNGEncoder ( )

D

Member Function Documentation

bool PNGEncoder::eof ( )
virtual

Indique la fin du flux. read() renverra systématiquement 0 lorsque la fin du flux est atteinte.

Returns
true s'il n'y a plus de données à lire.

Implements DataStream.

Here is the call graph for this function:

std::string PNGEncoder::getEncoding ( )
inlinevirtual

Indique l'encodage associé au flux.

Implements DataStream.

int PNGEncoder::getHttpStatus ( )
inlinevirtual

Indique le statut Http associé au flux.

Implements DataStream.

std::string PNGEncoder::getType ( )
inlinevirtual

Indique le type MIME associé au flux.

Implements DataStream.

size_t PNGEncoder::read ( uint8_t *  buffer,
size_t  size 
)
virtual

D

Implements DataStream.

Here is the call graph for this function:


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