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

Namespaces

namespace  detail
 

Classes

struct  basic_alpha_pixel_traits
 Basic pixel traits class template for pixels with alpha channel. More...
 
struct  basic_ga_pixel
 Basic Gray+Alpha pixel type. More...
 
class  basic_pixel_buffer
 The basic class template to represent image pixel data. More...
 
struct  basic_pixel_traits
 Basic pixel traits class template. More...
 
struct  basic_rgb_pixel
 RGB pixel type. More...
 
struct  basic_rgba_pixel
 RGBA pixel type. More...
 
struct  color
 PNG color struct extension. More...
 
class  consumer
 Pixel consumer class template. More...
 
struct  convert_color_space
 IO transformation class template. More...
 
struct  convert_color_space< ga_pixel >
 Converts image color space. More...
 
struct  convert_color_space< ga_pixel_16 >
 Converts image color space. More...
 
struct  convert_color_space< gray_pixel >
 Converts image color space. More...
 
struct  convert_color_space< gray_pixel_16 >
 Converts image color space. More...
 
struct  convert_color_space< rgb_pixel >
 Converts image color space. More...
 
struct  convert_color_space< rgb_pixel_16 >
 Converts image color space. More...
 
struct  convert_color_space< rgba_pixel >
 Converts image color space. More...
 
struct  convert_color_space< rgba_pixel_16 >
 Converts image color space. More...
 
class  def_image_info_holder
 The default image_info holder class. More...
 
class  end_info
 Internal class to hold PNG ending info. More...
 
class  error
 Exception class to represent runtime errors related to png++ operation. More...
 
class  generator
 Pixel generator class template. More...
 
class  image
 Class template to represent PNG image. More...
 
class  image_info
 Holds information about PNG image. More...
 
class  image_info_ref_holder
 An image_info holder class. More...
 
class  index_pixel
 The 8-bit Indexed (colormap) pixel type. More...
 
class  info
 Holds information about PNG image. More...
 
class  info_base
 Internal class to hold PNG info or end_info. More...
 
class  io_base
 Base class for PNG reader/writer classes. More...
 
class  packed_gray_pixel
 The packed gray pixel class template. More...
 
class  packed_index_pixel
 The packed indexed pixel class template. More...
 
class  packed_pixel
 The packed pixel class template. More...
 
class  packed_pixel_row
 The packed pixel row class template. More...
 
class  pixel_buffer
 The pixel_buffer specialization for unpacked pixels. More...
 
class  pixel_buffer< packed_gray_pixel< bits > >
 The pixel buffer class template specialization for the packed_gray_pixel type. More...
 
class  pixel_buffer< packed_index_pixel< bits > >
 The pixel buffer class template specialization for the packed_index_pixel type. More...
 
struct  pixel_traits
 Pixel traits class template. More...
 
struct  pixel_traits< basic_ga_pixel< T > >
 Pixel traits specialization for basic_ga_pixel. More...
 
struct  pixel_traits< basic_rgb_pixel< T > >
 Pixel traits specialization for basic_rgb_pixel. More...
 
struct  pixel_traits< basic_rgba_pixel< T > >
 Pixel traits specialization for basic_rgba_pixel. More...
 
struct  pixel_traits< gray_pixel >
 Pixel traits specialization for gray_pixel. More...
 
struct  pixel_traits< gray_pixel_16 >
 Pixel traits specialization for gray_pixel_16. More...
 
struct  pixel_traits< index_pixel >
 Pixel traits specialization for index_pixel. More...
 
struct  pixel_traits< packed_gray_pixel< bits > >
 Pixel traits specialization for packed_gray_pixel. More...
 
struct  pixel_traits< packed_index_pixel< bits > >
 Pixel traits specialization for packed_index_pixel. More...
 
class  reader
 The PNG reader class template. More...
 
struct  require_color_space
 IO transformation class template. More...
 
class  row_traits
 The pixel row traits class template. More...
 
class  row_traits< packed_pixel_row< pixel > >
 The row_traits class template specialization for packed pixel row type. More...
 
class  row_traits< std::vector< pixel > >
 The row_traits specialization for unpacked pixel rows. More...
 
class  std_error
 Exception class to represent standard library errors (generally IO). More...
 
class  streaming_base
 A base class template for consumer and generator classes. More...
 
class  writer
 PNG writer class template. More...
 

Typedefs

typedef png_byte byte
 
typedef png_color_8 color_info
 
typedef png_color_16 color_info_16
 
typedef png_fixed_point fixed_point
 
typedef basic_ga_pixel< bytega_pixel
 The 8-bit Gray+Alpha pixel type. More...
 
typedef basic_ga_pixel< uint_16ga_pixel_16
 The 16-bit Gray+Alpha pixel type. More...
 
typedef byte gray_pixel
 The 8-bit Grayscale pixel type. More...
 
typedef packed_gray_pixel< 1 > gray_pixel_1
 The 1-bit Grayscale pixel type. More...
 
typedef uint_16 gray_pixel_16
 The 16-bit Grayscale pixel type. More...
 
typedef packed_gray_pixel< 2 > gray_pixel_2
 The 2-bit Grayscale pixel type. More...
 
typedef packed_gray_pixel< 4 > gray_pixel_4
 The 4-bit Grayscale pixel type. More...
 
typedef packed_index_pixel< 1 > index_pixel_1
 The 1-bit Indexed pixel type. More...
 
typedef packed_index_pixel< 2 > index_pixel_2
 The 1-bit Indexed pixel type. More...
 
typedef packed_index_pixel< 4 > index_pixel_4
 The 1-bit Indexed pixel type. More...
 
typedef std::vector< colorpalette
 The palette type. More...
 
typedef basic_rgb_pixel< bytergb_pixel
 The 8-bit RGB pixel type. More...
 
typedef basic_rgb_pixel< uint_16rgb_pixel_16
 The 16-bit RGB pixel type. More...
 
typedef basic_rgba_pixel< bytergba_pixel
 The 8-bit RGBA pixel type. More...
 
typedef basic_rgba_pixel< uint_16rgba_pixel_16
 The 16-bit RGBA pixel type. More...
 
typedef std::vector< bytetRNS
 The palette transparency map type. More...
 
typedef png_uint_16 uint_16
 
typedef png_uint_32 uint_32
 

Enumerations

enum  chunk {
  chunk_gAMA = PNG_INFO_gAMA,
  chunk_sBIT = PNG_INFO_sBIT,
  chunk_cHRM = PNG_INFO_cHRM,
  chunk_PLTE = PNG_INFO_PLTE,
  chunk_tRNS = PNG_INFO_tRNS,
  chunk_bKGD = PNG_INFO_bKGD,
  chunk_hIST = PNG_INFO_hIST,
  chunk_pHYs = PNG_INFO_pHYs,
  chunk_oFFs = PNG_INFO_oFFs,
  chunk_tIME = PNG_INFO_tIME,
  chunk_pCAL = PNG_INFO_pCAL,
  chunk_sRGB = PNG_INFO_sRGB,
  chunk_iCCP = PNG_INFO_iCCP,
  chunk_sPLT = PNG_INFO_sPLT,
  chunk_sCAL = PNG_INFO_sCAL,
  chunk_IDAT = PNG_INFO_IDAT
}
 
enum  color_mask {
  color_mask_palette = PNG_COLOR_MASK_PALETTE,
  color_mask_color = PNG_COLOR_MASK_COLOR,
  color_mask_rgb = color_mask_color,
  color_mask_alpha = PNG_COLOR_MASK_ALPHA
}
 
enum  color_type {
  color_type_none = -1,
  color_type_gray = PNG_COLOR_TYPE_GRAY,
  color_type_palette = PNG_COLOR_TYPE_PALETTE,
  color_type_rgb = PNG_COLOR_TYPE_RGB,
  color_type_rgb_alpha = PNG_COLOR_TYPE_RGB_ALPHA,
  color_type_gray_alpha = PNG_COLOR_TYPE_GRAY_ALPHA,
  color_type_rgba = PNG_COLOR_TYPE_RGBA,
  color_type_ga = PNG_COLOR_TYPE_GA
}
 
enum  compression_type {
  compression_type_base = PNG_COMPRESSION_TYPE_BASE,
  compression_type_default = PNG_COMPRESSION_TYPE_DEFAULT
}
 
enum  filler_type {
  filler_before = PNG_FILLER_BEFORE,
  filler_after = PNG_FILLER_AFTER
}
 
enum  filter_type {
  filter_type_base = PNG_FILTER_TYPE_BASE,
  intrapixel_differencing = PNG_INTRAPIXEL_DIFFERENCING,
  filter_type_default = PNG_FILTER_TYPE_DEFAULT
}
 
enum  interlace_type {
  interlace_none = PNG_INTERLACE_NONE,
  interlace_adam7 = PNG_INTERLACE_ADAM7
}
 
enum  rgb_to_gray_error_action {
  rgb_to_gray_silent = 1,
  rgb_to_gray_warning = 2,
  rgb_to_gray_error = 3
}
 

Functions

template<typename pixel >
image_info make_image_info ()
 Returns an image_info object with color_type and bit_depth fields setup appropriate for the pixel type. More...
 

Typedef Documentation

typedef png_byte png::byte
typedef png_color_8 png::color_info
typedef png_color_16 png::color_info_16
typedef png_fixed_point png::fixed_point

The 8-bit Gray+Alpha pixel type.

The 16-bit Gray+Alpha pixel type.

The 8-bit Grayscale pixel type.

The 1-bit Grayscale pixel type.

The 16-bit Grayscale pixel type.

The 2-bit Grayscale pixel type.

The 4-bit Grayscale pixel type.

The 1-bit Indexed pixel type.

The 1-bit Indexed pixel type.

The 1-bit Indexed pixel type.

typedef std::vector< color > png::palette

The palette type.

Currently implemented as std::vector of png::color.

The 8-bit RGB pixel type.

The 16-bit RGB pixel type.

The 8-bit RGBA pixel type.

The 16-bit RGBA pixel type.

typedef std::vector< byte > png::tRNS

The palette transparency map type.

Currently implemented as std::vector of png::byte.

typedef png_uint_16 png::uint_16
typedef png_uint_32 png::uint_32

Enumeration Type Documentation

enum png::chunk
Enumerator
chunk_gAMA 
chunk_sBIT 
chunk_cHRM 
chunk_PLTE 
chunk_tRNS 
chunk_bKGD 
chunk_hIST 
chunk_pHYs 
chunk_oFFs 
chunk_tIME 
chunk_pCAL 
chunk_sRGB 
chunk_iCCP 
chunk_sPLT 
chunk_sCAL 
chunk_IDAT 
Enumerator
color_mask_palette 
color_mask_color 
color_mask_rgb 
color_mask_alpha 
Enumerator
color_type_none 
color_type_gray 
color_type_palette 
color_type_rgb 
color_type_rgb_alpha 
color_type_gray_alpha 
color_type_rgba 
color_type_ga 
Enumerator
compression_type_base 
compression_type_default 
Enumerator
filler_before 
filler_after 
Enumerator
filter_type_base 
intrapixel_differencing 
filter_type_default 
Enumerator
interlace_none 
interlace_adam7 
Enumerator
rgb_to_gray_silent 
rgb_to_gray_warning 
rgb_to_gray_error 

Function Documentation

template<typename pixel >
image_info png::make_image_info ( )

Returns an image_info object with color_type and bit_depth fields setup appropriate for the pixel type.

References png::image_info::set_bit_depth(), and png::image_info::set_color_type().

Here is the call graph for this function: