LIBJXL
|
#include <cms_interface.h>
Interface for performing colorspace transforms. The init
function can be called several times to instantiate several transforms, including before other transforms have been destroyed.
The call sequence for a given colorspace transform could look like the following:
jpegxl_cms_destroy_func JxlCmsInterface::destroy |
Cleans up the transform.
jpegxl_cms_get_buffer_func JxlCmsInterface::get_dst_buf |
Returns a buffer that can be used as output from run
.
jpegxl_cms_get_buffer_func JxlCmsInterface::get_src_buf |
Returns a buffer that can be used as input to run
.
jpegxl_cms_init_func JxlCmsInterface::init |
Prepares a colorspace transform as described in the documentation of jpegxl_cms_init_func.
void* JxlCmsInterface::init_data |
CMS-specific data that will be passed to init.
jpegxl_cms_run_func JxlCmsInterface::run |
Executes the transform on a batch of pixels, per jpegxl_cms_run_func.
void* JxlCmsInterface::set_fields_data |
CMS-specific data that will be passed to set_fields_from_icc.
jpegxl_cms_set_fields_from_icc_func JxlCmsInterface::set_fields_from_icc |
Populates a JxlColorEncoding from an ICC profile.