Implementation of the claw::graphic::jpeg::writer 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__destination_manager__init_destination (j_compress_ptr cinfo) | |
| Initialize the output stream. | |
| claw__graphic__jpeg__destination_manager__empty_output_buffer (j_compress_ptr cinfo) | |
| Write the content of the buffer in the file. | |
| claw__graphic__jpeg__destination_manager__term_destination (j_compress_ptr cinfo) | |
| Write the last pending bytes in the file. | |
Implementation of the claw::graphic::jpeg::writer class.
Definition in file jpeg_writer.cpp.
| claw__graphic__jpeg__destination_manager__empty_output_buffer | ( | j_compress_ptr | cinfo | ) |
Write the content of the buffer in the file.
| cinfo | Informations about the compression. |
Definition at line 54 of file jpeg_writer.cpp.
References CLAW_PRECOND.
{
claw::graphic::jpeg::writer::destination_manager* self =
(claw::graphic::jpeg::writer::destination_manager*)cinfo->client_data;
CLAW_PRECOND( &self->pub == cinfo->dest );
self->flush();
return TRUE;
} // claw__graphic__jpeg__destination_manager__empty_output_buffer()
| claw__graphic__jpeg__destination_manager__init_destination | ( | j_compress_ptr | cinfo | ) |
Initialize the output stream.
| cinfo | Informations about the compression. |
Definition at line 42 of file jpeg_writer.cpp.
{
// nothing to do
} // claw__graphic__jpeg__destination_manager__init_destination()
| claw__graphic__jpeg__destination_manager__term_destination | ( | j_compress_ptr | cinfo | ) |
Write the last pending bytes in the file.
| cinfo | Informations about the compression. |
Definition at line 72 of file jpeg_writer.cpp.
References CLAW_PRECOND.
{
claw::graphic::jpeg::writer::destination_manager* self =
(claw::graphic::jpeg::writer::destination_manager*)cinfo->client_data;
CLAW_PRECOND( &self->pub == cinfo->dest );
self->term();
} // claw__graphic__jpeg__destination_manager__term_destination()
1.7.1