Claw  1.7.3
Classes | Public Member Functions
claw::graphic::jpeg::reader Class Reference

This class read data from a jpeg file and store it in an image. More...

#include <jpeg.hpp>

List of all members.

Classes

class  grayscale_to_pixel32
 Functor converting a grey level pixel to a ARGB pixel.
class  RGB_to_pixel32
 Functor converting a RGB pixel to a ARGB pixel.
struct  source_manager
 Source manager that allow us to read from a std::istream. More...

Public Member Functions

 reader (image &img)
 Constructor.
 reader (image &img, std::istream &f)
 Constructor. Load an image from a jpeg file.
void load (std::istream &f)
 Load an image from a jpeg file.

Detailed Description

This class read data from a jpeg file and store it in an image.

Author:
Julien Jorge

Definition at line 80 of file jpeg.hpp.


Constructor & Destructor Documentation

Constructor.

Parameters:
imgThe image in which the data will be stored.

Definition at line 218 of file jpeg_reader.cpp.

claw::graphic::jpeg::reader::reader ( image img,
std::istream &  f 
)

Constructor. Load an image from a jpeg file.

Parameters:
imgThe image in which the data will be stored.
fThe file from which we read the data.
Postcondition:
img contains the data from f.

Definition at line 231 of file jpeg_reader.cpp.

References load().


Member Function Documentation

void claw::graphic::jpeg::reader::load ( std::istream &  f)

Load an image from a jpeg file.

Parameters:
fJPEG file.

Definition at line 242 of file jpeg_reader.cpp.

References CLAW_PRECOND.

Referenced by reader().


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