types.hpp
Go to the documentation of this file.
/*
* Copyright (C) 2007,2008 Alex Shulgin
*
* This file is part of png++ the C++ wrapper for libpng. PNG++ is free
* software; the exact copying conditions are as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef PNGPP_TYPES_HPP_INCLUDED
#define PNGPP_TYPES_HPP_INCLUDED
#include <png.h>
namespace png
{
typedef png_byte byte;
typedef png_uint_16 uint_16;
typedef png_uint_32 uint_32;
typedef png_fixed_point fixed_point;
typedef png_color_8 color_info;
typedef png_color_16 color_info_16;
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 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 filler_type
{
filler_before = PNG_FILLER_BEFORE,
filler_after = PNG_FILLER_AFTER
};
enum rgb_to_gray_error_action
{
rgb_to_gray_silent = 1,
rgb_to_gray_warning = 2,
rgb_to_gray_error = 3
};
enum interlace_type
{
interlace_none = PNG_INTERLACE_NONE,
interlace_adam7 = PNG_INTERLACE_ADAM7
};
enum compression_type
{
compression_type_base = PNG_COMPRESSION_TYPE_BASE,
compression_type_default = PNG_COMPRESSION_TYPE_DEFAULT
};
enum filter_type
{
filter_type_base = PNG_FILTER_TYPE_BASE,
intrapixel_differencing = PNG_INTRAPIXEL_DIFFERENCING,
filter_type_default = PNG_FILTER_TYPE_DEFAULT
};
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
};
} // namespace png
#endif // PNGPP_TYPES_HPP_INCLUDED
png::reader
The PNG reader class template. This is the low-level reading interface–use image class or consumer cl...
Definition reader.hpp:67
png
Definition color.hpp:37
png::uint_16
png_uint_16 uint_16
Definition types.hpp:40
png::rgb_to_gray_error_action
rgb_to_gray_error_action
Definition types.hpp:73
png::rgb_to_gray_silent
@ rgb_to_gray_silent
Definition types.hpp:74
png::rgb_to_gray_error
@ rgb_to_gray_error
Definition types.hpp:76
png::rgb_to_gray_warning
@ rgb_to_gray_warning
Definition types.hpp:75
png::filler_type
filler_type
Definition types.hpp:67
png::filler_after
@ filler_after
Definition types.hpp:69
png::filler_before
@ filler_before
Definition types.hpp:68
png::interlace_type
interlace_type
Definition types.hpp:80
png::interlace_none
@ interlace_none
Definition types.hpp:81
png::interlace_adam7
@ interlace_adam7
Definition types.hpp:82
png::fixed_point
png_fixed_point fixed_point
Definition types.hpp:42
png::color_type
color_type
Definition types.hpp:47
png::color_type_gray
@ color_type_gray
Definition types.hpp:49
png::color_type_palette
@ color_type_palette
Definition types.hpp:50
png::color_type_none
@ color_type_none
Definition types.hpp:48
png::color_type_rgb_alpha
@ color_type_rgb_alpha
Definition types.hpp:52
png::color_type_rgba
@ color_type_rgba
Definition types.hpp:54
png::color_type_ga
@ color_type_ga
Definition types.hpp:55
png::color_type_rgb
@ color_type_rgb
Definition types.hpp:51
png::color_type_gray_alpha
@ color_type_gray_alpha
Definition types.hpp:53
png::color_mask
color_mask
Definition types.hpp:59
png::color_mask_color
@ color_mask_color
Definition types.hpp:61
png::color_mask_alpha
@ color_mask_alpha
Definition types.hpp:63
png::color_mask_rgb
@ color_mask_rgb
Definition types.hpp:62
png::color_mask_palette
@ color_mask_palette
Definition types.hpp:60
png::uint_32
png_uint_32 uint_32
Definition types.hpp:41
png::color_info_16
png_color_16 color_info_16
Definition types.hpp:44
png::compression_type
compression_type
Definition types.hpp:86
png::compression_type_default
@ compression_type_default
Definition types.hpp:88
png::compression_type_base
@ compression_type_base
Definition types.hpp:87
png::chunk
chunk
Definition types.hpp:99
png::chunk_pCAL
@ chunk_pCAL
Definition types.hpp:110
png::chunk_iCCP
@ chunk_iCCP
Definition types.hpp:112
png::chunk_tIME
@ chunk_tIME
Definition types.hpp:109
png::chunk_IDAT
@ chunk_IDAT
Definition types.hpp:115
png::chunk_hIST
@ chunk_hIST
Definition types.hpp:106
png::chunk_sPLT
@ chunk_sPLT
Definition types.hpp:113
png::chunk_sBIT
@ chunk_sBIT
Definition types.hpp:101
png::chunk_gAMA
@ chunk_gAMA
Definition types.hpp:100
png::chunk_sRGB
@ chunk_sRGB
Definition types.hpp:111
png::chunk_PLTE
@ chunk_PLTE
Definition types.hpp:103
png::chunk_oFFs
@ chunk_oFFs
Definition types.hpp:108
png::chunk_bKGD
@ chunk_bKGD
Definition types.hpp:105
png::chunk_sCAL
@ chunk_sCAL
Definition types.hpp:114
png::chunk_cHRM
@ chunk_cHRM
Definition types.hpp:102
png::chunk_tRNS
@ chunk_tRNS
Definition types.hpp:104
png::chunk_pHYs
@ chunk_pHYs
Definition types.hpp:107
png::color_info
png_color_8 color_info
Definition types.hpp:43
png::filter_type
filter_type
Definition types.hpp:92
png::filter_type_base
@ filter_type_base
Definition types.hpp:93
png::filter_type_default
@ filter_type_default
Definition types.hpp:95
png::intrapixel_differencing
@ intrapixel_differencing
Definition types.hpp:94
png::byte
png_byte byte
Definition types.hpp:39