mirror of https://github.com/GNOME/gimp.git
GimpOperationCageTransform: cleanup
This commit is contained in:
parent
9b3dbf9f3e
commit
25818716b3
|
@ -38,12 +38,12 @@ static void gimp_operation_cage_transform_set_property (G
|
||||||
guint property_id,
|
guint property_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
static void gimp_operation_cage_transform_prepare (GeglOperation *operation);
|
static void gimp_operation_cage_transform_prepare (GeglOperation *operation);
|
||||||
static gboolean gimp_operation_cage_transform_process (GeglOperation *operation,
|
static gboolean gimp_operation_cage_transform_process (GeglOperation *operation,
|
||||||
GeglBuffer *in_buf,
|
GeglBuffer *in_buf,
|
||||||
GeglBuffer *aux_buf,
|
GeglBuffer *aux_buf,
|
||||||
GeglBuffer *out_buf,
|
GeglBuffer *out_buf,
|
||||||
const GeglRectangle *roi);
|
const GeglRectangle *roi);
|
||||||
static void gimp_operation_cage_transform_interpolate_source_coords_recurs
|
static void gimp_operation_cage_transform_interpolate_source_coords_recurs
|
||||||
(GimpOperationCageTransform *oct,
|
(GimpOperationCageTransform *oct,
|
||||||
GeglBuffer *out_buf,
|
GeglBuffer *out_buf,
|
||||||
|
@ -56,15 +56,15 @@ static void gimp_operation_cage_transform_interpolate_source_coords_re
|
||||||
GimpCoords p3_d,
|
GimpCoords p3_d,
|
||||||
gint recursion_depth,
|
gint recursion_depth,
|
||||||
gfloat *coords);
|
gfloat *coords);
|
||||||
static GimpCoords gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
static GimpCoords gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
||||||
GeglBuffer *coef_buf,
|
GeglBuffer *coef_buf,
|
||||||
GimpCoords coords);
|
GimpCoords coords);
|
||||||
GeglRectangle gimp_operation_cage_transform_get_cached_region (GeglOperation *operation,
|
GeglRectangle gimp_operation_cage_transform_get_cached_region (GeglOperation *operation,
|
||||||
const GeglRectangle *roi);
|
const GeglRectangle *roi);
|
||||||
GeglRectangle gimp_operation_cage_transform_get_required_for_output (GeglOperation *operation,
|
GeglRectangle gimp_operation_cage_transform_get_required_for_output (GeglOperation *operation,
|
||||||
const gchar *input_pad,
|
const gchar *input_pad,
|
||||||
const GeglRectangle *roi);
|
const GeglRectangle *roi);
|
||||||
GeglRectangle gimp_operation_cage_get_bounding_box (GeglOperation *operation);
|
GeglRectangle gimp_operation_cage_transform_get_bounding_box (GeglOperation *operation);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GimpOperationCageTransform, gimp_operation_cage_transform,
|
G_DEFINE_TYPE (GimpOperationCageTransform, gimp_operation_cage_transform,
|
||||||
GEGL_TYPE_OPERATION_COMPOSER)
|
GEGL_TYPE_OPERATION_COMPOSER)
|
||||||
|
@ -92,19 +92,19 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
|
||||||
|
|
||||||
operation_class->prepare = gimp_operation_cage_transform_prepare;
|
operation_class->prepare = gimp_operation_cage_transform_prepare;
|
||||||
|
|
||||||
operation_class->get_required_for_output = gimp_operation_cage_transform_get_required_for_output;
|
operation_class->get_required_for_output = gimp_operation_cage_transform_get_required_for_output;
|
||||||
operation_class->get_cached_region = gimp_operation_cage_transform_get_cached_region;
|
operation_class->get_cached_region = gimp_operation_cage_transform_get_cached_region;
|
||||||
operation_class->no_cache = FALSE;
|
operation_class->no_cache = FALSE;
|
||||||
operation_class->get_bounding_box = gimp_operation_cage_get_bounding_box;
|
operation_class->get_bounding_box = gimp_operation_cage_transform_get_bounding_box;
|
||||||
|
|
||||||
filter_class->process = gimp_operation_cage_transform_process;
|
filter_class->process = gimp_operation_cage_transform_process;
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
GIMP_OPERATION_CAGE_TRANSFORM_PROP_CONFIG,
|
GIMP_OPERATION_CAGE_TRANSFORM_PROP_CONFIG,
|
||||||
g_param_spec_object ("config", NULL, NULL,
|
g_param_spec_object ("config", NULL, NULL,
|
||||||
GIMP_TYPE_CAGE_CONFIG,
|
GIMP_TYPE_CAGE_CONFIG,
|
||||||
G_PARAM_READWRITE |
|
G_PARAM_READWRITE |
|
||||||
G_PARAM_CONSTRUCT));
|
G_PARAM_CONSTRUCT));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -494,7 +494,7 @@ gimp_operation_cage_transform_get_required_for_output (GeglOperation *ope
|
||||||
}
|
}
|
||||||
|
|
||||||
GeglRectangle
|
GeglRectangle
|
||||||
gimp_operation_cage_get_bounding_box (GeglOperation *operation)
|
gimp_operation_cage_transform_get_bounding_box (GeglOperation *operation)
|
||||||
{
|
{
|
||||||
GeglRectangle result = *gegl_operation_source_get_bounding_box (operation, "input");
|
GeglRectangle result = *gegl_operation_source_get_bounding_box (operation, "input");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue