Home | History | Annotate | Download | only in libpng16

Lines Matching defs:memory

24 /* Create a PNG structure for reading, and allocate any memory needed. */
37 /* Alternate create PNG structure for reading, and allocate any memory
927 /* Free all memory used in the read struct */
986 /* NOTE: the 'setjmp' buffer may still be allocated and the memory and error
992 /* Free all memory used by the read */
1009 * The extra was, apparently, unnecessary yet this hides memory leak bugs.
1331 return png_image_error(image, "png_image_read: out of memory");
1533 png_const_bytep memory = cp->memory;
1536 if (memory != NULL && size >= need)
1538 memcpy(out, memory, need);
1539 cp->memory = memory + need;
1548 png_error(png_ptr, "invalid memory read");
1553 png_const_voidp memory, png_size_t size)
1557 if (memory != NULL && size > 0)
1561 /* Now set the IO functions to read from the memory buffer and
1565 image->opaque->memory = png_voidcast(png_const_bytep, memory);