|
Claw
1.7.3
|
The type of the output buffer associated with the file when encoding RLE data. More...
#include <targa.hpp>
Public Types | |
| typedef Pixel | pixel_type |
| The type of the pixels in the input buffer. | |
| typedef pixel_type | pattern_type |
| The type of the patterns to encode. | |
Public Member Functions | |
| file_output_buffer (std::ostream &os) | |
| Constructor. | |
| void | encode (unsigned int n, pattern_type pattern) |
| Code a pixel. | |
| template<typename Iterator > | |
| void | raw (Iterator first, Iterator last) |
| Write raw data int the stream. | |
| unsigned int | min_interesting () const |
| Get the minimum number of pixels needed for encoding. | |
| unsigned int | max_encodable () const |
| Get the maximum number of pixel a code can encode. | |
| void | order_pixel_bytes (const pixel_type &p) |
| Write a pixel in the stream and set its value in the good order. | |
| template<> | |
| void | order_pixel_bytes (const pixel_type &p) |
The type of the output buffer associated with the file when encoding RLE data.
Template parameters
| claw::graphic::targa::writer::file_output_buffer< Pixel >::file_output_buffer | ( | std::ostream & | os | ) |
| void claw::graphic::targa::writer::file_output_buffer< Pixel >::encode | ( | unsigned int | n, |
| pattern_type | pattern | ||
| ) |
Code a pixel.
| n | The number of time the pixel appears. |
| pattern | The value of the pixel. |
Definition at line 61 of file targa_writer.tpp.
| void claw::graphic::targa::writer::file_output_buffer< claw::graphic::rgba_pixel_8 >::order_pixel_bytes | ( | const pixel_type & | p | ) |
| p | The pixel to write. |
Definition at line 53 of file targa_writer.cpp.
| void claw::graphic::targa::writer::file_output_buffer< Pixel >::order_pixel_bytes | ( | const pixel_type & | p | ) |
Write a pixel in the stream and set its value in the good order.
| p | The pixel to write. |
| void claw::graphic::targa::writer::file_output_buffer< Pixel >::raw | ( | Iterator | first, |
| Iterator | last | ||
| ) |
Write raw data int the stream.
| first | Iterator on the first data. |
| last | Iterator past the last data. |
Definition at line 81 of file targa_writer.tpp.
1.8.1.2