Claw 1.7.0
Public Types | Public Member Functions
claw::graphic::targa::writer::file_output_buffer< Pixel > Class Template Reference

The type of the output buffer associated with the file when encoding RLE data. More...

#include <targa.hpp>

List of all members.

Public Types

typedef Pixel pixel_type
 The type of the pixels in the input buffer.
typedef pixel_type pattern_type

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)
template<>
void order_pixel_bytes (const pixel_type &p)

Detailed Description

template<typename Pixel>
class claw::graphic::targa::writer::file_output_buffer< Pixel >

The type of the output buffer associated with the file when encoding RLE data.

Template parameters

Definition at line 419 of file targa.hpp.


Constructor & Destructor Documentation

template<typename Pixel >
claw::graphic::targa::writer::file_output_buffer< Pixel >::file_output_buffer ( std::ostream &  os)

Constructor.

Parameters:
osThe

Definition at line 47 of file targa_writer.tpp.


Member Function Documentation

template<typename Pixel >
void claw::graphic::targa::writer::file_output_buffer< Pixel >::encode ( unsigned int  n,
pattern_type  pattern 
)

Code a pixel.

Parameters:
nThe number of time the pixel appears.
patternThe value of the pixel.

Definition at line 61 of file targa_writer.tpp.

template<>
void claw::graphic::targa::writer::file_output_buffer< claw::graphic::rgba_pixel_8 >::order_pixel_bytes ( const pixel_type p)
Remarks:
This method is specialized for the pixels of type claw::graphic::pixel32.

Definition at line 52 of file targa_writer.cpp.

template<typename Pixel >
template<typename Iterator >
void claw::graphic::targa::writer::file_output_buffer< Pixel >::raw ( Iterator  first,
Iterator  last 
)

Write raw data int the stream.

Parameters:
firstIterator on the first data.
lastIterator past the last data.

Definition at line 81 of file targa_writer.tpp.


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