apps/png/libpng/png.c File Reference

#include "png.h"

Include dependency graph for png.c:

Go to the source code of this file.

Defines

#define PNG_INTERNAL
#define PNG_NO_EXTERN

Typedefs

typedef version_1_2_8 Your_png_h_is_not_version_1_2_8

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)
void png_init_mmx_flags (png_structp png_ptr)
int PNGAPI png_mmx_support (void)

Variables

const char png_libpng_ver [18] = PNG_LIBPNG_VER_STRING
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
const int FARDATA png_pass_start [] = {0, 4, 0, 2, 0, 1, 0}
const int FARDATA png_pass_inc [] = {8, 8, 4, 4, 2, 2, 1}
const int FARDATA png_pass_ystart [] = {0, 0, 4, 0, 2, 0, 1}
const int FARDATA png_pass_yinc [] = {8, 8, 8, 4, 4, 2, 2}
const int FARDATA png_pass_mask [] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}
const int FARDATA png_pass_dsp_mask [] = {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff}


Define Documentation

#define PNG_INTERNAL

Definition at line 11 of file png.c.

#define PNG_NO_EXTERN

Definition at line 12 of file png.c.


Typedef Documentation

typedef version_1_2_8 Your_png_h_is_not_version_1_2_8

Definition at line 16 of file png.c.


Function Documentation

png_uint_32 PNGAPI png_access_version_number ( void   ) 

Definition at line 751 of file png.c.

References PNG_LIBPNG_VER, and png_uint_32.

Referenced by main().

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

Definition at line 205 of file png.c.

References crc32.

Referenced by png_crc_read(), png_push_crc_finish(), png_push_read_IDAT(), png_write_chunk_data(), and png_write_chunk_start().

int PNGAPI png_check_sig ( png_bytep  sig,
int  num 
)

Definition at line 132 of file png.c.

References png_sig_cmp(), and png_size_t.

png_charp PNGAPI png_convert_to_rfc1123 ( png_structp  png_ptr,
png_timep  ptime 
)

Definition at line 626 of file png.c.

References PNG_CONST, png_malloc(), png_memcpy, png_sizeof, and png_uint_32.

Referenced by test_one_file().

png_infop PNGAPI png_create_info_struct ( png_structp  png_ptr  ) 

Definition at line 232 of file png.c.

References info_ptr, png_create_struct(), png_create_struct_2(), png_debug, png_info_init_3(), and png_sizeof.

Referenced by test_one_file(), and write_png().

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

Definition at line 312 of file png.c.

References png_debug, PNG_DESTROY_WILL_FREE_DATA, PNG_USER_WILL_FREE_DATA, and png_warning().

void PNGAPI png_destroy_info_struct ( png_structp  png_ptr,
png_infopp  info_ptr_ptr 
)

Definition at line 256 of file png.c.

References info_ptr, png_debug, png_destroy_struct(), png_destroy_struct_2(), and png_info_destroy().

Referenced by test_one_file().

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

Definition at line 329 of file png.c.

References int, png_debug, png_free(), PNG_FREE_HIST, PNG_FREE_ICCP, PNG_FREE_MUL, PNG_FREE_PCAL, PNG_FREE_PLTE, PNG_FREE_ROWS, PNG_FREE_SCAL, PNG_FREE_SPLT, PNG_FREE_TEXT, PNG_FREE_TRNS, PNG_FREE_UNKN, PNG_INFO_hIST, PNG_INFO_iCCP, PNG_INFO_IDAT, PNG_INFO_pCAL, PNG_INFO_PLTE, PNG_INFO_sCAL, PNG_INFO_sPLT, PNG_INFO_tRNS, png_zfree(), and row.

Referenced by png_destroy_read_struct(), png_destroy_write_struct(), png_info_destroy(), png_read_png(), png_set_hIST(), png_set_iCCP(), png_set_PLTE(), png_set_rows(), png_set_tRNS(), and test_one_file().

png_charp PNGAPI png_get_copyright ( png_structp  png_ptr  ) 

Definition at line 680 of file png.c.

Referenced by main().

png_charp PNGAPI png_get_header_ver ( png_structp  png_ptr  ) 

Definition at line 708 of file png.c.

References PNG_LIBPNG_VER_STRING.

png_charp PNGAPI png_get_header_version ( png_structp  png_ptr  ) 

Definition at line 717 of file png.c.

References PNG_HEADER_VERSION_STRING.

Referenced by main().

png_voidp PNGAPI png_get_io_ptr ( png_structp  png_ptr  ) 

Definition at line 601 of file png.c.

png_charp PNGAPI png_get_libpng_ver ( png_structp  png_ptr  ) 

Definition at line 699 of file png.c.

References PNG_LIBPNG_VER_STRING.

int PNGAPI png_handle_as_unknown ( png_structp  png_ptr,
png_bytep  chunk_name 
)

Definition at line 727 of file png.c.

References png_bytep, and png_memcmp.

Referenced by png_handle_unknown(), png_push_handle_unknown(), png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_info_before_PLTE().

void png_info_destroy ( png_structp  png_ptr,
png_infop  info_ptr 
)

Definition at line 578 of file png.c.

References png_debug, png_free(), PNG_FREE_ALL, png_free_data(), png_info_init_3(), and png_sizeof.

Referenced by png_destroy_info_struct(), and png_read_destroy().

void PNGAPI png_info_init ( png_infop  info_ptr  ) 

Definition at line 285 of file png.c.

References png_info_init_3().

void PNGAPI png_info_init_3 ( png_infopp  ptr_ptr,
png_size_t  png_info_struct_size 
)

Definition at line 293 of file png.c.

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

Referenced by png_create_info_struct(), png_info_destroy(), and png_info_init().

void PNGAPI png_init_io ( png_structp  png_ptr,
png_FILE_p  fp 
)

Definition at line 614 of file png.c.

References png_debug.

Referenced by test_one_file(), and write_png().

void png_init_mmx_flags ( png_structp  png_ptr  ) 

Definition at line 763 of file png.c.

References PNG_ASM_FLAG_MMX_READ_COMBINE_ROW, PNG_ASM_FLAG_MMX_READ_FILTER_AVG, PNG_ASM_FLAG_MMX_READ_FILTER_PAETH, PNG_ASM_FLAG_MMX_READ_FILTER_SUB, PNG_ASM_FLAG_MMX_READ_FILTER_UP, PNG_ASM_FLAG_MMX_READ_INTERLACE, PNG_ASM_FLAG_MMX_SUPPORT_COMPILED, PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU, PNG_MMX_FLAGS, PNG_MMX_READ_FLAGS, png_mmx_support(), and PNG_MMX_WRITE_FLAGS.

Referenced by png_create_read_struct_2(), png_create_write_struct_2(), and png_write_init_3().

int PNGAPI png_mmx_support ( void   ) 

Definition at line 811 of file png.c.

Referenced by png_init_mmx_flags().

void png_reset_crc ( png_structp  png_ptr  ) 

Definition at line 194 of file png.c.

References crc32.

Referenced by png_push_read_chunk(), png_push_read_IDAT(), png_read_end(), png_read_finish_row(), png_read_info(), png_read_row(), and png_write_chunk_start().

int PNGAPI png_reset_zstream ( png_structp  png_ptr  ) 

Definition at line 744 of file png.c.

void PNGAPI png_set_sig_bytes ( png_structp  png_ptr,
int  num_bytes 
)

Definition at line 92 of file png.c.

References png_debug, and png_error().

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

Definition at line 110 of file png.c.

References png_memcmp.

Referenced by png_check_sig(), png_push_read_sig(), and png_read_info().

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

Definition at line 143 of file png.c.

References num_bytes, png_bytep, png_malloc(), png_memset, png_size_t, png_uint_32, PNG_UINT_32_MAX, png_warning(), and ptr.

Referenced by png_create_read_struct_2(), png_read_init_3(), and png_write_IHDR().

void png_zfree ( voidpf  png_ptr,
voidpf  ptr 
)

Definition at line 185 of file png.c.

References png_free().

Referenced by png_create_read_struct_2(), png_free_data(), png_read_destroy(), png_read_init_3(), and png_write_IHDR().


Variable Documentation

PNG_bKGD

Definition at line 34 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_bKGD().

PNG_cHRM

Definition at line 35 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), png_write_cHRM(), and png_write_cHRM_fixed().

PNG_gAMA

Definition at line 36 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), png_write_gAMA(), and png_write_gAMA_fixed().

PNG_hIST

Definition at line 37 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_hIST().

PNG_iCCP

Definition at line 38 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_iCCP().

PNG_IDAT

Definition at line 31 of file png.c.

Referenced by png_handle_unknown(), png_push_read_chunk(), png_push_read_IDAT(), png_read_end(), png_read_finish_row(), png_read_info(), png_read_row(), and png_write_IDAT().

PNG_IEND

Definition at line 32 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_IEND().

PNG_IHDR

Definition at line 30 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_IHDR().

PNG_iTXt

Definition at line 39 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().

const char png_libpng_ver[18] = PNG_LIBPNG_VER_STRING

Definition at line 23 of file png.c.

Referenced by main(), png_create_read_struct_2(), png_create_write_struct_2(), png_read_init_2(), png_read_init_3(), png_write_init_2(), and png_write_init_3().

PNG_oFFs

Definition at line 40 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_oFFs().

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

Definition at line 81 of file png.c.

Referenced by png_progressive_combine_row(), and png_read_row().

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

Definition at line 58 of file png.c.

Referenced by png_do_read_interlace(), png_do_write_interlace(), png_read_finish_row(), png_read_push_finish_row(), png_read_start_row(), png_write_finish_row(), and png_write_start_row().

const int FARDATA png_pass_mask[] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}

Definition at line 77 of file png.c.

Referenced by png_read_row().

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

Definition at line 55 of file png.c.

Referenced by png_do_write_interlace(), png_read_finish_row(), png_read_push_finish_row(), png_read_start_row(), png_write_finish_row(), and png_write_start_row().

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

Definition at line 64 of file png.c.

Referenced by png_read_finish_row(), png_read_push_finish_row(), png_read_start_row(), png_write_finish_row(), and png_write_start_row().

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

Definition at line 61 of file png.c.

Referenced by png_read_finish_row(), png_read_push_finish_row(), png_read_start_row(), png_write_finish_row(), and png_write_start_row().

PNG_pCAL

Definition at line 41 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_pCAL().

PNG_pHYs

Definition at line 43 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_pHYs().

PNG_PLTE

Definition at line 33 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_PLTE().

PNG_sBIT

Definition at line 44 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sBIT().

PNG_sCAL

Definition at line 42 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sCAL().

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

Definition at line 27 of file png.c.

PNG_sPLT

Definition at line 45 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sPLT().

PNG_sRGB

Definition at line 46 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sRGB().

PNG_tEXt

Definition at line 47 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tEXt().

PNG_tIME

Definition at line 48 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tIME().

PNG_tRNS

Definition at line 49 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tRNS().

PNG_zTXt

Definition at line 50 of file png.c.

Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_zTXt().


Generated on Fri Nov 28 00:07:09 2008 for elphel by  doxygen 1.5.1