app: s/Babl/const Babl/
This commit is contained in:
@ -71,7 +71,7 @@ static void gimp_operation_cage_transform_interpolate_source_coords_recu
|
|||||||
gfloat *coords);
|
gfloat *coords);
|
||||||
static GimpVector2 gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
static GimpVector2 gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
||||||
gfloat *coef,
|
gfloat *coef,
|
||||||
Babl *format_coef,
|
const Babl *format_coef,
|
||||||
GeglBuffer *coef_buf,
|
GeglBuffer *coef_buf,
|
||||||
GimpVector2 coords);
|
GimpVector2 coords);
|
||||||
GeglRectangle gimp_operation_cage_transform_get_cached_region (GeglOperation *operation,
|
GeglRectangle gimp_operation_cage_transform_get_cached_region (GeglOperation *operation,
|
||||||
@ -231,7 +231,7 @@ gimp_operation_cage_transform_process (GeglOperation *operation,
|
|||||||
GeglRectangle cage_bb;
|
GeglRectangle cage_bb;
|
||||||
gfloat *coords;
|
gfloat *coords;
|
||||||
gfloat *coef;
|
gfloat *coef;
|
||||||
Babl *format_coef;
|
const Babl *format_coef;
|
||||||
GimpVector2 plain_color;
|
GimpVector2 plain_color;
|
||||||
GeglBufferIterator *it;
|
GeglBufferIterator *it;
|
||||||
gint x, y;
|
gint x, y;
|
||||||
@ -541,7 +541,7 @@ gimp_operation_cage_transform_interpolate_source_coords_recurs (GimpOperationCag
|
|||||||
static GimpVector2
|
static GimpVector2
|
||||||
gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
||||||
gfloat *coef,
|
gfloat *coef,
|
||||||
Babl *format_coef,
|
const Babl *format_coef,
|
||||||
GeglBuffer *coef_buf,
|
GeglBuffer *coef_buf,
|
||||||
GimpVector2 coords)
|
GimpVector2 coords)
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@ struct _GimpOperationCageTransform
|
|||||||
GimpCageConfig *config;
|
GimpCageConfig *config;
|
||||||
gboolean fill_plain_color;
|
gboolean fill_plain_color;
|
||||||
|
|
||||||
Babl *format_coords;
|
const Babl *format_coords;
|
||||||
|
|
||||||
gdouble progress; /* bad hack */
|
gdouble progress; /* bad hack */
|
||||||
};
|
};
|
||||||
|
@ -179,7 +179,7 @@ gimp_operation_point_layer_mode_get_property (GObject *object,
|
|||||||
static void
|
static void
|
||||||
gimp_operation_point_layer_mode_prepare (GeglOperation *operation)
|
gimp_operation_point_layer_mode_prepare (GeglOperation *operation)
|
||||||
{
|
{
|
||||||
Babl *format = babl_format ("RaGaBaA float");
|
const Babl *format = babl_format ("RaGaBaA float");
|
||||||
|
|
||||||
gegl_operation_set_format (operation, "input", format);
|
gegl_operation_set_format (operation, "input", format);
|
||||||
gegl_operation_set_format (operation, "output", format);
|
gegl_operation_set_format (operation, "output", format);
|
||||||
@ -195,10 +195,10 @@ gimp_operation_point_layer_mode_get_new_color_lchab (GimpLayerModeEffects blend
|
|||||||
float in_lchab[3];
|
float in_lchab[3];
|
||||||
float lay_lchab[3];
|
float lay_lchab[3];
|
||||||
float new_lchab[3];
|
float new_lchab[3];
|
||||||
Babl *ragabaa_to_lchab = babl_fish (babl_format ("RaGaBaA float"),
|
const Babl *ragabaa_to_lchab = babl_fish (babl_format ("RaGaBaA float"),
|
||||||
babl_format ("CIE LCH(ab) float"));
|
babl_format ("CIE LCH(ab) float"));
|
||||||
Babl *lchab_to_ragabaa = babl_fish (babl_format ("CIE LCH(ab) float"),
|
const Babl *lchab_to_ragabaa = babl_fish (babl_format ("CIE LCH(ab) float"),
|
||||||
babl_format ("RaGaBaA float"));
|
babl_format ("RaGaBaA float"));
|
||||||
|
|
||||||
babl_process (ragabaa_to_lchab, (void*)in, (void*)in_lchab, 1);
|
babl_process (ragabaa_to_lchab, (void*)in, (void*)in_lchab, 1);
|
||||||
babl_process (ragabaa_to_lchab, (void*)lay, (void*)lay_lchab, 1);
|
babl_process (ragabaa_to_lchab, (void*)lay, (void*)lay_lchab, 1);
|
||||||
|
@ -1083,7 +1083,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct)
|
|||||||
{
|
{
|
||||||
GimpCageConfig *config = ct->config;
|
GimpCageConfig *config = ct->config;
|
||||||
GimpProgress *progress;
|
GimpProgress *progress;
|
||||||
Babl *format;
|
const Babl *format;
|
||||||
GeglNode *gegl;
|
GeglNode *gegl;
|
||||||
GeglNode *input;
|
GeglNode *input;
|
||||||
GeglNode *output;
|
GeglNode *output;
|
||||||
|
Reference in New Issue
Block a user