Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions | Variables
png.c File Reference
#include "png.h"

Go to the source code of this file.

Macros

#define PNG_INTERNAL
 
#define PNG_NO_EXTERN
 
#define PNG_NO_PEDANTIC_WARNINGS
 

Typedefs

typedef version_1_2_56 Your_png_h_is_not_version_1_2_56
 

Functions

void PNGAPI png_set_sig_bytes (png_structp png_ptr, int num_bytes)
 
int PNGAPI png_sig_cmp (png_bytep sig, png_size_t start, png_size_t num_to_check)
 
int PNGAPI png_check_sig (png_bytep sig, int num)
 
voidpf png_zalloc (voidpf png_ptr, uInt items, uInt size)
 
void png_zfree (voidpf png_ptr, voidpf ptr)
 
void png_reset_crc (png_structp png_ptr)
 
void png_calculate_crc (png_structp png_ptr, png_bytep ptr, png_size_t length)
 
png_infop PNGAPI png_create_info_struct (png_structp png_ptr)
 
void PNGAPI png_destroy_info_struct (png_structp png_ptr, png_infopp info_ptr_ptr)
 
void PNGAPI png_info_init (png_infop info_ptr)
 
void PNGAPI png_info_init_3 (png_infopp ptr_ptr, png_size_t png_info_struct_size)
 
void PNGAPI png_data_freer (png_structp png_ptr, png_infop info_ptr, int freer, png_uint_32 mask)
 
void PNGAPI png_free_data (png_structp png_ptr, png_infop info_ptr, png_uint_32 mask, int num)
 
void png_info_destroy (png_structp png_ptr, png_infop info_ptr)
 
png_voidp PNGAPI png_get_io_ptr (png_structp png_ptr)
 
void PNGAPI png_init_io (png_structp png_ptr, png_FILE_p fp)
 
png_charp PNGAPI png_convert_to_rfc1123 (png_structp png_ptr, png_timep ptime)
 
png_charp PNGAPI png_get_copyright (png_structp png_ptr)
 
png_charp PNGAPI png_get_libpng_ver (png_structp png_ptr)
 
png_charp PNGAPI png_get_header_ver (png_structp png_ptr)
 
png_charp PNGAPI png_get_header_version (png_structp png_ptr)
 
int PNGAPI png_handle_as_unknown (png_structp png_ptr, png_bytep chunk_name)
 
int PNGAPI png_reset_zstream (png_structp png_ptr)
 
png_uint_32 PNGAPI png_access_version_number (void)
 
int PNGAPI png_mmx_support (void)
 
void png_64bit_product (long v1, long v2, unsigned long *hi_product, unsigned long *lo_product)
 
int png_check_cHRM_fixed (png_structp png_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
 
void png_check_IHDR (png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
 

Variables

PNG_CONST char png_libpng_ver [18] = PNG_LIBPNG_VER_STRING
 
PNG_CONST png_byte FARDATA png_sig [8] = {137, 80, 78, 71, 13, 10, 26, 10}
 
 PNG_IHDR
 
 PNG_IDAT
 
 PNG_IEND
 
 PNG_PLTE
 
 PNG_bKGD
 
 PNG_cHRM
 
 PNG_gAMA
 
 PNG_hIST
 
 PNG_iCCP
 
 PNG_iTXt
 
 PNG_oFFs
 
 PNG_pCAL
 
 PNG_sCAL
 
 PNG_pHYs
 
 PNG_sBIT
 
 PNG_sPLT
 
 PNG_sRGB
 
 PNG_tEXt
 
 PNG_tIME
 
 PNG_tRNS
 
 PNG_zTXt
 
PNG_CONST int FARDATA png_pass_start [] = {0, 4, 0, 2, 0, 1, 0}
 
PNG_CONST int FARDATA png_pass_inc [] = {8, 8, 4, 4, 2, 2, 1}
 
PNG_CONST int FARDATA png_pass_ystart [] = {0, 0, 4, 0, 2, 0, 1}
 
PNG_CONST int FARDATA png_pass_yinc [] = {8, 8, 8, 4, 4, 2, 2}
 
PNG_CONST int FARDATA png_pass_mask []
 
PNG_CONST int FARDATA png_pass_dsp_mask [] = {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff}
 

Macro Definition Documentation

◆ PNG_INTERNAL

#define PNG_INTERNAL

Definition at line 14 of file png.c.

◆ PNG_NO_EXTERN

#define PNG_NO_EXTERN

Definition at line 15 of file png.c.

◆ PNG_NO_PEDANTIC_WARNINGS

#define PNG_NO_PEDANTIC_WARNINGS

Definition at line 16 of file png.c.

Typedef Documentation

◆ Your_png_h_is_not_version_1_2_56

Definition at line 20 of file png.c.

Function Documentation

◆ png_64bit_product()

void png_64bit_product ( long  v1,
long  v2,
unsigned long hi_product,
unsigned long lo_product 
)

Definition at line 871 of file png.c.

References long().

◆ png_access_version_number()

png_uint_32 PNGAPI png_access_version_number ( void  )

Definition at line 819 of file png.c.

References PNG_LIBPNG_VER, and PNGAPI.

Referenced by main().

◆ png_calculate_crc()

void png_calculate_crc ( png_structp  png_ptr,
png_bytep  ptr,
png_size_t  length 
)

Definition at line 226 of file png.c.

◆ png_check_cHRM_fixed()

int png_check_cHRM_fixed ( png_structp  png_ptr,
png_fixed_point  white_x,
png_fixed_point  white_y,
png_fixed_point  red_x,
png_fixed_point  red_y,
png_fixed_point  green_x,
png_fixed_point  green_y,
png_fixed_point  blue_x,
png_fixed_point  blue_y 
)

Definition at line 896 of file png.c.

◆ png_check_IHDR()

void png_check_IHDR ( png_structp  png_ptr,
png_uint_32  width,
png_uint_32  height,
int  bit_depth,
int  color_type,
int  interlace_type,
int  compression_type,
int  filter_type 
)

Definition at line 968 of file png.c.

◆ png_check_sig()

int PNGAPI png_check_sig ( png_bytep  sig,
int  num 
)

Definition at line 144 of file png.c.

References png_sig_cmp(), and PNGAPI.

Referenced by vl::isPNG().

◆ png_convert_to_rfc1123()

png_charp PNGAPI png_convert_to_rfc1123 ( png_structp  png_ptr,
png_timep  ptime 
)

Definition at line 676 of file png.c.

◆ png_create_info_struct()

png_infop PNGAPI png_create_info_struct ( png_structp  png_ptr)

Definition at line 253 of file png.c.

Referenced by vl::savePNG().

◆ png_data_freer()

void PNGAPI png_data_freer ( png_structp  png_ptr,
png_infop  info_ptr,
int  freer,
png_uint_32  mask 
)

Definition at line 345 of file png.c.

◆ png_destroy_info_struct()

void PNGAPI png_destroy_info_struct ( png_structp  png_ptr,
png_infopp  info_ptr_ptr 
)

Definition at line 280 of file png.c.

◆ png_free_data()

void PNGAPI png_free_data ( png_structp  png_ptr,
png_infop  info_ptr,
png_uint_32  mask,
int  num 
)

Definition at line 364 of file png.c.

◆ png_get_copyright()

png_charp PNGAPI png_get_copyright ( png_structp  png_ptr)

Definition at line 726 of file png.c.

Referenced by main().

◆ png_get_header_ver()

png_charp PNGAPI png_get_header_ver ( png_structp  png_ptr)

Definition at line 766 of file png.c.

◆ png_get_header_version()

png_charp PNGAPI png_get_header_version ( png_structp  png_ptr)

Definition at line 774 of file png.c.

Referenced by main().

◆ png_get_io_ptr()

png_voidp PNGAPI png_get_io_ptr ( png_structp  png_ptr)

Definition at line 644 of file png.c.

◆ png_get_libpng_ver()

png_charp PNGAPI png_get_libpng_ver ( png_structp  png_ptr)

Definition at line 758 of file png.c.

◆ png_handle_as_unknown()

int PNGAPI png_handle_as_unknown ( png_structp  png_ptr,
png_bytep  chunk_name 
)

Definition at line 792 of file png.c.

◆ png_info_destroy()

void png_info_destroy ( png_structp  png_ptr,
png_infop  info_ptr 
)

Definition at line 620 of file png.c.

◆ png_info_init()

void PNGAPI png_info_init ( png_infop  info_ptr)

Definition at line 313 of file png.c.

References png_info_init_3(), and PNGAPI.

◆ png_info_init_3()

void PNGAPI png_info_init_3 ( png_infopp  ptr_ptr,
png_size_t  png_info_struct_size 
)

Definition at line 321 of file png.c.

References info_ptr, NULL, png_create_struct(), png_debug, png_destroy_struct(), png_memset, png_sizeof, and PNGAPI.

Referenced by png_info_init().

◆ png_init_io()

void PNGAPI png_init_io ( png_structp  png_ptr,
png_FILE_p  fp 
)

Definition at line 660 of file png.c.

◆ png_mmx_support()

int PNGAPI png_mmx_support ( void  )

Definition at line 830 of file png.c.

References PNG_ABORT, PNGAPI, and PNGARG.

Referenced by readpng2_version_info().

◆ png_reset_crc()

void png_reset_crc ( png_structp  png_ptr)

Definition at line 215 of file png.c.

◆ png_reset_zstream()

int PNGAPI png_reset_zstream ( png_structp  png_ptr)

Definition at line 809 of file png.c.

◆ png_set_sig_bytes()

void PNGAPI png_set_sig_bytes ( png_structp  png_ptr,
int  num_bytes 
)

Definition at line 99 of file png.c.

◆ png_sig_cmp()

int PNGAPI png_sig_cmp ( png_bytep  sig,
png_size_t  start,
png_size_t  num_to_check 
)

Definition at line 121 of file png.c.

References png_memcmp, and PNGAPI.

Referenced by png_check_sig(), PngLoadImage(), readpng2_check_sig(), and readpng_init().

◆ png_zalloc()

voidpf png_zalloc ( voidpf  png_ptr,
uInt  items,
uInt  size 
)

Definition at line 158 of file png.c.

◆ png_zfree()

void png_zfree ( voidpf  png_ptr,
voidpf  ptr 
)

Definition at line 206 of file png.c.

Variable Documentation

◆ PNG_bKGD

PNG_bKGD

Definition at line 42 of file png.c.

◆ PNG_cHRM

PNG_cHRM

Definition at line 43 of file png.c.

◆ PNG_gAMA

PNG_gAMA

Definition at line 44 of file png.c.

◆ PNG_hIST

PNG_hIST

Definition at line 45 of file png.c.

◆ PNG_iCCP

PNG_iCCP

Definition at line 46 of file png.c.

◆ PNG_IDAT

PNG_IDAT

Definition at line 39 of file png.c.

◆ PNG_IEND

PNG_IEND

Definition at line 40 of file png.c.

◆ PNG_IHDR

PNG_IHDR

Definition at line 38 of file png.c.

◆ PNG_iTXt

PNG_iTXt

Definition at line 47 of file png.c.

◆ png_libpng_ver

PNG_CONST char png_libpng_ver[18] = PNG_LIBPNG_VER_STRING

Definition at line 28 of file png.c.

Referenced by main(), readpng2_version_info(), readpng_version_info(), and writepng_version_info().

◆ PNG_oFFs

PNG_oFFs

Definition at line 48 of file png.c.

◆ png_pass_dsp_mask

PNG_CONST int FARDATA png_pass_dsp_mask[] = {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff}

Definition at line 86 of file png.c.

◆ png_pass_inc

PNG_CONST int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}

Definition at line 67 of file png.c.

Referenced by png_do_write_interlace().

◆ png_pass_mask

PNG_CONST int FARDATA png_pass_mask[]
Initial value:
=
{0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}

Definition at line 81 of file png.c.

◆ png_pass_start

PNG_CONST int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}

Definition at line 64 of file png.c.

Referenced by png_do_write_interlace().

◆ png_pass_yinc

PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2}

Definition at line 73 of file png.c.

◆ png_pass_ystart

PNG_CONST int FARDATA png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1}

Definition at line 70 of file png.c.

◆ PNG_pCAL

PNG_pCAL

Definition at line 49 of file png.c.

◆ PNG_pHYs

PNG_pHYs

Definition at line 51 of file png.c.

◆ PNG_PLTE

PNG_PLTE

Definition at line 41 of file png.c.

◆ PNG_sBIT

PNG_sBIT

Definition at line 52 of file png.c.

◆ PNG_sCAL

PNG_sCAL

Definition at line 50 of file png.c.

◆ png_sig

PNG_CONST png_byte FARDATA png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10}

Definition at line 34 of file png.c.

◆ PNG_sPLT

PNG_sPLT

Definition at line 53 of file png.c.

◆ PNG_sRGB

PNG_sRGB

Definition at line 54 of file png.c.

◆ PNG_tEXt

PNG_tEXt

Definition at line 55 of file png.c.

◆ PNG_tIME

PNG_tIME

Definition at line 56 of file png.c.

◆ PNG_tRNS

PNG_tRNS

Definition at line 57 of file png.c.

◆ PNG_zTXt

PNG_zTXt

Definition at line 58 of file png.c.