Linux Standard Base Desktop Specification 4.1 | ||
---|---|---|
<<< Previous | Next >>> |
This interface shall register a custom write 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.
On success, returns a pointer to the png_struct that was created.
On failure, returns NULL.
<<< Previous | Home | Next >>> |
png_create_write_struct | Up | png_data_freer |