claw::graphic::jpeg::reader Class Reference

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...

## 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

## reader() [1/2]

claw::graphic::jpeg::reader::reader | ( | image & | img | ) |

Constructor.

Parameters

  img | The image in which the data will be stored.

Definition at line 218 of file jpeg_reader.cpp.

## reader() [2/2]

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

Constructor. Load an image from a jpeg file.

Parameters

  img | The image in which the data will be stored.
  f | The 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

## load()

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

Load an image from a jpeg file.

Parameters

  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().

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

- jpeg.hpp
- code/jpeg_reader.cpp