Linux Standard Base Desktop Specification 4.1 | ||
---|---|---|
<<< Previous | Next >>> |
This interface shall register a custom read function
and allocate and initialize a png_struct structure.
For handling errors and warnings, as well as allocating and deallocating memory,
the application can pass functions as arguments.
Otherwise, the default error handling functions
stderr
and longjmp() will be used.
The error handling routine must not return to the calling routine.
The parameter user_png_ver
shall specify the version string of the library, which
must be PNG_LIBPNG_VER_STRING
.
The parameter error_ptr shall specify a user-defined structure for error functions.
The parameter error_fn shall specify an optional user-defined function for printing errors and aborting.
The parameter warn_fn shall specify an optional user-defined function for warnings.
The parameter mem_ptr shall specify the memory to allocate.
The parameter malloc_fn shall specify an optional user-defined memory allocation function.
The parameter free_fn shall specify an optional user-defined memory deallocation function.
You should define PNG_USER_MEM_SUPPORTED
before you call png_create_read_struct2().
<<< Previous | Home | Next >>> |
png_create_read_struct | Up | png_create_write_struct |