From f45fc97eba624f0ffb7f1c50ec292d07c1db741e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 11 Jan 2017 04:54:36 +0100 Subject: [PATCH] app: add missing op .h files --- .../gimpoperationgrainextractlegacy.h | 61 ++++++++++++++++++ .../gimpoperationgrainmergelegacy.h | 61 ++++++++++++++++++ .../gimpoperationhardlightlegacy.h | 61 ++++++++++++++++++ .../gimpoperationsoftlightlegacy.h | 61 ++++++++++++++++++ .../layer-modes/gimpoperationgrainextract.h | 62 +++++++++++++++++++ .../layer-modes/gimpoperationgrainmerge.h | 62 +++++++++++++++++++ .../layer-modes/gimpoperationhardlight.h | 61 ++++++++++++++++++ .../layer-modes/gimpoperationsoftlight.h | 61 ++++++++++++++++++ 8 files changed, 490 insertions(+) create mode 100644 app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.h create mode 100644 app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.h create mode 100644 app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.h create mode 100644 app/operations/layer-modes-legacy/gimpoperationsoftlightlegacy.h create mode 100644 app/operations/layer-modes/gimpoperationgrainextract.h create mode 100644 app/operations/layer-modes/gimpoperationgrainmerge.h create mode 100644 app/operations/layer-modes/gimpoperationhardlight.h create mode 100644 app/operations/layer-modes/gimpoperationsoftlight.h diff --git a/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.h b/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.h new file mode 100644 index 0000000000..e639490ef7 --- /dev/null +++ b/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationgrain_extractmode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_H__ +#define __GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY (gimp_operation_grain_extract_legacy_get_type ()) +#define GIMP_OPERATION_GRAIN_EXTRACT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY, GimpOperationGrainExtractLegacy)) +#define GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY, GimpOperationGrainExtractLegacyClass)) +#define GIMP_IS_OPERATION_GRAIN_EXTRACT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY)) +#define GIMP_IS_OPERATION_GRAIN_EXTRACT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY)) +#define GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT_LEGACY, GimpOperationGrainExtractLegacyClass)) + + +typedef struct _GimpOperationGrainExtractLegacy GimpOperationGrainExtractLegacy; +typedef struct _GimpOperationGrainExtractLegacyClass GimpOperationGrainExtractLegacyClass; + +struct _GimpOperationGrainExtractLegacy +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationGrainExtractLegacyClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_grain_extract_legacy_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_grain_extract_legacy_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_GRAIN_EXTRACT_LEGACY_H__ */ diff --git a/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.h b/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.h new file mode 100644 index 0000000000..2cfe627087 --- /dev/null +++ b/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationgrain_mergemode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_GRAIN_MERGE_LEGACY_H__ +#define __GIMP_OPERATION_GRAIN_MERGE_LEGACY_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY (gimp_operation_grain_merge_legacy_get_type ()) +#define GIMP_OPERATION_GRAIN_MERGE_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY, GimpOperationGrainMergeLegacy)) +#define GIMP_OPERATION_GRAIN_MERGE_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY, GimpOperationGrainMergeLegacyClass)) +#define GIMP_IS_OPERATION_GRAIN_MERGE_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY)) +#define GIMP_IS_OPERATION_GRAIN_MERGE_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY)) +#define GIMP_OPERATION_GRAIN_MERGE_LEGACY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE_LEGACY, GimpOperationGrainMergeLegacyClass)) + + +typedef struct _GimpOperationGrainMergeLegacy GimpOperationGrainMergeLegacy; +typedef struct _GimpOperationGrainMergeLegacyClass GimpOperationGrainMergeLegacyClass; + +struct _GimpOperationGrainMergeLegacy +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationGrainMergeLegacyClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_grain_merge_legacy_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_grain_merge_legacy_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_GRAIN_MERGE_LEGACY_H__ */ diff --git a/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.h b/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.h new file mode 100644 index 0000000000..e04191f569 --- /dev/null +++ b/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationhardlightmode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_HARDLIGHT_LEGACY_H__ +#define __GIMP_OPERATION_HARDLIGHT_LEGACY_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY (gimp_operation_hardlight_legacy_get_type ()) +#define GIMP_OPERATION_HARDLIGHT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY, GimpOperationHardlightLegacy)) +#define GIMP_OPERATION_HARDLIGHT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY, GimpOperationHardlightLegacyClass)) +#define GIMP_IS_OPERATION_HARDLIGHT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY)) +#define GIMP_IS_OPERATION_HARDLIGHT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY)) +#define GIMP_OPERATION_HARDLIGHT_LEGACY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_HARDLIGHT_LEGACY, GimpOperationHardlightLegacyClass)) + + +typedef struct _GimpOperationHardlightLegacy GimpOperationHardlightLegacy; +typedef struct _GimpOperationHardlightLegacyClass GimpOperationHardlightLegacyClass; + +struct _GimpOperationHardlightLegacy +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationHardlightLegacyClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_hardlight_legacy_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_hardlight_legacy_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_HARDLIGHT_LEGACY_H__ */ diff --git a/app/operations/layer-modes-legacy/gimpoperationsoftlightlegacy.h b/app/operations/layer-modes-legacy/gimpoperationsoftlightlegacy.h new file mode 100644 index 0000000000..77efb3363d --- /dev/null +++ b/app/operations/layer-modes-legacy/gimpoperationsoftlightlegacy.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationsoftlightmode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_SOFTLIGHT_LEGACY_H__ +#define __GIMP_OPERATION_SOFTLIGHT_LEGACY_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY (gimp_operation_softlight_legacy_get_type ()) +#define GIMP_OPERATION_SOFTLIGHT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY, GimpOperationSoftlightLegacy)) +#define GIMP_OPERATION_SOFTLIGHT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY, GimpOperationSoftlightLegacyClass)) +#define GIMP_IS_OPERATION_SOFTLIGHT_LEGACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY)) +#define GIMP_IS_OPERATION_SOFTLIGHT_LEGACY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY)) +#define GIMP_OPERATION_SOFTLIGHT_LEGACY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_LEGACY, GimpOperationSoftlightLegacyClass)) + + +typedef struct _GimpOperationSoftlightLegacy GimpOperationSoftlightLegacy; +typedef struct _GimpOperationSoftlightLegacyClass GimpOperationSoftlightLegacyClass; + +struct _GimpOperationSoftlightLegacy +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationSoftlightLegacyClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_softlight_legacy_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_softlight_legacy_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_SOFTLIGHT_LEGACY_H__ */ diff --git a/app/operations/layer-modes/gimpoperationgrainextract.h b/app/operations/layer-modes/gimpoperationgrainextract.h new file mode 100644 index 0000000000..d65ff2a696 --- /dev/null +++ b/app/operations/layer-modes/gimpoperationgrainextract.h @@ -0,0 +1,62 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationgrain_extractmode.h + * Copyright (C) 2008 Michael Natterer + * 2017 Øyvind Kolås + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_GRAIN_EXTRACT_H__ +#define __GIMP_OPERATION_GRAIN_EXTRACT_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_GRAIN_EXTRACT (gimp_operation_grain_extract_get_type ()) +#define GIMP_OPERATION_GRAIN_EXTRACT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT, GimpOperationGrainExtract)) +#define GIMP_OPERATION_GRAIN_EXTRACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_GRAIN_EXTRACT, GimpOperationGrainExtractClass)) +#define GIMP_IS_OPERATION_GRAIN_EXTRACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT)) +#define GIMP_IS_OPERATION_GRAIN_EXTRACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_GRAIN_EXTRACT)) +#define GIMP_OPERATION_GRAIN_EXTRACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_GRAIN_EXTRACT, GimpOperationGrainExtractClass)) + + +typedef struct _GimpOperationGrainExtract GimpOperationGrainExtract; +typedef struct _GimpOperationGrainExtractClass GimpOperationGrainExtractClass; + +struct _GimpOperationGrainExtract +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationGrainExtractClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_grain_extract_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_grain_extract_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_GRAIN_EXTRACT_H__ */ diff --git a/app/operations/layer-modes/gimpoperationgrainmerge.h b/app/operations/layer-modes/gimpoperationgrainmerge.h new file mode 100644 index 0000000000..639c30ba2f --- /dev/null +++ b/app/operations/layer-modes/gimpoperationgrainmerge.h @@ -0,0 +1,62 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationgrain_mergemode.h + * Copyright (C) 2008 Michael Natterer + * 2017 Øyvind Kolås + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_GRAIN_MERGE_H__ +#define __GIMP_OPERATION_GRAIN_MERGE_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_GRAIN_MERGE (gimp_operation_grain_merge_get_type ()) +#define GIMP_OPERATION_GRAIN_MERGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE, GimpOperationGrainMerge)) +#define GIMP_OPERATION_GRAIN_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_GRAIN_MERGE, GimpOperationGrainMergeClass)) +#define GIMP_IS_OPERATION_GRAIN_MERGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE)) +#define GIMP_IS_OPERATION_GRAIN_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_GRAIN_MERGE)) +#define GIMP_OPERATION_GRAIN_MERGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_GRAIN_MERGE, GimpOperationGrainMergeClass)) + + +typedef struct _GimpOperationGrainMerge GimpOperationGrainMerge; +typedef struct _GimpOperationGrainMergeClass GimpOperationGrainMergeClass; + +struct _GimpOperationGrainMerge +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationGrainMergeClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_grain_merge_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_grain_merge_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_GRAIN_MERGE_H__ */ diff --git a/app/operations/layer-modes/gimpoperationhardlight.h b/app/operations/layer-modes/gimpoperationhardlight.h new file mode 100644 index 0000000000..8bf1853cb3 --- /dev/null +++ b/app/operations/layer-modes/gimpoperationhardlight.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationhardlightmode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_HARDLIGHT_H__ +#define __GIMP_OPERATION_HARDLIGHT_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_HARDLIGHT (gimp_operation_hardlight_get_type ()) +#define GIMP_OPERATION_HARDLIGHT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_HARDLIGHT, GimpOperationHardlight)) +#define GIMP_OPERATION_HARDLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_HARDLIGHT, GimpOperationHardlightClass)) +#define GIMP_IS_OPERATION_HARDLIGHT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_HARDLIGHT)) +#define GIMP_IS_OPERATION_HARDLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_HARDLIGHT)) +#define GIMP_OPERATION_HARDLIGHT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_HARDLIGHT, GimpOperationHardlightClass)) + + +typedef struct _GimpOperationHardlight GimpOperationHardlight; +typedef struct _GimpOperationHardlightClass GimpOperationHardlightClass; + +struct _GimpOperationHardlight +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationHardlightClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_hardlight_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_hardlight_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_HARDLIGHT_H__ */ diff --git a/app/operations/layer-modes/gimpoperationsoftlight.h b/app/operations/layer-modes/gimpoperationsoftlight.h new file mode 100644 index 0000000000..599b9acf3b --- /dev/null +++ b/app/operations/layer-modes/gimpoperationsoftlight.h @@ -0,0 +1,61 @@ +/* GIMP - The GNU Image Manipulation Program + * Copyright (C) 1995 Spencer Kimball and Peter Mattis + * + * gimpoperationsoftlightmode.h + * Copyright (C) 2008 Michael Natterer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __GIMP_OPERATION_SOFTLIGHT_H__ +#define __GIMP_OPERATION_SOFTLIGHT_H__ + + +#include "../gimpoperationpointlayermode.h" + + +#define GIMP_TYPE_OPERATION_SOFTLIGHT (gimp_operation_softlight_get_type ()) +#define GIMP_OPERATION_SOFTLIGHT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_MODE, GimpOperationSoftlight)) +#define GIMP_OPERATION_SOFTLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_OPERATION_SOFTLIGHT_MODE, GimpOperationSoftlightClass)) +#define GIMP_IS_OPERATION_SOFTLIGHT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_MODE)) +#define GIMP_IS_OPERATION_SOFTLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_OPERATION_SOFTLIGHT_MODE)) +#define GIMP_OPERATION_SOFTLIGHT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_OPERATION_SOFTLIGHT_MODE, GimpOperationSoftlightClass)) + + +typedef struct _GimpOperationSoftlight GimpOperationSoftlight; +typedef struct _GimpOperationSoftlightClass GimpOperationSoftlightClass; + +struct _GimpOperationSoftlight +{ + GimpOperationPointLayerMode parent_instance; +}; + +struct _GimpOperationSoftlightClass +{ + GimpOperationPointLayerModeClass parent_class; +}; + + +GType gimp_operation_softlight_get_type (void) G_GNUC_CONST; + +gboolean gimp_operation_softlight_process_pixels (gfloat *in, + gfloat *layer, + gfloat *mask, + gfloat *out, + gfloat opacity, + glong samples, + const GeglRectangle *roi, + gint level); + +#endif /* __GIMP_OPERATION_SOFTLIGHT_H__ */