Skip to content

Latest commit

 

History

History

icc_profiles

ICC Profiles

This directory contains precomputed ICC profiles embedded as byte arrays in C++ header files. These headers can be used by Lilliput to ensure color profiles are consistently available without the need for runtime file I/O. This is particularly useful for images extracted from video, which reference a color-space but do not include an ICC profile.

Generating ICC Profile Headers

To generate the ICC profile headers, you can use the provided Python script. This script reads ICC profile files and converts them into C-style byte arrays, which are then saved as header files in this directory.

Requirements

  • Python 3.x

Profiles

The following ICC profiles are included:

Script Usage

  1. Prepare the ICC Profile Files: Ensure you have the ICC profile files (.icc) available in the same directory as the script or provide the correct path to each file.

  2. Run the Script: Use the provided Python script to generate the header files: python3 icc_profile.py