[gimp] app: Change the opacity param of _pixels to gfloat
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Change the opacity param of _pixels to gfloat
- Date: Wed, 19 Jun 2013 23:26:56 +0000 (UTC)
commit b10b1ba931adf23ff020f8a7912440e446b5a384
Author: Daniel Sabo <DanielSabo gmail com>
Date: Wed Jun 19 01:40:54 2013 -0700
app: Change the opacity param of _pixels to gfloat
All the internal math is float, and avoiding the conversion
from double is much faster when using SSE math.
app/operations/gimpoperationadditionmode.c | 4 ++--
app/operations/gimpoperationadditionmode.h | 2 +-
app/operations/gimpoperationantierasemode.c | 8 ++++----
app/operations/gimpoperationantierasemode.h | 2 +-
app/operations/gimpoperationbehindmode.c | 8 ++++----
app/operations/gimpoperationbehindmode.h | 2 +-
app/operations/gimpoperationburnmode.c | 6 +++---
app/operations/gimpoperationburnmode.h | 2 +-
app/operations/gimpoperationcolorerasemode.c | 4 ++--
app/operations/gimpoperationcolorerasemode.h | 2 +-
app/operations/gimpoperationcolormode.c | 4 ++--
app/operations/gimpoperationcolormode.h | 2 +-
app/operations/gimpoperationdarkenonlymode.c | 6 +++---
app/operations/gimpoperationdarkenonlymode.h | 2 +-
app/operations/gimpoperationdifferencemode.c | 4 ++--
app/operations/gimpoperationdifferencemode.h | 2 +-
app/operations/gimpoperationdissolvemode.c | 6 +++---
app/operations/gimpoperationdissolvemode.h | 2 +-
app/operations/gimpoperationdividemode.c | 6 +++---
app/operations/gimpoperationdividemode.h | 2 +-
app/operations/gimpoperationdodgemode.c | 6 +++---
app/operations/gimpoperationdodgemode.h | 2 +-
app/operations/gimpoperationerasemode.c | 8 ++++----
app/operations/gimpoperationerasemode.h | 2 +-
app/operations/gimpoperationgrainextractmode.c | 6 +++---
app/operations/gimpoperationgrainextractmode.h | 2 +-
app/operations/gimpoperationgrainmergemode.c | 4 ++--
app/operations/gimpoperationgrainmergemode.h | 2 +-
app/operations/gimpoperationhardlightmode.c | 4 ++--
app/operations/gimpoperationhardlightmode.h | 2 +-
app/operations/gimpoperationhuemode.c | 4 ++--
app/operations/gimpoperationhuemode.h | 2 +-
app/operations/gimpoperationlightenonlymode.c | 4 ++--
app/operations/gimpoperationlightenonlymode.h | 2 +-
app/operations/gimpoperationmultiplymode.c | 4 ++--
app/operations/gimpoperationmultiplymode.h | 2 +-
app/operations/gimpoperationnormalmode.c | 4 ++--
app/operations/gimpoperationnormalmode.h | 2 +-
app/operations/gimpoperationoverlaymode.c | 4 ++--
app/operations/gimpoperationoverlaymode.h | 2 +-
app/operations/gimpoperationreplacemode.c | 4 ++--
app/operations/gimpoperationreplacemode.h | 2 +-
app/operations/gimpoperationsaturationmode.c | 4 ++--
app/operations/gimpoperationsaturationmode.h | 2 +-
app/operations/gimpoperationscreenmode.c | 4 ++--
app/operations/gimpoperationscreenmode.h | 2 +-
app/operations/gimpoperationsoftlightmode.c | 4 ++--
app/operations/gimpoperationsoftlightmode.h | 2 +-
app/operations/gimpoperationsubtractmode.c | 4 ++--
app/operations/gimpoperationsubtractmode.h | 2 +-
app/operations/gimpoperationvaluemode.c | 4 ++--
app/operations/gimpoperationvaluemode.h | 2 +-
app/operations/operations-types.h | 2 +-
53 files changed, 91 insertions(+), 91 deletions(-)
---
diff --git a/app/operations/gimpoperationadditionmode.c b/app/operations/gimpoperationadditionmode.c
index ec1df76..2937076 100644
--- a/app/operations/gimpoperationadditionmode.c
+++ b/app/operations/gimpoperationadditionmode.c
@@ -75,7 +75,7 @@ gimp_operation_addition_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_addition_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_addition_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationadditionmode.h b/app/operations/gimpoperationadditionmode.h
index 6d0a5d7..f05c8c1 100644
--- a/app/operations/gimpoperationadditionmode.h
+++ b/app/operations/gimpoperationadditionmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_addition_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationantierasemode.c b/app/operations/gimpoperationantierasemode.c
index 0fef9d1..ea83d80 100644
--- a/app/operations/gimpoperationantierasemode.c
+++ b/app/operations/gimpoperationantierasemode.c
@@ -88,7 +88,7 @@ gimp_operation_anti_erase_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_anti_erase_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -98,7 +98,7 @@ gimp_operation_anti_erase_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -107,8 +107,8 @@ gimp_operation_anti_erase_mode_process_pixels (gfloat *in,
while (samples--)
{
- gdouble value = opacity;
- gint b;
+ gfloat value = opacity;
+ gint b;
if (has_mask)
value *= *mask;
diff --git a/app/operations/gimpoperationantierasemode.h b/app/operations/gimpoperationantierasemode.h
index c8cf811..faa8001 100644
--- a/app/operations/gimpoperationantierasemode.h
+++ b/app/operations/gimpoperationantierasemode.h
@@ -55,7 +55,7 @@ gboolean gimp_operation_anti_erase_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationbehindmode.c b/app/operations/gimpoperationbehindmode.c
index 68a2b24..28a22be 100644
--- a/app/operations/gimpoperationbehindmode.c
+++ b/app/operations/gimpoperationbehindmode.c
@@ -75,7 +75,7 @@ gimp_operation_behind_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_behind_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_behind_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -94,8 +94,8 @@ gimp_operation_behind_mode_process_pixels (gfloat *in,
while (samples--)
{
- gint b;
- gdouble value = opacity;
+ gfloat value = opacity;
+ gint b;
if (has_mask)
value *= *mask;
diff --git a/app/operations/gimpoperationbehindmode.h b/app/operations/gimpoperationbehindmode.h
index f7d822f..cfce982 100644
--- a/app/operations/gimpoperationbehindmode.h
+++ b/app/operations/gimpoperationbehindmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_behind_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationburnmode.c b/app/operations/gimpoperationburnmode.c
index 9e55414..d022abf 100644
--- a/app/operations/gimpoperationburnmode.c
+++ b/app/operations/gimpoperationburnmode.c
@@ -75,7 +75,7 @@ gimp_operation_burn_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_burn_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples, roi,
level);
}
@@ -85,7 +85,7 @@ gimp_operation_burn_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -136,4 +136,4 @@ gimp_operation_burn_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationburnmode.h b/app/operations/gimpoperationburnmode.h
index ccfd5f4..0f258d9 100644
--- a/app/operations/gimpoperationburnmode.h
+++ b/app/operations/gimpoperationburnmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_burn_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationcolorerasemode.c b/app/operations/gimpoperationcolorerasemode.c
index 79d1f9c..a108017 100644
--- a/app/operations/gimpoperationcolorerasemode.c
+++ b/app/operations/gimpoperationcolorerasemode.c
@@ -79,7 +79,7 @@ gimp_operation_color_erase_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_color_erase_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -89,7 +89,7 @@ gimp_operation_color_erase_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationcolorerasemode.h b/app/operations/gimpoperationcolorerasemode.h
index 0f9605b..bf83628 100644
--- a/app/operations/gimpoperationcolorerasemode.h
+++ b/app/operations/gimpoperationcolorerasemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_color_erase_mode_process_pixels (gfloat *in
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationcolormode.c b/app/operations/gimpoperationcolormode.c
index e5e9ae3..270111b 100644
--- a/app/operations/gimpoperationcolormode.c
+++ b/app/operations/gimpoperationcolormode.c
@@ -79,7 +79,7 @@ gimp_operation_color_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_color_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -89,7 +89,7 @@ gimp_operation_color_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationcolormode.h b/app/operations/gimpoperationcolormode.h
index e45905f..f99723f 100644
--- a/app/operations/gimpoperationcolormode.h
+++ b/app/operations/gimpoperationcolormode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_color_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationdarkenonlymode.c b/app/operations/gimpoperationdarkenonlymode.c
index 7e05816..4f2366a 100644
--- a/app/operations/gimpoperationdarkenonlymode.c
+++ b/app/operations/gimpoperationdarkenonlymode.c
@@ -75,7 +75,7 @@ gimp_operation_darken_only_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_darken_only_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_darken_only_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -135,4 +135,4 @@ gimp_operation_darken_only_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationdarkenonlymode.h b/app/operations/gimpoperationdarkenonlymode.h
index e6e7121..49945cb 100644
--- a/app/operations/gimpoperationdarkenonlymode.h
+++ b/app/operations/gimpoperationdarkenonlymode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_darken_only_mode_process_pixels (gfloat *in
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationdifferencemode.c b/app/operations/gimpoperationdifferencemode.c
index 35d4b0d..6c26ec2 100644
--- a/app/operations/gimpoperationdifferencemode.c
+++ b/app/operations/gimpoperationdifferencemode.c
@@ -75,7 +75,7 @@ gimp_operation_difference_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_difference_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_difference_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationdifferencemode.h b/app/operations/gimpoperationdifferencemode.h
index 8919043..d9851a2 100644
--- a/app/operations/gimpoperationdifferencemode.h
+++ b/app/operations/gimpoperationdifferencemode.h
@@ -55,7 +55,7 @@ gboolean gimp_operation_difference_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationdissolvemode.c b/app/operations/gimpoperationdissolvemode.c
index f143850..8c87a67 100644
--- a/app/operations/gimpoperationdissolvemode.c
+++ b/app/operations/gimpoperationdissolvemode.c
@@ -91,7 +91,7 @@ gimp_operation_dissolve_mode_process (GeglOperation *operation,
const GeglRectangle *result,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_dissolve_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
result, level);
}
@@ -101,7 +101,7 @@ gimp_operation_dissolve_mode_process_pixels (gfloat *in,
gfloat *aux,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *result,
gint level)
@@ -150,4 +150,4 @@ gimp_operation_dissolve_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationdissolvemode.h b/app/operations/gimpoperationdissolvemode.h
index 29a9c13..ecdb0a0 100644
--- a/app/operations/gimpoperationdissolvemode.h
+++ b/app/operations/gimpoperationdissolvemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_dissolve_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *result,
gint level);
diff --git a/app/operations/gimpoperationdividemode.c b/app/operations/gimpoperationdividemode.c
index 5959114..047fa64 100644
--- a/app/operations/gimpoperationdividemode.c
+++ b/app/operations/gimpoperationdividemode.c
@@ -75,7 +75,7 @@ gimp_operation_divide_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_divide_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_divide_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -136,4 +136,4 @@ gimp_operation_divide_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationdividemode.h b/app/operations/gimpoperationdividemode.h
index 6ca13b2..e9441d2 100644
--- a/app/operations/gimpoperationdividemode.h
+++ b/app/operations/gimpoperationdividemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_divide_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationdodgemode.c b/app/operations/gimpoperationdodgemode.c
index 8833e25..2323144 100644
--- a/app/operations/gimpoperationdodgemode.c
+++ b/app/operations/gimpoperationdodgemode.c
@@ -75,7 +75,7 @@ gimp_operation_dodge_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_dodge_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_dodge_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -136,4 +136,4 @@ gimp_operation_dodge_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationdodgemode.h b/app/operations/gimpoperationdodgemode.h
index 094440c..cc800c5 100644
--- a/app/operations/gimpoperationdodgemode.h
+++ b/app/operations/gimpoperationdodgemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_dodge_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationerasemode.c b/app/operations/gimpoperationerasemode.c
index 4debd08..d099092 100644
--- a/app/operations/gimpoperationerasemode.c
+++ b/app/operations/gimpoperationerasemode.c
@@ -88,7 +88,7 @@ gimp_operation_erase_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_erase_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -98,7 +98,7 @@ gimp_operation_erase_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -107,8 +107,8 @@ gimp_operation_erase_mode_process_pixels (gfloat *in,
while (samples--)
{
- gint b;
- gdouble value = opacity;
+ gfloat value = opacity;
+ gint b;
if (has_mask)
value *= (*mask);
diff --git a/app/operations/gimpoperationerasemode.h b/app/operations/gimpoperationerasemode.h
index d1286cb..b59afc1 100644
--- a/app/operations/gimpoperationerasemode.h
+++ b/app/operations/gimpoperationerasemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_erase_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationgrainextractmode.c b/app/operations/gimpoperationgrainextractmode.c
index b378272..3ae3b06 100644
--- a/app/operations/gimpoperationgrainextractmode.c
+++ b/app/operations/gimpoperationgrainextractmode.c
@@ -75,7 +75,7 @@ gimp_operation_grain_extract_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_grain_extract_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_grain_extract_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
@@ -136,4 +136,4 @@ gimp_operation_grain_extract_mode_process_pixels (gfloat *in,
}
return TRUE;
-}
\ No newline at end of file
+}
diff --git a/app/operations/gimpoperationgrainextractmode.h b/app/operations/gimpoperationgrainextractmode.h
index d7645de..a2e01f4 100644
--- a/app/operations/gimpoperationgrainextractmode.h
+++ b/app/operations/gimpoperationgrainextractmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_grain_extract_mode_process_pixels (gfloat *
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationgrainmergemode.c b/app/operations/gimpoperationgrainmergemode.c
index a5c0bc8..7bb8846 100644
--- a/app/operations/gimpoperationgrainmergemode.c
+++ b/app/operations/gimpoperationgrainmergemode.c
@@ -75,7 +75,7 @@ gimp_operation_grain_merge_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_grain_merge_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_grain_merge_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationgrainmergemode.h b/app/operations/gimpoperationgrainmergemode.h
index 763cde0..0322c1d 100644
--- a/app/operations/gimpoperationgrainmergemode.h
+++ b/app/operations/gimpoperationgrainmergemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_grain_merge_mode_process_pixels (gfloat *in
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationhardlightmode.c b/app/operations/gimpoperationhardlightmode.c
index 0b2b184..2a77435 100644
--- a/app/operations/gimpoperationhardlightmode.c
+++ b/app/operations/gimpoperationhardlightmode.c
@@ -75,7 +75,7 @@ gimp_operation_hardlight_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_hardlight_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_hardlight_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationhardlightmode.h b/app/operations/gimpoperationhardlightmode.h
index 2ef9112..d8bb399 100644
--- a/app/operations/gimpoperationhardlightmode.h
+++ b/app/operations/gimpoperationhardlightmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_hardlight_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationhuemode.c b/app/operations/gimpoperationhuemode.c
index 4609408..8651de3 100644
--- a/app/operations/gimpoperationhuemode.c
+++ b/app/operations/gimpoperationhuemode.c
@@ -79,7 +79,7 @@ gimp_operation_hue_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_hue_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples, roi,
level);
}
@@ -89,7 +89,7 @@ gimp_operation_hue_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationhuemode.h b/app/operations/gimpoperationhuemode.h
index e25a5b5..5277eea 100644
--- a/app/operations/gimpoperationhuemode.h
+++ b/app/operations/gimpoperationhuemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_hue_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationlightenonlymode.c b/app/operations/gimpoperationlightenonlymode.c
index 2096f8e..da2d28d 100644
--- a/app/operations/gimpoperationlightenonlymode.c
+++ b/app/operations/gimpoperationlightenonlymode.c
@@ -75,7 +75,7 @@ gimp_operation_lighten_only_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_lighten_only_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_lighten_only_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationlightenonlymode.h b/app/operations/gimpoperationlightenonlymode.h
index e4ac9db..7d3c779 100644
--- a/app/operations/gimpoperationlightenonlymode.h
+++ b/app/operations/gimpoperationlightenonlymode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_lighten_only_mode_process_pixels (gfloat *i
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationmultiplymode.c b/app/operations/gimpoperationmultiplymode.c
index b077eba..f56861d 100644
--- a/app/operations/gimpoperationmultiplymode.c
+++ b/app/operations/gimpoperationmultiplymode.c
@@ -75,7 +75,7 @@ gimp_operation_multiply_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_multiply_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_multiply_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationmultiplymode.h b/app/operations/gimpoperationmultiplymode.h
index 40dc73f..e04b38c 100644
--- a/app/operations/gimpoperationmultiplymode.h
+++ b/app/operations/gimpoperationmultiplymode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_multiply_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationnormalmode.c b/app/operations/gimpoperationnormalmode.c
index 0cdb862..3c0725c 100644
--- a/app/operations/gimpoperationnormalmode.c
+++ b/app/operations/gimpoperationnormalmode.c
@@ -156,7 +156,7 @@ gimp_operation_normal_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_normal_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -166,7 +166,7 @@ gimp_operation_normal_mode_process_pixels (gfloat *in,
gfloat *aux,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationnormalmode.h b/app/operations/gimpoperationnormalmode.h
index 0cfd26e..27174ee 100644
--- a/app/operations/gimpoperationnormalmode.h
+++ b/app/operations/gimpoperationnormalmode.h
@@ -55,7 +55,7 @@ gboolean gimp_operation_normal_mode_process_pixels (gfloat *in,
gfloat *aux,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationoverlaymode.c b/app/operations/gimpoperationoverlaymode.c
index 7cb3b6b..483aabe 100644
--- a/app/operations/gimpoperationoverlaymode.c
+++ b/app/operations/gimpoperationoverlaymode.c
@@ -75,7 +75,7 @@ gimp_operation_overlay_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_overlay_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_overlay_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationoverlaymode.h b/app/operations/gimpoperationoverlaymode.h
index 5585e50..6a76775 100644
--- a/app/operations/gimpoperationoverlaymode.h
+++ b/app/operations/gimpoperationoverlaymode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_overlay_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationreplacemode.c b/app/operations/gimpoperationreplacemode.c
index bfb593c..86f2999 100644
--- a/app/operations/gimpoperationreplacemode.c
+++ b/app/operations/gimpoperationreplacemode.c
@@ -74,7 +74,7 @@ gimp_operation_replace_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_replace_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -84,7 +84,7 @@ gimp_operation_replace_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationreplacemode.h b/app/operations/gimpoperationreplacemode.h
index a5274b2..b5db68b 100644
--- a/app/operations/gimpoperationreplacemode.h
+++ b/app/operations/gimpoperationreplacemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_replace_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationsaturationmode.c b/app/operations/gimpoperationsaturationmode.c
index d1df827..c18af8a 100644
--- a/app/operations/gimpoperationsaturationmode.c
+++ b/app/operations/gimpoperationsaturationmode.c
@@ -79,7 +79,7 @@ gimp_operation_saturation_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_saturation_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity,
samples, roi, level);
}
@@ -89,7 +89,7 @@ gimp_operation_saturation_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationsaturationmode.h b/app/operations/gimpoperationsaturationmode.h
index b79434e..3645488 100644
--- a/app/operations/gimpoperationsaturationmode.h
+++ b/app/operations/gimpoperationsaturationmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_saturation_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationscreenmode.c b/app/operations/gimpoperationscreenmode.c
index c071101..98c6249 100644
--- a/app/operations/gimpoperationscreenmode.c
+++ b/app/operations/gimpoperationscreenmode.c
@@ -75,7 +75,7 @@ gimp_operation_screen_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_screen_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_screen_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationscreenmode.h b/app/operations/gimpoperationscreenmode.h
index d5e7f6f..fa472a0 100644
--- a/app/operations/gimpoperationscreenmode.h
+++ b/app/operations/gimpoperationscreenmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_screen_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationsoftlightmode.c b/app/operations/gimpoperationsoftlightmode.c
index 67285ab..0369cb0 100644
--- a/app/operations/gimpoperationsoftlightmode.c
+++ b/app/operations/gimpoperationsoftlightmode.c
@@ -93,7 +93,7 @@ gimp_operation_softlight_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_softlight_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -103,7 +103,7 @@ gimp_operation_softlight_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationsoftlightmode.h b/app/operations/gimpoperationsoftlightmode.h
index 5ebedb0..e1310d9 100644
--- a/app/operations/gimpoperationsoftlightmode.h
+++ b/app/operations/gimpoperationsoftlightmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_softlight_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationsubtractmode.c b/app/operations/gimpoperationsubtractmode.c
index 6b7112c..5759ad5 100644
--- a/app/operations/gimpoperationsubtractmode.c
+++ b/app/operations/gimpoperationsubtractmode.c
@@ -75,7 +75,7 @@ gimp_operation_subtract_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_subtract_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -85,7 +85,7 @@ gimp_operation_subtract_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationsubtractmode.h b/app/operations/gimpoperationsubtractmode.h
index dc06455..6a53e1f 100644
--- a/app/operations/gimpoperationsubtractmode.h
+++ b/app/operations/gimpoperationsubtractmode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_subtract_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/gimpoperationvaluemode.c b/app/operations/gimpoperationvaluemode.c
index 5b6895f..7528572 100644
--- a/app/operations/gimpoperationvaluemode.c
+++ b/app/operations/gimpoperationvaluemode.c
@@ -79,7 +79,7 @@ gimp_operation_value_mode_process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- gdouble opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
+ gfloat opacity = GIMP_OPERATION_POINT_LAYER_MODE (operation)->opacity;
return gimp_operation_value_mode_process_pixels (in_buf, aux_buf, aux2_buf, out_buf, opacity, samples,
roi, level);
}
@@ -89,7 +89,7 @@ gimp_operation_value_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level)
diff --git a/app/operations/gimpoperationvaluemode.h b/app/operations/gimpoperationvaluemode.h
index 24ac196..c1104f3 100644
--- a/app/operations/gimpoperationvaluemode.h
+++ b/app/operations/gimpoperationvaluemode.h
@@ -54,7 +54,7 @@ gboolean gimp_operation_value_mode_process_pixels (gfloat *in,
gfloat *layer,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
diff --git a/app/operations/operations-types.h b/app/operations/operations-types.h
index b620ca1..2e624dc 100644
--- a/app/operations/operations-types.h
+++ b/app/operations/operations-types.h
@@ -55,7 +55,7 @@ typedef gboolean (*GimpLayerModeFunction)(gfloat *in,
gfloat *aux,
gfloat *mask,
gfloat *out,
- gdouble opacity,
+ gfloat opacity,
glong samples,
const GeglRectangle *roi,
gint level);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]