png_set_read_user_chunk_fn

Name

png_set_read_user_chunk_fn -- install custom callback function to handle unknown chunks in the input stream

Synopsis

#include <png.h>

void png_set_read_user_chunk_fn(png_structp png_ptr, png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn);

Description

This interface shall install a custom callback function to handle unknown chunks in the input stream.

The parameter png_ptr shall specify the PNG file.

The parameter user_chunk_ptr shall specify a user pointer obtainable with png_get_user_chunk_ptr().

The parameter read_user_chunk_fn shall specify the custom callback function.