[devel] Added png_get_io_chunk_type() and deprecated png_get_io_chunk_name()

This commit is contained in:
Glenn Randers-Pehrson
2011-01-22 08:51:19 -06:00
parent 5c5db5a55f
commit a63dbedead
6 changed files with 65 additions and 30 deletions

View File

@@ -1013,6 +1013,15 @@ png_get_io_state (png_structp png_ptr)
return png_ptr->io_state;
}
png_uint_32 PNGAPI
png_get_io_chunk_type (const_png_structp png_ptr)
{
return ((png_ptr->chunk_name[0] << 24) +
(png_ptr->chunk_name[1] << 16) +
(png_ptr->chunk_name[2] << 8) +
(png_ptr->chunk_name[3]));
}
png_const_bytep PNGAPI
png_get_io_chunk_name (png_structp png_ptr)
{