Lines Matching defs:purpose
1558 png_charp purpose;
1585 purpose = (png_charp)png_malloc_warn(png_ptr, length + 1);
1586 if (purpose == NULL)
1588 png_warning(png_ptr, "No memory for pCAL purpose.");
1592 png_crc_read(png_ptr, (png_bytep)purpose, slength);
1596 png_free(png_ptr, purpose);
1600 purpose[slength] = 0x00; /* null terminate the last string */
1602 png_debug(3, "Finding end of pCAL purpose string\n");
1603 for (buf = purpose; *buf; buf++)
1606 endptr = purpose + slength;
1608 /* We need to have at least 12 bytes after the purpose string
1613 png_free(png_ptr, purpose);
1633 png_free(png_ptr, purpose);
1649 png_free(png_ptr, purpose);
1667 png_free(png_ptr, purpose);
1673 png_set_pCAL(png_ptr, info_ptr, purpose, X0, X1, type, nparams,
1676 png_free(png_ptr, purpose);