Lines Matching defs:chunk

194    /* First we make sure we have enough data for the 4 byte chunk name
195 * and the 4 byte chunk length before proceeding with decoding the
196 * chunk data. To fully decode each of these chunks, we also make
198 * end of every chunk (except IDAT, which is handled separately).
272 /* If we reach an IDAT chunk, this means we have read all of the
1066 png_warning(png_ptr, "tEXt chunk too large to fit in memory");
1141 png_warning(png_ptr, "Insufficient memory to store text chunk.");
1165 png_warning(png_ptr, "zTXt chunk too large to fit in memory");
1334 png_warning(png_ptr, "Insufficient memory to store text chunk.");
1356 png_warning(png_ptr, "iTXt chunk too large to fit in memory");
1447 png_warning(png_ptr, "Insufficient memory to store iTXt chunk.");
1453 * chunk. If there isn't a problem with the chunk itself (ie a bad chunk
1454 * name or a critical chunk), the chunk is (currently) silently ignored.
1473 png_chunk_error(png_ptr, "unknown critical chunk");
1483 png_unknown_chunk chunk;
1488 png_warning(png_ptr, "unknown chunk too large to fit in memory");
1494 png_strcpy((png_charp)chunk.name, (png_charp)png_ptr->chunk_name);
1495 chunk.data = (png_bytep)png_malloc(png_ptr, length);
1496 png_crc_read(png_ptr, chunk.data, length);
1497 chunk.size = length;
1501 /* callback to user unknown chunk handler */
1502 if ((*(png_ptr->read_user_chunk_fn)) (png_ptr, &chunk) <= 0)
1507 png_chunk_error(png_ptr, "unknown critical chunk");
1509 png_set_unknown_chunks(png_ptr, info_ptr, &chunk, 1);
1513 png_set_unknown_chunks(png_ptr, info_ptr, &chunk, 1);
1514 png_free(png_ptr, chunk.data);