| Top |  |  |  |  | 
This object is a simple ICC transform that allows mapping of simple RGB spaces to other simple RGB spaces using one, two or three ICC profiles.
This object is not supposed to re-implement LCMS, and if you need anything more complicated then you are better off using lcms2 directly.
CdTransform *
cd_transform_new (void);
Creates a new CdTransform object.
Since 0.1.34
void cd_transform_set_input_icc (CdTransform *transform,CdIcc *icc);
Sets the input profile to use for the transform.
Since 1.0.0
void cd_transform_set_input_pixel_format (CdTransform *transform,CdPixelFormat pixel_format);
Sets the pixel format to use for the transform.
| transform | a CdTransform instance. | |
| pixel_format | The pixel format, e.g.  | 
Since 1.0.0
CdIcc *
cd_transform_get_input_icc (CdTransform *transform);
Gets the input profile to use for the transform.
Since 1.0.0
CdPixelFormat
cd_transform_get_input_pixel_format (CdTransform *transform);
Gets the pixel format to use for the transform.
Since 1.0.0
void cd_transform_set_output_icc (CdTransform *transform,CdIcc *icc);
Sets the output profile to use for the transform.
Since 1.0.0
void cd_transform_set_output_pixel_format (CdTransform *transform,CdPixelFormat pixel_format);
Sets the pixel format to use for the transform.
| transform | a CdTransform instance. | |
| pixel_format | The pixel format, e.g.  | 
Since 1.0.0
CdIcc *
cd_transform_get_output_icc (CdTransform *transform);
Gets the input profile to use for the transform.
Since 1.0.0
CdPixelFormat
cd_transform_get_output_pixel_format (CdTransform *transform);
Gets the pixel format to use for the transform.
Since 1.0.0
void cd_transform_set_abstract_icc (CdTransform *transform,CdIcc *icc);
Sets the abstract profile to use for the transform. This is typically only needed for soft-proofing.
Since 1.0.0
CdIcc *
cd_transform_get_abstract_icc (CdTransform *transform);
Gets the abstract profile to use for the transform.
Since 1.0.0
void cd_transform_set_rendering_intent (CdTransform *transform,CdRenderingIntent rendering_intent);
Sets the rendering intent to use for the transform.
| transform | a CdTransform instance. | |
| rendering_intent | the rendering intent, e.g.  | 
Since 1.0.0
CdRenderingIntent
cd_transform_get_rendering_intent (CdTransform *transform);
Gets the rendering intent to use for the transform.
Since 1.0.0
void cd_transform_set_bpc (CdTransform *transform,gboolean bpc);
Sets if black point compensation should be used for the transform.
Since 1.0.0
gboolean
cd_transform_get_bpc (CdTransform *transform);
Gets the rendering bpc to use for the transform.
Since 1.0.0
void cd_transform_set_max_threads (CdTransform *transform,guint max_threads);
Sets the maximum number of threads to be used for the transform.
| transform | a CdTransform instance. | |
| max_threads | number of threads, or 0 for the number of cores on the CPU | 
Since 1.1.1
guint
cd_transform_get_max_threads (CdTransform *transform);
Gets the maximum number of threads to be used for the transform.
Since 1.1.1
gboolean cd_transform_process (CdTransform *transform,gpointer data_in,gpointer data_out,guint width,guint height,guint rowstride,GCancellable *cancellable,GError **error);
Processes a block of data through the transform. Once the transform has been setup it is cached and only re-created if any of the formats, input, output or abstract profiles are changed.
| transform | a CdTransform instance. | |
| data_in | the data buffer to convert | |
| data_out | the data buffer to return, which can be the same as  | |
| width | the width of  | |
| height | the height of  | |
| rowstride | the rowstride of  | |
| cancellable | ||
| error | A  | 
Since 0.1.34