Home | History | Annotate | Download | only in libpng-1.2.19

Lines Matching refs:purpose

1574    png_charp purpose;
1601 purpose = (png_charp)png_malloc_warn(png_ptr, length + 1);
1602 if (purpose == NULL)
1604 png_warning(png_ptr, "No memory for pCAL purpose.");
1608 png_crc_read(png_ptr, (png_bytep)purpose, slength);
1612 png_free(png_ptr, purpose);
1616 purpose[slength] = 0x00; /* null terminate the last string */
1618 png_debug(3, "Finding end of pCAL purpose string\n");
1619 for (buf = purpose; *buf; buf++)
1622 endptr = purpose + slength;
1624 /* We need to have at least 12 bytes after the purpose string
1629 png_free(png_ptr, purpose);
1649 png_free(png_ptr, purpose);
1665 png_free(png_ptr, purpose);
1683 png_free(png_ptr, purpose);
1689 png_set_pCAL(png_ptr, info_ptr, purpose, X0, X1, type, nparams,
1692 png_free(png_ptr, purpose);