GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_icc.h File Reference

ICC profile parser. More...

Go to the source code of this file.

Functions

int gp_read_icc (gp_io *io, gp_storage *storage)
 Parses an ICC profile.
 

Detailed Description

ICC profile parser.

Definition in file gp_icc.h.

Function Documentation

◆ gp_read_icc()

int gp_read_icc ( gp_io * io,
gp_storage * storage )

Parses an ICC profile.

This function is internally called by the JPEG and TIFF loaders.

The ICC profile must start at the current offset in the I/O. After the function returns the offset in I/O has been advanced after the ICC profile.

The data are stored in the storage as key value pairs under the "ICC Profile" key.

Supported ICC keys are:

  • "Version"
  • "Created"
  • "Color Space"
  • "Class"
  • "Type"
  • "Primary Platform"
  • "Copyright"
  • "Description"
Parameters
ioA readable I/O.
storageA storage to store the data to.
Returns
Zero on success, non-zero on a parser failure.