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 | Functions
pngmem.c File Reference
#include "png.h"

Go to the source code of this file.

Macros

#define PNG_INTERNAL
 
#define PNG_NO_PEDANTIC_WARNINGS
 

Functions

png_voidp png_create_struct (int type)
 
png_voidp png_create_struct_2 (int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr)
 
void png_destroy_struct (png_voidp struct_ptr)
 
void png_destroy_struct_2 (png_voidp struct_ptr, png_free_ptr free_fn, png_voidp mem_ptr)
 
png_voidp png_calloc (png_structp png_ptr, png_uint_32 size)
 
png_voidp PNGAPI png_malloc (png_structp png_ptr, png_uint_32 size)
 
png_voidp PNGAPI png_malloc_default (png_structp png_ptr, png_uint_32 size)
 
void PNGAPI png_free (png_structp png_ptr, png_voidp ptr)
 
void PNGAPI png_free_default (png_structp png_ptr, png_voidp ptr)
 
png_voidp PNGAPI png_malloc_warn (png_structp png_ptr, png_uint_32 size)
 
png_voidp PNGAPI png_memcpy_check (png_structp png_ptr, png_voidp s1, png_voidp s2, png_uint_32 length)
 
png_voidp PNGAPI png_memset_check (png_structp png_ptr, png_voidp s1, int value, png_uint_32 length)
 
void PNGAPI png_set_mem_fn (png_structp png_ptr, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
 
png_voidp PNGAPI png_get_mem_ptr (png_structp png_ptr)
 

Macro Definition Documentation

◆ PNG_INTERNAL

#define PNG_INTERNAL

Definition at line 20 of file pngmem.c.

◆ PNG_NO_PEDANTIC_WARNINGS

#define PNG_NO_PEDANTIC_WARNINGS

Definition at line 21 of file pngmem.c.

Function Documentation

◆ png_calloc()

png_voidp png_calloc ( png_structp  png_ptr,
png_uint_32  size 
)

Definition at line 446 of file pngmem.c.

◆ png_create_struct()

png_voidp png_create_struct ( int  type)

Definition at line 348 of file pngmem.c.

References png_create_struct_2(), png_malloc_ptr_NULL, and png_voidp_NULL.

Referenced by png_info_init_3().

◆ png_create_struct_2()

png_voidp png_create_struct_2 ( int  type,
png_malloc_ptr  malloc_fn,
png_voidp  mem_ptr 
)

Definition at line 358 of file pngmem.c.

References NULL, and png_sizeof.

Referenced by png_create_struct().

◆ png_destroy_struct()

void png_destroy_struct ( png_voidp  struct_ptr)

Definition at line 402 of file pngmem.c.

References png_destroy_struct_2(), png_free_ptr_NULL, and png_voidp_NULL.

Referenced by png_info_init_3().

◆ png_destroy_struct_2()

void png_destroy_struct_2 ( png_voidp  struct_ptr,
png_free_ptr  free_fn,
png_voidp  mem_ptr 
)

Definition at line 410 of file pngmem.c.

References NULL.

Referenced by png_destroy_struct().

◆ png_free()

void PNGAPI png_free ( png_structp  png_ptr,
png_voidp  ptr 
)

Definition at line 527 of file pngmem.c.

◆ png_free_default()

void PNGAPI png_free_default ( png_structp  png_ptr,
png_voidp  ptr 
)

Definition at line 542 of file pngmem.c.

◆ png_get_mem_ptr()

png_voidp PNGAPI png_get_mem_ptr ( png_structp  png_ptr)

Definition at line 634 of file pngmem.c.

◆ png_malloc()

png_voidp PNGAPI png_malloc ( png_structp  png_ptr,
png_uint_32  size 
)

Definition at line 457 of file pngmem.c.

◆ png_malloc_default()

png_voidp PNGAPI png_malloc_default ( png_structp  png_ptr,
png_uint_32  size 
)

Definition at line 475 of file pngmem.c.

◆ png_malloc_warn()

png_voidp PNGAPI png_malloc_warn ( png_structp  png_ptr,
png_uint_32  size 
)

Definition at line 571 of file pngmem.c.

◆ png_memcpy_check()

png_voidp PNGAPI png_memcpy_check ( png_structp  png_ptr,
png_voidp  s1,
png_voidp  s2,
png_uint_32  length 
)

Definition at line 587 of file pngmem.c.

◆ png_memset_check()

png_voidp PNGAPI png_memset_check ( png_structp  png_ptr,
png_voidp  s1,
int  value,
png_uint_32  length 
)

Definition at line 600 of file pngmem.c.

◆ png_set_mem_fn()

void PNGAPI png_set_mem_fn ( png_structp  png_ptr,
png_voidp  mem_ptr,
png_malloc_ptr  malloc_fn,
png_free_ptr  free_fn 
)

Definition at line 618 of file pngmem.c.