Top |
GimpColorTransform * | gimp_color_transform_new () |
GimpColorTransform * | gimp_color_transform_new_proofing () |
void | gimp_color_transform_process_pixels () |
void | gimp_color_transform_process_buffer () |
gboolean | gimp_color_transform_can_gegl_copy () |
GimpColorTransform * gimp_color_transform_new (GimpColorProfile *src_profile
,const Babl *src_format
,GimpColorProfile *dest_profile
,const Babl *dest_format
,GimpColorRenderingIntent rendering_intent
,GimpColorTransformFlags flags
);
This function creates an color transform.
src_profile |
the source GimpColorProfile |
|
src_format |
the source Babl format |
|
dest_profile |
the destination GimpColorProfile |
|
dest_format |
the destination Babl format |
|
rendering_intent |
the rendering intent |
|
flags |
transform flags |
the GimpColorTransform, or NULL
if no transform is needed
to convert between pixels of src_profile
and dest_profile
.
Since: 2.10
GimpColorTransform * gimp_color_transform_new_proofing (GimpColorProfile *src_profile
,const Babl *src_format
,GimpColorProfile *dest_profile
,const Babl *dest_format
,GimpColorProfile *proof_profile
,GimpColorRenderingIntent proof_intent
,GimpColorRenderingIntent display_intent
,GimpColorTransformFlags flags
);
This function creates a simulation / proofing color transform.
src_profile |
the source GimpColorProfile |
|
src_format |
the source Babl format |
|
dest_profile |
the destination GimpColorProfile |
|
dest_format |
the destination Babl format |
|
proof_profile |
the proof GimpColorProfile |
|
proof_intent |
the proof intent |
|
display_intent |
the display intent |
|
flags |
transform flags |
Since: 2.10
void gimp_color_transform_process_pixels (GimpColorTransform *transform
,const Babl *src_format
,gconstpointer src_pixels
,const Babl *dest_format
,gpointer dest_pixels
,gsize length
);
This function transforms a contiguous line of pixels.
transform |
a GimpColorTransform |
|
src_format |
Babl format of |
|
src_pixels |
pointer to the source pixels |
|
dest_format |
Babl format of |
|
dest_pixels |
pointer to the destination pixels |
|
length |
number of pixels to process |
Since: 2.10
void gimp_color_transform_process_buffer (GimpColorTransform *transform
,GeglBuffer *src_buffer
,const GeglRectangle *src_rect
,GeglBuffer *dest_buffer
,const GeglRectangle *dest_rect
);
This function transforms buffer into another buffer.
transform |
a GimpColorTransform |
|
src_buffer |
source GeglBuffer |
|
src_rect |
rectangle in |
|
dest_buffer |
destination GeglBuffer |
|
dest_rect |
rectangle in |
Since: 2.10
gboolean gimp_color_transform_can_gegl_copy (GimpColorProfile *src_profile
,GimpColorProfile *dest_profile
);
This function checks if a GimpColorTransform is needed at all.
TRUE
if pixels can be correctly converted between
src_profile
and dest_profile
by simply using
gegl_buffer_copy()
, babl_process()
or similar.
Since: 2.10