Claw
1.7.3
|
This class read data from a jpeg file and store it in an image. More...
#include <jpeg.hpp>
Classes | |
struct | source_manager |
Source manager that allow us to read from a std::istream. More... | |
Public Member Functions | |
reader (image &img) | |
Constructor. More... | |
reader (image &img, std::istream &f) | |
Constructor. Load an image from a jpeg file. More... | |
void | load (std::istream &f) |
Load an image from a jpeg file. More... | |
This class read data from a jpeg file and store it in an image.
claw::graphic::jpeg::reader::reader | ( | image & | img | ) |
Constructor.
img | The 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.
img | The image in which the data will be stored. |
f | The file from which we read the data. |
Definition at line 231 of file jpeg_reader.cpp.
References load().
void claw::graphic::jpeg::reader::load | ( | std::istream & | f | ) |
Load an image from a jpeg file.
f | JPEG file. |
Definition at line 242 of file jpeg_reader.cpp.
References claw__graphic__jpeg__source_manager__fill_input_buffer(), claw__graphic__jpeg__source_manager__init_source(), claw__graphic__jpeg__source_manager__skip_input_data(), claw__graphic__jpeg__source_manager__term_source(), CLAW_EXCEPTION, CLAW_PRECOND, claw::graphic::jpeg::error_manager::error_string, claw::graphic::jpeg__error_manager__error_exit(), claw::graphic::jpeg::reader::source_manager::pub, claw::graphic::jpeg::error_manager::pub, claw::graphic::image::set_size(), and claw::graphic::jpeg::error_manager::setjmp_buffer.
Referenced by reader().