Home | History | Annotate | Download | only in examples

Lines Matching full:profile

30 static png_byte no_profile[] = "no profile";
39 /* Initialize for error or no profile: */
65 png_bytep profile;
67 if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &profile,
72 memcpy(result, profile, *proflen);
75 png_error(png_ptr, "OOM allocating profile buffer");
95 png_bytep profile = extract(fp, &proflen);
97 if (profile != NULL && profile != no_profile)
123 if (fwrite(profile, proflen, 1, of) == 1 &&
135 fprintf(stderr, "%s: error writing profile\n", output);
150 free(profile);
153 else if (verbose && profile == no_profile)
154 printf("%s has no profile\n", filename);