Getters

For all the getters if any parameters are NULL or the image does not have an acTl chunk, return is 0.

Note the png_get_next_frame* functions are different from other libpng getters because the values they return are only good for the current frame, not for the whole image.

png_get_acTl()

png_uint_32 png_get_acTl(png_structp png_ptr, png_infop info_ptr, png_uint_32* num_frames, png_uint_32* num_plays);

Retrieves the number of frames in the animated image and the number of times the animation should play.

png_get_num_frames()

png_uint_32 png_get_num_frames(png_structp png_ptr, png_infop info_ptr);

Retrieves the number of times the animation should play.

png_get_num_plays()

png_uint_32 png_get_num_plays(png_structp png_ptr, png_infop info_ptr);

Retrieves the number of iterations in the animated image.

png_first_frame_is_hidden()

png_byte png_first_frame_is_hidden(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_fcTl()

void png_get_next_frame_fcTl(png_structp png_ptr, png_infop info_ptr, png_uint_32* width, png_uint_32* height, png_uint_32* x_offset, png_uint_32* y_offset, png_uint_16* delay_num, png_uint_16* delay_den, png_byte* dispose_op, png_byte* blend_op);

Retrieves the contents of the entire fcTl chunk for the following frame. The contents are described in detail in the APNG Specification.

png_get_next_frame_width()

png_uint_32 png_get_next_frame_width(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_height()

png_uint_32 png_get_next_frame_height(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_x_offset()

png_uint_32 png_get_next_frame_x_offset(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_y_offset()

png_uint_32 png_get_next_frame_y_offset(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_delay_num()

png_uint_16 png_get_next_frame_delay_num(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_delay_den()

png_uint_16 png_get_next_frame_delay_den(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_dispose_op()

png_byte png_get_next_frame_dispose_op(png_structp png_ptr, png_infop info_ptr);

png_get_next_frame_blend_op()

png_byte frame(png_structp png_ptr, png_infop info_ptr);