Holds information about PNG image. More...
#include <info.hpp>
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 |
palette & | get_palette () |
png_info * | get_png_info () const |
png_info ** | get_png_info_ptr () |
tRNS const & | get_tRNS () const |
tRNS & | get_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_base & | m_io |
palette | m_palette |
png_struct * | m_png |
tRNS | m_tRNS |
uint_32 | m_width |
Holds information about PNG image.
Adapter class for IO image operations.
|
inline |
|
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().
|
inlineinherited |
References png::image_info::m_bit_depth.
Referenced by png::io_base::get_bit_depth().
|
inlineinherited |
References png::image_info::m_color_type.
Referenced by png::io_base::get_color_type().
|
inlineinherited |
References png::image_info::m_compression_type.
Referenced by png::io_base::get_compression_type(), and png::image< pixel >::get_compression_type().
|
inlineinherited |
References png::image_info::m_filter_type.
Referenced by png::io_base::get_filter_type(), and png::image< pixel >::get_filter_type().
|
inlineinherited |
References png::image_info::m_height.
Referenced by png::io_base::get_height(), png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read_rows(), and png::generator< pixel, pixel_generator, image_info_ref_holder, true >::write().
|
inlineinherited |
References png::image_info::m_interlace_type.
Referenced by png::io_base::get_interlace_type(), and png::image< pixel >::get_interlace_type().
|
inlineinherited |
References png::image_info::m_palette.
Referenced by png::image< pixel >::get_palette().
|
inlineinherited |
References png::image_info::m_palette.
|
inlineinherited |
References png::info_base::m_info.
Referenced by png::io_base::has_chunk(), png::reader< istream >::read_png(), png::writer< ostream >::write_png(), and png::io_base::~io_base().
|
inlineinherited |
References png::info_base::m_info.
Referenced by png::reader< istream >::~reader(), and png::writer< ostream >::~writer().
|
inlineinherited |
References png::image_info::m_tRNS.
Referenced by png::image< pixel >::get_tRNS().
|
inlineinherited |
References png::image_info::m_tRNS.
|
inlineinherited |
References png::image_info::m_width.
Referenced by png::io_base::get_width().
|
inline |
References png::chunk_PLTE, png::chunk_tRNS, png::color_type_palette, png::image_info::m_bit_depth, png::image_info::m_color_type, png::image_info::m_compression_type, png::image_info::m_filter_type, png::image_info::m_height, png::info_base::m_info, png::image_info::m_interlace_type, png::image_info::m_palette, png::info_base::m_png, png::image_info::m_tRNS, and png::image_info::m_width.
Referenced by png::reader< istream >::read_info().
|
inlineinherited |
References png::image_info::m_bit_depth.
Referenced by png::make_image_info(), and png::io_base::set_bit_depth().
|
inlineinherited |
References png::image_info::m_color_type.
Referenced by png::make_image_info(), and png::io_base::set_color_type().
|
inlineinherited |
References png::image_info::m_compression_type.
Referenced by png::io_base::set_compression_type(), and png::image< pixel >::set_compression_type().
|
inlineinherited |
References png::image_info::m_filter_type.
Referenced by png::io_base::set_filter_type(), and png::image< pixel >::set_filter_type().
|
inlineinherited |
References png::image_info::m_height.
Referenced by png::image< pixel >::resize(), png::io_base::set_height(), and png::streaming_base< pixel, image_info_ref_holder >::streaming_base().
|
inlineinherited |
References png::image_info::m_interlace_type.
Referenced by png::io_base::set_interlace_type(), and png::image< pixel >::set_interlace_type().
|
inlineinherited |
References png::image_info::m_palette.
Referenced by png::image< pixel >::set_palette().
|
inlineinherited |
References png::image_info::m_tRNS.
Referenced by png::image< pixel >::set_tRNS().
|
inlineinherited |
References png::image_info::m_width.
Referenced by png::image< pixel >::resize(), png::io_base::set_width(), and png::streaming_base< pixel, image_info_ref_holder >::streaming_base().
|
inlineprotected |
References png::image_info::m_bit_depth, png::image_info::m_color_type, png::image_info::m_compression_type, png::image_info::m_filter_type, png::image_info::m_height, png::info_base::m_info, png::image_info::m_interlace_type, png::info_base::m_png, and png::image_info::m_width.
Referenced by update(), and write().
|
inline |
References png::info_base::m_info, png::info_base::m_png, and sync_ihdr().
Referenced by png::reader< istream >::update_info().
|
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().
|
protectedinherited |
Referenced by png::image_info::get_bit_depth(), read(), png::image_info::set_bit_depth(), and sync_ihdr().
|
protectedinherited |
Referenced by png::image_info::get_color_type(), read(), png::image_info::set_color_type(), sync_ihdr(), and write().
|
protectedinherited |
Referenced by png::image_info::get_compression_type(), read(), png::image_info::set_compression_type(), and sync_ihdr().
|
protectedinherited |
Referenced by png::image_info::get_filter_type(), read(), png::image_info::set_filter_type(), and sync_ihdr().
|
protectedinherited |
Referenced by png::image_info::get_height(), read(), png::image_info::set_height(), and sync_ihdr().
|
protectedinherited |
|
protectedinherited |
Referenced by png::image_info::get_interlace_type(), read(), png::image_info::set_interlace_type(), and sync_ihdr().
|
protectedinherited |
|
protectedinherited |
Referenced by png::image_info::drop_palette(), png::image_info::get_palette(), read(), png::image_info::set_palette(), and write().
|
protectedinherited |
Referenced by png::end_info::destroy(), read(), png::end_info::read(), sync_ihdr(), update(), png::end_info::write(), and write().
|
protectedinherited |
Referenced by png::image_info::get_tRNS(), read(), png::image_info::set_tRNS(), and write().
|
protectedinherited |
Referenced by png::image_info::get_width(), read(), png::image_info::set_width(), and sync_ihdr().