| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Macros | Typedefs | Functions
png.c File Reference
`#include "pngpriv.h"`

Go to the source code of this file.

## Macros
#define | png_fp_add(state, flags) ((state) |= (flags))
#define | png_fp_set(state, value) ((state) = (value) | ((state) & PNG_FP_WAS_VALID))
#define | PNG_FP_SIGN 0 /* [+-] */
#define | PNG_FP_DOT 4 /* . */
#define | PNG_FP_DIGIT 8 /* [0123456789] */
#define | PNG_FP_E 12 /* [Ee] */

## Typedefs
typedef png_libpng_version_1_5_1 | Your_png_h_is_not_version_1_5_1

## Functions
void PNGAPI | png_set_sig_bytes (png_structp png_ptr, int num_bytes)
int PNGAPI | png_sig_cmp (png_const_bytep sig, png_size_t start, png_size_t num_to_check)
| PNG_FUNCTION (voidpf, png_zalloc,(voidpf png_ptr, uInt items, uInt size), PNG_ALLOCATED)
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_const_bytep ptr, png_size_t length)
| PNG_FUNCTION (png_infop, PNGAPI png_create_info_struct,(png_structp png_ptr), PNG_ALLOCATED)
void PNGAPI | png_destroy_info_struct (png_structp png_ptr, png_infopp info_ptr_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_const_charp PNGAPI | png_convert_to_rfc1123 (png_structp png_ptr, png_const_timep ptime)
png_const_charp PNGAPI | png_get_copyright (png_const_structp png_ptr)
png_const_charp PNGAPI | png_get_libpng_ver (png_const_structp png_ptr)
png_const_charp PNGAPI | png_get_header_ver (png_const_structp png_ptr)
png_const_charp PNGAPI | png_get_header_version (png_const_structp png_ptr)
int PNGAPI | png_handle_as_unknown (png_structp png_ptr, png_const_bytep chunk_name)
int PNGAPI | png_reset_zstream (png_structp png_ptr)
png_uint_32 PNGAPI | png_access_version_number (void)
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)
int | png_check_fp_number (png_const_charp string, png_size_t size, int *statep, png_size_tp whereami)
int | png_check_fp_string (png_const_charp string, png_size_t size)
void | png_ascii_from_fp (png_structp png_ptr, png_charp ascii, png_size_t size, double fp, unsigned int precision)
void | png_ascii_from_fixed (png_structp png_ptr, png_charp ascii, png_size_t size, png_fixed_point fp)
png_fixed_point | png_fixed (png_structp png_ptr, double fp, png_const_charp text)
int | png_muldiv (png_fixed_point_p res, png_fixed_point a, png_int_32 times, png_int_32 divisor)
png_fixed_point | png_muldiv_warn (png_structp png_ptr, png_fixed_point a, png_int_32 times, png_int_32 divisor)
png_fixed_point | png_reciprocal (png_fixed_point a)
png_fixed_point | png_reciprocal2 (png_fixed_point a, png_fixed_point b)
void | png_64bit_product (long v1, long v2, unsigned long *hi_product, unsigned long *lo_product)
png_byte | png_gamma_8bit_correct (unsigned int value, png_fixed_point gamma_val)
png_uint_16 | png_gamma_16bit_correct (unsigned int value, png_fixed_point gamma_val)
png_uint_16 | png_gamma_correct (png_structp png_ptr, unsigned int value, png_fixed_point gamma_val)
int | png_gamma_significant (png_fixed_point gamma_val)
void | png_build_gamma_table (png_structp png_ptr, int bit_depth)

## Macro Definition Documentation

#define png_fp_add | ( |  | state,
|  |  | flags
| ) |  | ((state) |= (flags))

Definition at line 893 of file png.c.

#define PNG_FP_DIGIT 8 /* [0123456789] */

Definition at line 900 of file png.c.

#define PNG_FP_DOT 4 /* . */

Definition at line 899 of file png.c.

#define PNG_FP_E 12 /* [Ee] */

Definition at line 901 of file png.c.

#define png_fp_set | ( |  | state,
|  |  | value
| ) |  | ((state) = (value) | ((state) & PNG_FP_WAS_VALID))

Definition at line 894 of file png.c.

#define PNG_FP_SIGN 0 /* [+-] */

Definition at line 898 of file png.c.

## Typedef Documentation

typedef png_libpng_version_1_5_1 Your_png_h_is_not_version_1_5_1

Definition at line 17 of file png.c.

## Function Documentation

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

Definition at line 1700 of file png.c.

png_uint_32 PNGAPI png_access_version_number | ( | void |  | ) |

Definition at line 645 of file png.c.

void png_ascii_from_fixed | ( | png_structp | png_ptr,
|  | png_charp | ascii,
|  | png_size_t | size,
|  | png_fixed_point | fp
| ) |  |

Definition at line 1386 of file png.c.

void png_ascii_from_fp | ( | png_structp | png_ptr,
|  | png_charp | ascii,
|  | png_size_t | size,
|  | double | fp,
|  | unsigned int | precision
| ) |  |

Definition at line 1084 of file png.c.

void png_build_gamma_table | ( | png_structp | png_ptr,
|  | int | bit_depth
| ) |  |

Definition at line 2250 of file png.c.

void png_calculate_crc | ( | png_structp | png_ptr,
|  | png_const_bytep | ptr,
|  | png_size_t | length
| ) |  |

Definition at line 119 of file png.c.

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 671 of file png.c.

int png_check_fp_number | ( | png_const_charp | string,
|  | png_size_t | size,
|  | int * | statep,
|  | png_size_tp | whereami
| ) |  |

Definition at line 904 of file png.c.

int png_check_fp_string | ( | png_const_charp | string,
|  | png_size_t | size
| ) |  |

Definition at line 1031 of file png.c.

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 745 of file png.c.

png_const_charp PNGAPI png_convert_to_rfc1123 | ( | png_structp | png_ptr,
|  | png_const_timep | ptime
| ) |  |

Definition at line 512 of file png.c.

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

Definition at line 227 of file png.c.

void PNGAPI png_destroy_info_struct | ( | png_structp | png_ptr,
|  | png_infopp | info_ptr_ptr
| ) |  |

Definition at line 174 of file png.c.

png_fixed_point png_fixed | ( | png_structp | png_ptr,
|  | double | fp,
|  | png_const_charp | text
| ) |  |

Definition at line 1459 of file png.c.

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

Definition at line 247 of file png.c.

PNG_FUNCTION | ( | voidpf | ,
|  | png_zalloc | ,
|  | (voidpf png_ptr, uInt items, uInt size) | ,
|  | PNG_ALLOCATED |
| ) |  |

Definition at line 72 of file png.c.

PNG_FUNCTION | ( | png_infop | ,
|  | PNGAPI | png_create_info_struct,
|  | (png_structp png_ptr) | ,
|  | PNG_ALLOCATED |
| ) |  |

Definition at line 146 of file png.c.

png_uint_16 png_gamma_16bit_correct | ( | unsigned int | value,
|  | png_fixed_point | gamma_val
| ) |  |

Definition at line 2039 of file png.c.

png_byte png_gamma_8bit_correct | ( | unsigned int | value,
|  | png_fixed_point | gamma_val
| ) |  |

Definition at line 2016 of file png.c.

png_uint_16 png_gamma_correct | ( | png_structp | png_ptr,
|  | unsigned int | value,
|  | png_fixed_point | gamma_val
| ) |  |

Definition at line 2067 of file png.c.

int png_gamma_significant | ( | png_fixed_point | gamma_val | ) |

Definition at line 2081 of file png.c.

png_const_charp PNGAPI png_get_copyright | ( | png_const_structp | png_ptr | ) |

Definition at line 550 of file png.c.

png_const_charp PNGAPI png_get_header_ver | ( | png_const_structp | png_ptr | ) |

Definition at line 588 of file png.c.

png_const_charp PNGAPI png_get_header_version | ( | png_const_structp | png_ptr | ) |

Definition at line 596 of file png.c.

png_voidp PNGAPI png_get_io_ptr | ( | png_structp | png_ptr | ) |

Definition at line 479 of file png.c.

png_const_charp PNGAPI png_get_libpng_ver | ( | png_const_structp | png_ptr | ) |

Definition at line 581 of file png.c.

int PNGAPI png_handle_as_unknown | ( | png_structp | png_ptr,
|  | png_const_bytep | chunk_name
| ) |  |

Definition at line 614 of file png.c.

void png_info_destroy | ( | png_structp | png_ptr,
|  | png_infop | info_ptr
| ) |  |

Definition at line 455 of file png.c.

void PNGAPI png_info_init_3 | ( | png_infopp | ptr_ptr,
|  | png_size_t | png_info_struct_size
| ) |  |

Definition at line 206 of file png.c.

void PNGAPI png_init_io | ( | png_structp | png_ptr,
|  | png_FILE_p | fp
| ) |  |

Definition at line 496 of file png.c.

int png_muldiv | ( | png_fixed_point_p | res,
|  | png_fixed_point | a,
|  | png_int_32 | times,
|  | png_int_32 | divisor
| ) |  |

Definition at line 1479 of file png.c.

png_fixed_point png_muldiv_warn | ( | png_structp | png_ptr,
|  | png_fixed_point | a,
|  | png_int_32 | times,
|  | png_int_32 | divisor
| ) |  |

Definition at line 1598 of file png.c.

png_fixed_point png_reciprocal | ( | png_fixed_point | a | ) |

Definition at line 1614 of file png.c.

png_fixed_point png_reciprocal2 | ( | png_fixed_point | a,
|  | png_fixed_point | b
| ) |  |

Definition at line 1655 of file png.c.

void png_reset_crc | ( | png_structp | png_ptr | ) |

Definition at line 108 of file png.c.

int PNGAPI png_reset_zstream | ( | png_structp | png_ptr | ) |

Definition at line 634 of file png.c.

void PNGAPI png_set_sig_bytes | ( | png_structp | png_ptr,
|  | int | num_bytes
| ) |  |

Definition at line 27 of file png.c.

int PNGAPI png_sig_cmp | ( | png_const_bytep | sig,
|  | png_size_t | start,
|  | png_size_t | num_to_check
| ) |  |

Definition at line 49 of file png.c.

void png_zfree | ( | voidpf | png_ptr,
|  | voidpf | ptr
| ) |  |

Definition at line 99 of file png.c.