mirror of https://github.com/GNOME/gimp.git
app: follow GEGL API changes
This commit is contained in:
parent
79efdabb62
commit
011b058945
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_addition_mode_process (GeglOperation *opera
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationAdditionMode, gimp_operation_addition_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_addition_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_anti_erase_mode_process (GeglOperation *ope
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationAntiEraseMode, gimp_operation_anti_erase_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_anti_erase_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_behind_mode_process (GeglOperation *operati
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationBehindMode, gimp_operation_behind_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_behind_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -36,7 +36,8 @@ static gboolean gimp_operation_brightness_contrast_process (GeglOperation
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationBrightnessContrast, gimp_operation_brightness_contrast,
|
||||
|
@ -100,7 +101,8 @@ gimp_operation_brightness_contrast_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpBrightnessContrastConfig *config = GIMP_BRIGHTNESS_CONTRAST_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_burn_mode_process (GeglOperation *operation
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationBurnMode, gimp_operation_burn_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_burn_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -44,7 +44,8 @@ static void gimp_operation_cage_coef_calc_set_property (GObject
|
|||
static GeglRectangle gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation);
|
||||
static gboolean gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
||||
GeglBuffer *output,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationCageCoefCalc, gimp_operation_cage_coef_calc,
|
||||
|
@ -191,12 +192,13 @@ gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation)
|
|||
static gboolean
|
||||
gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
||||
GeglBuffer *output,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationCageCoefCalc *occc = GIMP_OPERATION_CAGE_COEF_CALC (operation);
|
||||
GimpCageConfig *config = GIMP_CAGE_CONFIG (occc->config);
|
||||
|
||||
Babl *format = babl_format_n (babl_type ("float"), 2 * gimp_cage_config_get_n_points (config));
|
||||
const Babl *format = babl_format_n (babl_type ("float"), 2 * gimp_cage_config_get_n_points (config));
|
||||
|
||||
GeglBufferIterator *it;
|
||||
guint n_cage_vertices;
|
||||
|
@ -207,7 +209,7 @@ gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
|||
|
||||
n_cage_vertices = gimp_cage_config_get_n_points (config);
|
||||
|
||||
it = gegl_buffer_iterator_new (output, roi, format, GEGL_BUFFER_READWRITE);
|
||||
it = gegl_buffer_iterator_new (output, roi, format, GEGL_BUFFER_READWRITE, 0);
|
||||
|
||||
while (gegl_buffer_iterator_next (it))
|
||||
{
|
||||
|
|
|
@ -56,7 +56,8 @@ static gboolean gimp_operation_cage_transform_process (GeglO
|
|||
GeglBuffer *in_buf,
|
||||
GeglBuffer *aux_buf,
|
||||
GeglBuffer *out_buf,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
static void gimp_operation_cage_transform_interpolate_source_coords_recurs
|
||||
(GimpOperationCageTransform *oct,
|
||||
GeglBuffer *out_buf,
|
||||
|
@ -224,7 +225,8 @@ gimp_operation_cage_transform_process (GeglOperation *operation,
|
|||
GeglBuffer *in_buf,
|
||||
GeglBuffer *aux_buf,
|
||||
GeglBuffer *out_buf,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationCageTransform *oct = GIMP_OPERATION_CAGE_TRANSFORM (operation);
|
||||
GimpCageConfig *config = GIMP_CAGE_CONFIG (oct->config);
|
||||
|
@ -240,7 +242,7 @@ gimp_operation_cage_transform_process (GeglOperation *operation,
|
|||
guint n_cage_vertices;
|
||||
|
||||
/* pre-fill the out buffer with no-displacement coordinate */
|
||||
it = gegl_buffer_iterator_new (out_buf, roi, NULL, GEGL_BUFFER_WRITE);
|
||||
it = gegl_buffer_iterator_new (out_buf, roi, NULL, GEGL_BUFFER_WRITE, 0);
|
||||
cage_bb = gimp_cage_config_get_bounding_box (config);
|
||||
|
||||
point = &(g_array_index (config->cage_points, GimpCagePoint, 0));
|
||||
|
@ -460,6 +462,7 @@ gimp_operation_cage_transform_interpolate_source_coords_recurs (GimpOperationCag
|
|||
|
||||
gegl_buffer_set (out_buf,
|
||||
&rect,
|
||||
0,
|
||||
oct->format_coords,
|
||||
coords,
|
||||
GEGL_AUTO_ROWSTRIDE);
|
||||
|
@ -561,7 +564,7 @@ gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
|||
rect.x = coords.x;
|
||||
rect.y = coords.y;
|
||||
|
||||
gegl_buffer_get (coef_buf, 1, &rect, format_coef, coef, GEGL_AUTO_ROWSTRIDE);
|
||||
gegl_buffer_get (coef_buf, &rect, 1.0, format_coef, coef, GEGL_AUTO_ROWSTRIDE);
|
||||
#endif
|
||||
|
||||
for (i = 0; i < n_cage_vertices; i++)
|
||||
|
|
|
@ -36,7 +36,8 @@ static gboolean gimp_operation_color_balance_process (GeglOperation *opera
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationColorBalance, gimp_operation_color_balance,
|
||||
|
@ -116,7 +117,8 @@ gimp_operation_color_balance_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpColorBalanceConfig *config = GIMP_COLOR_BALANCE_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_color_erase_mode_process (GeglOperation *op
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationColorEraseMode, gimp_operation_color_erase_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_color_erase_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -35,7 +35,8 @@ static gboolean gimp_operation_colorize_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationColorize, gimp_operation_colorize,
|
||||
|
@ -80,7 +81,8 @@ gimp_operation_colorize_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpColorizeConfig *config = GIMP_COLORIZE_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_color_mode_process (GeglOperation *operatio
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationColorMode, gimp_operation_color_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_color_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -39,7 +39,8 @@ static gboolean gimp_operation_curves_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationCurves, gimp_operation_curves,
|
||||
|
@ -84,7 +85,8 @@ gimp_operation_curves_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpCurvesConfig *config = GIMP_CURVES_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_darken_only_mode_process (GeglOperation *op
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDarkenOnlyMode, gimp_operation_darken_only_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_darken_only_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -35,7 +35,8 @@ static gboolean gimp_operation_desaturate_process (GeglOperation *operati
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDesaturate, gimp_operation_desaturate,
|
||||
|
@ -80,7 +81,8 @@ gimp_operation_desaturate_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpDesaturateConfig *config = GIMP_DESATURATE_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_difference_mode_process (GeglOperation *ope
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDifferenceMode, gimp_operation_difference_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_difference_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_dissolve_mode_process (GeglOperation *opera
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDissolveMode, gimp_operation_dissolve_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_dissolve_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_divide_mode_process (GeglOperation *operati
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDivideMode, gimp_operation_divide_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_divide_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_dodge_mode_process (GeglOperation *operatio
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDodgeMode, gimp_operation_dodge_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_dodge_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_erase_mode_process (GeglOperation *operatio
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationEraseMode, gimp_operation_erase_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_erase_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_grain_extract_mode_process (GeglOperation *
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationGrainExtractMode, gimp_operation_grain_extract_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_grain_extract_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_grain_merge_mode_process (GeglOperation *op
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationGrainMergeMode, gimp_operation_grain_merge_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_grain_merge_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_hardlight_mode_process (GeglOperation *oper
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHardlightMode, gimp_operation_hardlight_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_hardlight_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_hue_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHueMode, gimp_operation_hue_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_hue_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -36,7 +36,8 @@ static gboolean gimp_operation_hue_saturation_process (GeglOperation *oper
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHueSaturation, gimp_operation_hue_saturation,
|
||||
|
@ -129,7 +130,8 @@ gimp_operation_hue_saturation_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpHueSaturationConfig *config = GIMP_HUE_SATURATION_CONFIG (point->config);
|
||||
|
|
|
@ -36,7 +36,8 @@ static gboolean gimp_operation_levels_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationLevels, gimp_operation_levels,
|
||||
|
@ -112,7 +113,8 @@ gimp_operation_levels_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpLevelsConfig *config = GIMP_LEVELS_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_lighten_only_mode_process (GeglOperation *o
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationLightenOnlyMode, gimp_operation_lighten_only_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_lighten_only_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_multiply_mode_process (GeglOperation *opera
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationMultiplyMode, gimp_operation_multiply_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_multiply_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_overlay_mode_process (GeglOperation *operat
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationOverlayMode, gimp_operation_overlay_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_overlay_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -89,7 +89,8 @@ static gboolean gimp_operation_point_layer_mode_process (GeglOperation
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationPointLayerMode, gimp_operation_point_layer_mode,
|
||||
|
@ -269,7 +270,8 @@ gimp_operation_point_layer_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *self = GIMP_OPERATION_POINT_LAYER_MODE (operation);
|
||||
GimpLayerModeEffects blend_mode = self->blend_mode;
|
||||
|
|
|
@ -36,7 +36,8 @@ static gboolean gimp_operation_posterize_process (GeglOperation *operation
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationPosterize, gimp_operation_posterize,
|
||||
|
@ -81,7 +82,8 @@ gimp_operation_posterize_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpPosterizeConfig *config = GIMP_POSTERIZE_CONFIG (point->config);
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_replace_mode_process (GeglOperation *operat
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationReplaceMode, gimp_operation_replace_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_replace_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_saturation_mode_process (GeglOperation *ope
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationSaturationMode, gimp_operation_saturation_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_saturation_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_screen_mode_process (GeglOperation *operati
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationScreenMode, gimp_operation_screen_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_screen_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_softlight_mode_process (GeglOperation *oper
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationSoftlightMode, gimp_operation_softlight_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_softlight_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_subtract_mode_process (GeglOperation *opera
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationSubtractMode, gimp_operation_subtract_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_subtract_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
|
@ -35,7 +35,8 @@ static gboolean gimp_operation_threshold_process (GeglOperation *operation
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationThreshold, gimp_operation_threshold,
|
||||
|
@ -80,7 +81,8 @@ gimp_operation_threshold_process (GeglOperation *operation,
|
|||
void *in_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointFilter *point = GIMP_OPERATION_POINT_FILTER (operation);
|
||||
GimpThresholdConfig *config = GIMP_THRESHOLD_CONFIG (point->config);
|
||||
|
|
|
@ -62,7 +62,8 @@ static void gimp_operation_tile_sink_set_property (GObject *object,
|
|||
|
||||
static gboolean gimp_operation_tile_sink_process (GeglOperation *operation,
|
||||
GeglBuffer *input,
|
||||
const GeglRectangle *result);
|
||||
const GeglRectangle *result,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationTileSink, gimp_operation_tile_sink,
|
||||
|
@ -192,7 +193,8 @@ gimp_operation_tile_sink_set_property (GObject *object,
|
|||
static gboolean
|
||||
gimp_operation_tile_sink_process (GeglOperation *operation,
|
||||
GeglBuffer *input,
|
||||
const GeglRectangle *result)
|
||||
const GeglRectangle *result,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationTileSink *self = GIMP_OPERATION_TILE_SINK (operation);
|
||||
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
|
||||
|
@ -217,8 +219,8 @@ gimp_operation_tile_sink_process (GeglOperation *operation,
|
|||
{
|
||||
GeglRectangle rect = { destPR.x, destPR.y, destPR.w, destPR.h };
|
||||
|
||||
gegl_buffer_get (input,
|
||||
1.0, &rect, format, destPR.data, destPR.rowstride);
|
||||
gegl_buffer_get (input, &rect, 1.0,
|
||||
format, destPR.data, destPR.rowstride);
|
||||
}
|
||||
|
||||
g_static_mutex_lock (&mutex);
|
||||
|
|
|
@ -57,7 +57,8 @@ static GeglRectangle
|
|||
gimp_operation_tile_source_get_bounding_box (GeglOperation *operation);
|
||||
static gboolean gimp_operation_tile_source_process (GeglOperation *operation,
|
||||
GeglBuffer *output,
|
||||
const GeglRectangle *result);
|
||||
const GeglRectangle *result,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationTileSource, gimp_operation_tile_source,
|
||||
|
@ -209,7 +210,8 @@ gimp_operation_tile_source_get_bounding_box (GeglOperation *operation)
|
|||
static gboolean
|
||||
gimp_operation_tile_source_process (GeglOperation *operation,
|
||||
GeglBuffer *output,
|
||||
const GeglRectangle *result)
|
||||
const GeglRectangle *result,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationTileSource *self = GIMP_OPERATION_TILE_SOURCE (operation);
|
||||
const Babl *format;
|
||||
|
@ -233,7 +235,7 @@ gimp_operation_tile_source_process (GeglOperation *operation,
|
|||
{
|
||||
GeglRectangle rect = { srcPR.x, srcPR.y, srcPR.w, srcPR.h };
|
||||
|
||||
gegl_buffer_set (output, &rect, format, srcPR.data, srcPR.rowstride);
|
||||
gegl_buffer_set (output, &rect, 0, format, srcPR.data, srcPR.rowstride);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -33,7 +33,8 @@ static gboolean gimp_operation_value_mode_process (GeglOperation *operatio
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi);
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationValueMode, gimp_operation_value_mode,
|
||||
|
@ -66,7 +67,8 @@ gimp_operation_value_mode_process (GeglOperation *operation,
|
|||
void *aux_buf,
|
||||
void *out_buf,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
|
|
Loading…
Reference in New Issue