jpeg_reader.cpp File Reference

Implementation of the claw::graphic::jpeg::reader class. More...

#include <claw/jpeg.hpp>
#include <claw/jpeg_error_manager.hpp>
#include <claw/exception.hpp>
#include <claw/assert.hpp>

Go to the source code of this file.

Functions

 claw__graphic__jpeg__source_manager__init_source (j_decompress_ptr cinfo)
 Initialize the input stream.
 claw__graphic__jpeg__source_manager__fill_input_buffer (j_decompress_ptr cinfo)
 Fill the input buffer with new data.
 claw__graphic__jpeg__source_manager__skip_input_data (j_decompress_ptr cinfo, long num_bytes)
 Skip some bytes in the input buffer.
 claw__graphic__jpeg__source_manager__term_source (j_decompress_ptr cinfo)
 Close the input stream.

Detailed Description

Implementation of the claw::graphic::jpeg::reader class.

Author:
Julien Jorge

Definition in file jpeg_reader.cpp.


Function Documentation

claw__graphic__jpeg__source_manager__fill_input_buffer ( j_decompress_ptr  cinfo  ) 

Fill the input buffer with new data.

Parameters:
cinfo Informations about the decompression.

Definition at line 53 of file jpeg_reader.cpp.

References CLAW_PRECOND.

Referenced by claw::graphic::jpeg::reader::create_decompress_info().

00054 {
00055   claw::graphic::jpeg::reader::source_manager* self =
00056     (claw::graphic::jpeg::reader::source_manager*)cinfo->client_data;
00057 
00058   CLAW_PRECOND( &self->pub == cinfo->src );
00059 
00060   return self->fill_input_buffer();
00061 } // claw__graphic__jpeg__source_manager__fill_input_buffer()

claw__graphic__jpeg__source_manager__init_source ( j_decompress_ptr  cinfo  ) 

Initialize the input stream.

Parameters:
cinfo Informations about the decompression.

Definition at line 42 of file jpeg_reader.cpp.

Referenced by claw::graphic::jpeg::reader::create_decompress_info().

00043 {
00044   // nothing to do
00045 } // claw__graphic__jpeg__source_manager__init_source()

claw__graphic__jpeg__source_manager__skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)

Skip some bytes in the input buffer.

Parameters:
cinfo Informations about the decompression.
num_bytes The number of bytes to skip.

Definition at line 70 of file jpeg_reader.cpp.

References CLAW_PRECOND.

Referenced by claw::graphic::jpeg::reader::create_decompress_info().

00072 {
00073   claw::graphic::jpeg::reader::source_manager* self =
00074     (claw::graphic::jpeg::reader::source_manager*)cinfo->client_data;
00075 
00076   CLAW_PRECOND( &self->pub == cinfo->src );
00077 
00078   return self->skip_input_data(num_bytes);
00079 } // claw__graphic__jpeg__source_manager__skip_input_data()

claw__graphic__jpeg__source_manager__term_source ( j_decompress_ptr  cinfo  ) 

Close the input stream.

Parameters:
cinfo Informations about the decompression.

Definition at line 87 of file jpeg_reader.cpp.

Referenced by claw::graphic::jpeg::reader::create_decompress_info().

00088 {
00089   // nothing to do
00090 } // claw__graphic__jpeg__source_manager__term_source()


Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1