| colord Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define CD_TRANSFORM_ERROR #define CD_TRANSFORM_TYPE_ERROR enum CdTransformError; void (*_cd_transform_reserved1) (void); void (*_cd_transform_reserved2) (void); void (*_cd_transform_reserved3) (void); void (*_cd_transform_reserved4) (void); void (*_cd_transform_reserved5) (void); void (*_cd_transform_reserved6) (void); void (*_cd_transform_reserved7) (void); void (*_cd_transform_reserved8) (void); GQuark cd_transform_error_quark (void); CdTransform * cd_transform_new (void); gboolean cd_transform_process (CdTransform *transform,gpointer data_in,gpointer data_out,guint width,guint height,guint rowstride,GCancellable *cancellable,GError **error);
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.
typedef enum {
CD_TRANSFORM_ERROR_FAILED_TO_SETUP_TRANSFORM,
CD_TRANSFORM_ERROR_INVALID_COLORSPACE,
CD_TRANSFORM_ERROR_LAST
} CdTransformError;
The transform error code.
| Failed to setup transform | |
| Invalid colorspace | |
Since 0.1.34
GQuark cd_transform_error_quark (void);
Returns : |
An error quark. |
Since 0.1.34
CdTransform * cd_transform_new (void);
Creates a new CdTransform object.
Returns : |
a new CdTransform object. |
Since 0.1.34
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.
|
a CdTransform instance. |
|
the data buffer to convert |
|
the data buffer to return, which can be the same as data_in
|
|
the width of data_in
|
|
the height of data_in
|
|
the rowstride of data_in, typically the same as width
|
|
A GError, or NULL
|
|
A GCancellable, or NULL
|
Returns : |
TRUE if the pixels were successfully transformed. |
Since 0.1.34