libpng++  v0.2.5-1
C++ library for PNG images
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
png::info Class Reference

Holds information about PNG image. More...

#include <info.hpp>

Inheritance diagram for png::info:
Collaboration diagram for png::info:

Public Member Functions

 info (io_base &io, png_struct *png)
 
void drop_palette ()
 Removes all entries from the palette. More...
 
size_t get_bit_depth () const
 
color_type get_color_type () const
 
compression_type get_compression_type () const
 
filter_type get_filter_type () const
 
size_t get_height () const
 
interlace_type get_interlace_type () const
 
palette const & get_palette () const
 
paletteget_palette ()
 
png_info * get_png_info () const
 
png_info ** get_png_info_ptr ()
 
tRNS const & get_tRNS () const
 
tRNSget_tRNS ()
 
size_t get_width () const
 
void read ()
 
void set_bit_depth (size_t bit_depth)
 
void set_color_type (color_type color_space)
 
void set_compression_type (compression_type compression)
 
void set_filter_type (filter_type filter)
 
void set_height (size_t height)
 
void set_interlace_type (interlace_type interlace)
 
void set_palette (palette const &plte)
 
void set_tRNS (tRNS const &trns)
 
void set_width (size_t width)
 
void update ()
 
void write () const
 

Protected Member Functions

void sync_ihdr (void) const
 

Protected Attributes

size_t m_bit_depth
 
color_type m_color_type
 
compression_type m_compression_type
 
filter_type m_filter_type
 
uint_32 m_height
 
png_info * m_info
 
interlace_type m_interlace_type
 
io_basem_io
 
palette m_palette
 
png_struct * m_png
 
tRNS m_tRNS
 
uint_32 m_width
 

Detailed Description

Holds information about PNG image.

Adapter class for IO image operations.

Constructor & Destructor Documentation

png::info::info ( io_base io,
png_struct *  png 
)
inline

Member Function Documentation

void png::image_info::drop_palette ( )
inlineinherited

Removes all entries from the palette.

References png::image_info::m_palette.

Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_palette().

Here is the caller graph for this function:

size_t png::image_info::get_bit_depth ( ) const
inlineinherited

References png::image_info::m_bit_depth.

Referenced by png::io_base::get_bit_depth().

Here is the caller graph for this function:

color_type png::image_info::get_color_type ( ) const
inlineinherited

References png::image_info::m_color_type.

Referenced by png::io_base::get_color_type().

Here is the caller graph for this function:

compression_type png::image_info::get_compression_type ( ) const
inlineinherited

References png::image_info::m_compression_type.

Referenced by png::io_base::get_compression_type(), and png::image< pixel >::get_compression_type().

Here is the caller graph for this function:

filter_type png::image_info::get_filter_type ( ) const
inlineinherited

References png::image_info::m_filter_type.

Referenced by png::io_base::get_filter_type(), and png::image< pixel >::get_filter_type().

Here is the caller graph for this function:

interlace_type png::image_info::get_interlace_type ( ) const
inlineinherited

References png::image_info::m_interlace_type.

Referenced by png::io_base::get_interlace_type(), and png::image< pixel >::get_interlace_type().

Here is the caller graph for this function:

palette const& png::image_info::get_palette ( ) const
inlineinherited

References png::image_info::m_palette.

Referenced by png::image< pixel >::get_palette().

Here is the caller graph for this function:

palette& png::image_info::get_palette ( )
inlineinherited
png_info* png::info_base::get_png_info ( ) const
inlineinherited
png_info** png::info_base::get_png_info_ptr ( )
inlineinherited

References png::info_base::m_info.

Referenced by png::reader< istream >::~reader(), and png::writer< ostream >::~writer().

Here is the caller graph for this function:

tRNS const& png::image_info::get_tRNS ( ) const
inlineinherited

References png::image_info::m_tRNS.

Referenced by png::image< pixel >::get_tRNS().

Here is the caller graph for this function:

tRNS& png::image_info::get_tRNS ( )
inlineinherited
size_t png::image_info::get_width ( ) const
inlineinherited

References png::image_info::m_width.

Referenced by png::io_base::get_width().

Here is the caller graph for this function:

void png::image_info::set_bit_depth ( size_t  bit_depth)
inlineinherited

References png::image_info::m_bit_depth.

Referenced by png::make_image_info(), and png::io_base::set_bit_depth().

Here is the caller graph for this function:

void png::image_info::set_color_type ( color_type  color_space)
inlineinherited

References png::image_info::m_color_type.

Referenced by png::make_image_info(), and png::io_base::set_color_type().

Here is the caller graph for this function:

void png::image_info::set_compression_type ( compression_type  compression)
inlineinherited

References png::image_info::m_compression_type.

Referenced by png::io_base::set_compression_type(), and png::image< pixel >::set_compression_type().

Here is the caller graph for this function:

void png::image_info::set_filter_type ( filter_type  filter)
inlineinherited

References png::image_info::m_filter_type.

Referenced by png::io_base::set_filter_type(), and png::image< pixel >::set_filter_type().

Here is the caller graph for this function:

void png::image_info::set_height ( size_t  height)
inlineinherited
void png::image_info::set_interlace_type ( interlace_type  interlace)
inlineinherited

References png::image_info::m_interlace_type.

Referenced by png::io_base::set_interlace_type(), and png::image< pixel >::set_interlace_type().

Here is the caller graph for this function:

void png::image_info::set_palette ( palette const &  plte)
inlineinherited

References png::image_info::m_palette.

Referenced by png::image< pixel >::set_palette().

Here is the caller graph for this function:

void png::image_info::set_tRNS ( tRNS const &  trns)
inlineinherited

References png::image_info::m_tRNS.

Referenced by png::image< pixel >::set_tRNS().

Here is the caller graph for this function:

void png::image_info::set_width ( size_t  width)
inlineinherited
void png::info::update ( )
inline

References png::info_base::m_info, png::info_base::m_png, and sync_ihdr().

Referenced by png::reader< istream >::update_info().

Here is the call graph for this function:

Here is the caller graph for this function:

void png::info::write ( ) const
inline

References png::color_type_palette, png::image_info::m_color_type, png::info_base::m_info, png::image_info::m_palette, png::info_base::m_png, png::image_info::m_tRNS, and sync_ihdr().

Referenced by png::writer< ostream >::write_info().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

size_t png::image_info::m_bit_depth
protectedinherited
color_type png::image_info::m_color_type
protectedinherited
compression_type png::image_info::m_compression_type
protectedinherited
filter_type png::image_info::m_filter_type
protectedinherited
uint_32 png::image_info::m_height
protectedinherited
interlace_type png::image_info::m_interlace_type
protectedinherited
io_base& png::info_base::m_io
protectedinherited
palette png::image_info::m_palette
protectedinherited
png_struct* png::info_base::m_png
protectedinherited
tRNS png::image_info::m_tRNS
protectedinherited
uint_32 png::image_info::m_width
protectedinherited

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