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

#include <JPEGEncoder.h>

Inheritance diagram for JPEGEncoder:
Inheritance graph
Collaboration diagram for JPEGEncoder:
Collaboration graph

Public Member Functions

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

Static Private Member Functions

static void init_destination (jpeg_compress_struct *cinfo)
static boolean empty_output_buffer (jpeg_compress_struct *cinfo)
static void term_destination (jpeg_compress_struct *cinfo)

Private Attributes

Imageimage
int status
int bufferLimit
uint8_t * linebuffer
struct jpeg_compress_struct cinfo
struct jpeg_error_mgr jerr

Detailed Description

D

Constructor & Destructor Documentation

JPEGEncoder::JPEGEncoder ( Image image)

D

Constructeur

Here is the call graph for this function:

JPEGEncoder::~JPEGEncoder ( )

D

Destructeur

Member Function Documentation

bool JPEGEncoder::eof ( )
inlinevirtual

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.

std::string JPEGEncoder::getEncoding ( )
inlinevirtual

Indique l'encodage associé au flux.

Implements DataStream.

int JPEGEncoder::getHttpStatus ( )
inlinevirtual

Indique le statut Http associé au flux.

Implements DataStream.

std::string JPEGEncoder::getType ( )
inlinevirtual

Indique le type MIME associé au flux.

Implements DataStream.

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

Lecture du flux JPEG

Implements DataStream.


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