png::io_base Class Reference

Base class for PNG reader/writer classes. More...

#include <io_base.hpp>

Inheritance diagram for png::io_base:

png::reader< istream > png::writer< ostream >

List of all members.

Public Member Functions

 io_base (png_struct *png)
 ~io_base ()
png_struct * get_png_struct () const
infoget_info ()
info const & get_info () const
image_info const & get_image_info () const
void set_image_info (image_info const &info)
end_infoget_end_info ()
end_info const & get_end_info () const
size_t get_width () const
void set_width (size_t width)
size_t get_height () const
void set_height (size_t height)
color_type get_color_type () const
void set_color_type (color_type color_space)
size_t get_bit_depth () const
void set_bit_depth (size_t bit_depth)
interlace_type get_interlace_type () const
void set_interlace_type (interlace_type interlace)
compression_type get_compression_type () const
void set_compression_type (compression_type compression)
filter_type get_filter_type () const
void set_filter_type (filter_type filter)
bool has_chunk (chunk id)
void set_gray_1_2_4_to_8 () const
void set_palette_to_rgb () const
void set_tRNS_to_alpha () const
void set_bgr () const
void set_gray_to_rgb () const
void set_rgb_to_gray (rgb_to_gray_error_action error_action=rgb_to_gray_silent, double red_weight=-1.0, double green_weight=-1.0) const
void set_rgb_to_gray (rgb_to_gray_error_action error_action=rgb_to_gray_silent, fixed_point red_weight=-1, fixed_point green_weight=-1) const
void set_strip_alpha () const
void set_swap_alpha () const
void set_invert_alpha () const
void set_filler (uint_32 filler, filler_type type) const
void set_add_alpha (uint_32 filler, filler_type type) const
void set_swap () const
void set_packing () const
void set_packswap () const
void set_shift (byte red_bits, byte green_bits, byte blue_bits, byte alpha_bits=0) const
void set_shift (byte gray_bits, byte alpha_bits=0) const
int set_interlace_handling () const
void set_invert_mono () const
void set_strip_16 () const
void set_read_user_transform (png_user_transform_ptr transform_fn)
void set_user_transform_info (void *info, int bit_depth, int channels)

Protected Member Functions

void * get_io_ptr () const
void set_error (char const *message)
void reset_error ()
bool is_error () const
void raise_error ()

Static Protected Member Functions

static void raise_error (png_struct *png, char const *message)

Protected Attributes

png_struct * m_png
info m_info
end_info m_end_info
std::string m_error


Detailed Description

Base class for PNG reader/writer classes.

See also:
reader, writer

Constructor & Destructor Documentation

png::io_base::io_base ( png_struct *  png  )  [inline, explicit]

png::io_base::~io_base (  )  [inline]


Member Function Documentation

png_struct* png::io_base::get_png_struct (  )  const [inline]

info& png::io_base::get_info (  )  [inline]

info const& png::io_base::get_info (  )  const [inline]

image_info const& png::io_base::get_image_info (  )  const [inline]

void png::io_base::set_image_info ( image_info const &  info  )  [inline]

end_info& png::io_base::get_end_info (  )  [inline]

end_info const& png::io_base::get_end_info (  )  const [inline]

size_t png::io_base::get_width (  )  const [inline]

void png::io_base::set_width ( size_t  width  )  [inline]

size_t png::io_base::get_height (  )  const [inline]

void png::io_base::set_height ( size_t  height  )  [inline]

color_type png::io_base::get_color_type (  )  const [inline]

void png::io_base::set_color_type ( color_type  color_space  )  [inline]

size_t png::io_base::get_bit_depth (  )  const [inline]

void png::io_base::set_bit_depth ( size_t  bit_depth  )  [inline]

interlace_type png::io_base::get_interlace_type (  )  const [inline]

void png::io_base::set_interlace_type ( interlace_type  interlace  )  [inline]

compression_type png::io_base::get_compression_type (  )  const [inline]

void png::io_base::set_compression_type ( compression_type  compression  )  [inline]

filter_type png::io_base::get_filter_type (  )  const [inline]

void png::io_base::set_filter_type ( filter_type  filter  )  [inline]

bool png::io_base::has_chunk ( chunk  id  )  [inline]

void png::io_base::set_gray_1_2_4_to_8 (  )  const [inline]

void png::io_base::set_palette_to_rgb (  )  const [inline]

void png::io_base::set_tRNS_to_alpha (  )  const [inline]

void png::io_base::set_bgr (  )  const [inline]

void png::io_base::set_gray_to_rgb (  )  const [inline]

void png::io_base::set_rgb_to_gray ( rgb_to_gray_error_action  error_action = rgb_to_gray_silent,
double  red_weight = -1.0,
double  green_weight = -1.0 
) const [inline]

void png::io_base::set_rgb_to_gray ( rgb_to_gray_error_action  error_action = rgb_to_gray_silent,
fixed_point  red_weight = -1,
fixed_point  green_weight = -1 
) const [inline]

void png::io_base::set_strip_alpha (  )  const [inline]

void png::io_base::set_swap_alpha (  )  const [inline]

void png::io_base::set_invert_alpha (  )  const [inline]

void png::io_base::set_filler ( uint_32  filler,
filler_type  type 
) const [inline]

void png::io_base::set_add_alpha ( uint_32  filler,
filler_type  type 
) const [inline]

void png::io_base::set_swap (  )  const [inline]

void png::io_base::set_packing (  )  const [inline]

void png::io_base::set_packswap (  )  const [inline]

void png::io_base::set_shift ( byte  red_bits,
byte  green_bits,
byte  blue_bits,
byte  alpha_bits = 0 
) const [inline]

void png::io_base::set_shift ( byte  gray_bits,
byte  alpha_bits = 0 
) const [inline]

int png::io_base::set_interlace_handling (  )  const [inline]

void png::io_base::set_invert_mono (  )  const [inline]

void png::io_base::set_strip_16 (  )  const [inline]

void png::io_base::set_read_user_transform ( png_user_transform_ptr  transform_fn  )  [inline]

void png::io_base::set_user_transform_info ( void *  info,
int  bit_depth,
int  channels 
) [inline]

void* png::io_base::get_io_ptr (  )  const [inline, protected]

void png::io_base::set_error ( char const *  message  )  [inline, protected]

void png::io_base::reset_error (  )  [inline, protected]

bool png::io_base::is_error (  )  const [inline, protected]

void png::io_base::raise_error (  )  [inline, protected]

static void png::io_base::raise_error ( png_struct *  png,
char const *  message 
) [inline, static, protected]


Member Data Documentation

png_struct* png::io_base::m_png [protected]

info png::io_base::m_info [protected]

end_info png::io_base::m_end_info [protected]

std::string png::io_base::m_error [protected]


The documentation for this class was generated from the following file:
Generated on Sat Dec 8 13:43:57 2007 for png++ by  doxygen 1.5.3-20071008