app: rename GimpOperationPointLayerMode to GimpOperationLayerMode
and formatting cleanup.
This commit is contained in:
@ -27,8 +27,9 @@
|
||||
|
||||
#include "gimpoperationadditionlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationAdditionLegacy, gimp_operation_addition_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -63,10 +64,13 @@ gimp_operation_addition_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
const gboolean has_mask = mask != NULL;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
const gboolean has_mask = mask != NULL;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_ADDITION_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_ADDITION_LEGACY (gimp_operation_addition_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationAdditionLegacyClass GimpOperationAdditionLegacyClas
|
||||
|
||||
struct _GimpOperationAdditionLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationAdditionLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_addition_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_addition_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_addition_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_addition_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_ADDITION_LEGACY_H__ */
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "gimpoperationburnlegacy.h"
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationBurnLegacy, gimp_operation_burn_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -63,9 +63,12 @@ gimp_operation_burn_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_BURN_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_BURN_LEGACY (gimp_operation_burn_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationBurnLegacyClass GimpOperationBurnLegacyClass;
|
||||
|
||||
struct _GimpOperationBurnLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationBurnLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_burn_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_burn_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_burn_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_burn_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_BURN_LEGACY_H__ */
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDarkenOnlyLegacy, gimp_operation_darken_only_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -64,10 +64,12 @@ gimp_operation_darken_only_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_DARKEN_ONLY_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_DARKEN_ONLY_LEGACY (gimp_operation_darken_only_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationDarkenOnlyLegacyClass GimpOperationDarkenOnlyLegacy
|
||||
|
||||
struct _GimpOperationDarkenOnlyLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationDarkenOnlyLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_darken_only_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_darken_only_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_darken_only_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_darken_only_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_DARKEN_ONLY_LEGACY_H__ */
|
||||
|
@ -27,8 +27,10 @@
|
||||
|
||||
#include "gimpoperationdifferencelegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDifferenceLegacy, gimp_operation_difference_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
gimp_operation_difference_legacy_class_init (GimpOperationDifferenceLegacyClass *klass)
|
||||
@ -63,9 +65,12 @@ gimp_operation_difference_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_DIFFERENCE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_DIFFERENCE_LEGACY (gimp_operation_difference_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationDifferenceLegacyClass GimpOperationDifferenceLegacy
|
||||
|
||||
struct _GimpOperationDifferenceLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationDifferenceLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_difference_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_difference_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_difference_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_difference_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_DIFFERENCE_LEGACY_H__ */
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
#include "gimpoperationdividelegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDivideLegacy, gimp_operation_divide_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -63,9 +64,12 @@ gimp_operation_divide_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_DIVIDE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_DIVIDE_LEGACY (gimp_operation_divide_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationDivideLegacyClass GimpOperationDivideLegacyClass;
|
||||
|
||||
struct _GimpOperationDivideLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationDivideLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_divide_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_divide_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_divide_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_divide_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_DIVIDE_LEGACY_H__ */
|
||||
|
@ -23,13 +23,13 @@
|
||||
|
||||
#include <gegl-plugin.h>
|
||||
|
||||
#include "operations/operations-types.h"
|
||||
#include "../operations-types.h"
|
||||
|
||||
#include "gimpoperationdodgelegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDodgeLegacy, gimp_operation_dodge_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -64,9 +64,12 @@ gimp_operation_dodge_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_DODGE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_DODGE_LEGACY (gimp_operation_dodge_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationDodgeLegacyClass GimpOperationDodgeLegacyClass;
|
||||
|
||||
struct _GimpOperationDodgeLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationDodgeLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_dodge_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_dodge_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_dodge_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_dodge_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_DODGE_LEGACY_H__ */
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
#include "gimpoperationgrainextractlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationGrainExtractLegacy, gimp_operation_grain_extract_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -53,7 +54,6 @@ gimp_operation_grain_extract_legacy_init (GimpOperationGrainExtractLegacy *self)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
gimp_operation_grain_extract_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
@ -64,9 +64,12 @@ gimp_operation_grain_extract_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY (gimp_operation_grain_extract_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationGrainExtractLegacyClass GimpOperationGrainExtractLe
|
||||
|
||||
struct _GimpOperationGrainExtractLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationGrainExtractLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_grain_extract_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_grain_extract_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_grain_extract_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_grain_extract_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_H__ */
|
||||
|
@ -27,8 +27,10 @@
|
||||
|
||||
#include "gimpoperationgrainmergelegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationGrainMergeLegacy, gimp_operation_grain_merge_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
gimp_operation_grain_merge_legacy_class_init (GimpOperationGrainMergeLegacyClass *klass)
|
||||
@ -62,9 +64,12 @@ gimp_operation_grain_merge_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_GRAIN_MERGE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY (gimp_operation_grain_merge_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationGrainMergeLegacyClass GimpOperationGrainMergeLegacy
|
||||
|
||||
struct _GimpOperationGrainMergeLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationGrainMergeLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_grain_merge_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_grain_merge_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_grain_merge_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_grain_merge_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_GRAIN_MERGE_LEGACY_H__ */
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHardlightLegacy, gimp_operation_hardlight_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -55,18 +55,21 @@ gimp_operation_hardlight_legacy_init (GimpOperationHardlightLegacy *self)
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_operation_hardlight_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
gimp_operation_hardlight_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_HARDLIGHT_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY (gimp_operation_hardlight_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationHardlightLegacyClass GimpOperationHardlightLegacyCl
|
||||
|
||||
struct _GimpOperationHardlightLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationHardlightLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_hardlight_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_hardlight_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_hardlight_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_hardlight_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_HARDLIGHT_LEGACY_H__ */
|
||||
|
@ -31,8 +31,9 @@
|
||||
|
||||
#include "gimpoperationhsvcolorlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHsvColorLegacy, gimp_operation_hsv_color_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -58,18 +59,21 @@ gimp_operation_hsv_color_legacy_init (GimpOperationHsvColorLegacy *self)
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_operation_hsv_color_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
gimp_operation_hsv_color_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_HSV_COLOR_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_HSV_COLOR_LEGACY (gimp_operation_hsv_color_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationHsvColorLegacyClass GimpOperationHsvColorLegacyClas
|
||||
|
||||
struct _GimpOperationHsvColorLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationHsvColorLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_hsv_color_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_hsv_color_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_hsv_color_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_hsv_color_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_HSV_COLOR_LEGACY_H__ */
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHsvHueLegacy, gimp_operation_hsv_hue_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -68,9 +68,12 @@ gimp_operation_hsv_hue_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_HSV_HUE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_HSV_HUE_LEGACY (gimp_operation_hsv_hue_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationHsvHueLegacyClass GimpOperationHsvHueLegacyClass;
|
||||
|
||||
struct _GimpOperationHsvHueLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationHsvHueLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_hsv_hue_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_hsv_hue_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_hsv_hue_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_hsv_hue_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_HSV_HUE_LEGACY_H__ */
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHsvSaturationLegacy, gimp_operation_hsv_saturation_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -68,9 +68,12 @@ gimp_operation_hsv_saturation_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_HSV_SATURATION_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_HSV_SATURATION_LEGACY (gimp_operation_hsv_saturation_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationHsvSaturationLegacyClass GimpOperationHsvSaturation
|
||||
|
||||
struct _GimpOperationHsvSaturationLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationHsvSaturationLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_hsv_saturation_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_hsv_saturation_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_hsv_saturation_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_hsv_saturation_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_HSV_SATURATION_LEGACY_H__ */
|
||||
|
@ -31,8 +31,9 @@
|
||||
|
||||
#include "gimpoperationhsvvaluelegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationHsvValueLegacy, gimp_operation_hsv_value_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -58,18 +59,21 @@ gimp_operation_hsv_value_legacy_init (GimpOperationHsvValueLegacy *self)
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_operation_hsv_value_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
gimp_operation_hsv_value_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_HSV_VALUE_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_HSV_VALUE_LEGACY (gimp_operation_hsv_value_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationHsvValueLegacyClass GimpOperationHsvValueLegacyClas
|
||||
|
||||
struct _GimpOperationHsvValueLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationHsvValueLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_hsv_value_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_hsv_value_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_hsv_value_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_hsv_value_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_HSV_VALUE_LEGACY_H__ */
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationLightenOnlyLegacy, gimp_operation_lighten_only_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -64,9 +64,12 @@ gimp_operation_lighten_only_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_LIGHTEN_ONLY_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_LIGHTEN_ONLY_LEGACY (gimp_operation_lighten_only_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationLightenOnlyLegacyClass GimpOperationLightenOnlyLega
|
||||
|
||||
struct _GimpOperationLightenOnlyLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationLightenOnlyLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_lighten_only_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_lighten_only_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_lighten_only_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_lighten_only_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_LIGHTEN_ONLY_LEGACY_H__ */
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
#include "gimpoperationmultiplylegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationMultiplyLegacy, gimp_operation_multiply_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -54,19 +55,21 @@ gimp_operation_multiply_legacy_init (GimpOperationMultiplyLegacy *self)
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_operation_multiply_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
gimp_operation_multiply_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
void *layer_p,
|
||||
void *mask_p,
|
||||
void *out_p,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_MULTIPLY_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_MULTIPLY_LEGACY (gimp_operation_multiply_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationMultiplyLegacyClass GimpOperationMultiplyLegacyClas
|
||||
|
||||
struct _GimpOperationMultiplyLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationMultiplyLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_multiply_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_multiply_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_multiply_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_multiply_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_MULTIPLY_LEGACY_H__ */
|
||||
|
@ -27,8 +27,9 @@
|
||||
|
||||
#include "gimpoperationscreenlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationScreenLegacy, gimp_operation_screen_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
@ -63,9 +64,12 @@ gimp_operation_screen_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_SCREEN_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_SCREEN_LEGACY (gimp_operation_screen_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationScreenLegacyClass GimpOperationScreenLegacyClass;
|
||||
|
||||
struct _GimpOperationScreenLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationScreenLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_screen_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_screen_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_screen_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_screen_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_SCREEN_LEGACY_H__ */
|
||||
|
@ -27,12 +27,14 @@
|
||||
|
||||
#include "gimpoperationsoftlightlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationSoftlightLegacy, gimp_operation_softlight_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static const gchar* reference_xml = "<?xml version='1.0' encoding='UTF-8'?>"
|
||||
"<gegl>"
|
||||
"<node operation='gimp:softlight-mode'>"
|
||||
"<node operation='gimp:softlight-legacy'>"
|
||||
" <node operation='gegl:load'>"
|
||||
" <params>"
|
||||
" <param name='path'>B.png</param>"
|
||||
@ -81,9 +83,12 @@ gimp_operation_softlight_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_SOFTLIGHT_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY (gimp_operation_softlight_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationSoftlightLegacyClass GimpOperationSoftlightLegacyCl
|
||||
|
||||
struct _GimpOperationSoftlightLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationSoftlightLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_softlight_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_softlight_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_softlight_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_softlight_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_SOFTLIGHT_LEGACY_H__ */
|
||||
|
@ -27,8 +27,10 @@
|
||||
|
||||
#include "gimpoperationsubtractlegacy.h"
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationSubtractLegacy, gimp_operation_subtract_legacy,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
GIMP_TYPE_OPERATION_LAYER_MODE)
|
||||
|
||||
|
||||
static void
|
||||
gimp_operation_subtract_legacy_class_init (GimpOperationSubtractLegacyClass *klass)
|
||||
@ -52,7 +54,6 @@ gimp_operation_subtract_legacy_init (GimpOperationSubtractLegacy *self)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
gimp_operation_subtract_legacy_process (GeglOperation *op,
|
||||
void *in_p,
|
||||
@ -63,9 +64,12 @@ gimp_operation_subtract_legacy_process (GeglOperation *op,
|
||||
const GeglRectangle *roi,
|
||||
gint level)
|
||||
{
|
||||
GimpOperationPointLayerMode *layer_mode = (gpointer)op;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
gfloat *in = in_p, *out = out_p, *layer = layer_p, *mask = mask_p;
|
||||
GimpOperationLayerMode *layer_mode = (gpointer) op;
|
||||
gfloat *in = in_p;
|
||||
gfloat *out = out_p;
|
||||
gfloat *layer = layer_p;
|
||||
gfloat *mask = mask_p;
|
||||
gfloat opacity = layer_mode->opacity;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define __GIMP_OPERATION_SUBTRACT_LEGACY_H__
|
||||
|
||||
|
||||
#include "operations/layer-modes/gimpoperationpointlayermode.h"
|
||||
#include "operations/layer-modes/gimpoperationlayermode.h"
|
||||
|
||||
|
||||
#define GIMP_TYPE_OPERATION_SUBTRACT_LEGACY (gimp_operation_subtract_legacy_get_type ())
|
||||
@ -38,25 +38,25 @@ typedef struct _GimpOperationSubtractLegacyClass GimpOperationSubtractLegacyClas
|
||||
|
||||
struct _GimpOperationSubtractLegacy
|
||||
{
|
||||
GimpOperationPointLayerMode parent_instance;
|
||||
GimpOperationLayerMode parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpOperationSubtractLegacyClass
|
||||
{
|
||||
GimpOperationPointLayerModeClass parent_class;
|
||||
GimpOperationLayerModeClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_operation_subtract_legacy_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_operation_subtract_legacy_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gimp_operation_subtract_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
gboolean gimp_operation_subtract_legacy_process (GeglOperation *op,
|
||||
void *in,
|
||||
void *layer,
|
||||
void *mask,
|
||||
void *out,
|
||||
glong samples,
|
||||
const GeglRectangle *roi,
|
||||
gint level);
|
||||
|
||||
|
||||
#endif /* __GIMP_OPERATION_SUBTRACT_LEGACY_H__ */
|
||||
|
Reference in New Issue
Block a user