[gegl] operations: next time save before pushing...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: next time save before pushing...
- Date: Sat, 26 Mar 2016 14:21:06 +0000 (UTC)
commit 132cf96e03e1f3199191ef1e6d358f2ec373c05a
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 26 15:20:38 2016 +0100
operations: next time save before pushing...
operations/workshop/component-extract.c | 100 +++++++++++++++---------------
1 files changed, 50 insertions(+), 50 deletions(-)
---
diff --git a/operations/workshop/component-extract.c b/operations/workshop/component-extract.c
index 8b00d8c..6de8c6f 100644
--- a/operations/workshop/component-extract.c
+++ b/operations/workshop/component-extract.c
@@ -138,62 +138,62 @@ process (GeglOperation *operation,
switch (o->component)
{
- case GEGL_COMPONENT_EXTRACT_RGB_RED:
- case GEGL_COMPONENT_EXTRACT_HUE:
- case GEGL_COMPONENT_EXTRACT_CMYK_CYAN:
- case GEGL_COMPONENT_EXTRACT_YCBCR_Y:
- case GEGL_COMPONENT_EXTRACT_LAB_L:
- component_index = 0;
-
- if (o->component == GEGL_COMPONENT_EXTRACT_LAB_L)
- {
- max = 100.0;
- }
- break;
-
- case GEGL_COMPONENT_EXTRACT_RGB_GREEN:
- case GEGL_COMPONENT_EXTRACT_HSV_SATURATION:
- case GEGL_COMPONENT_EXTRACT_HSL_SATURATION:
- case GEGL_COMPONENT_EXTRACT_CMYK_MAGENTA:
- case GEGL_COMPONENT_EXTRACT_YCBCR_CB:
- case GEGL_COMPONENT_EXTRACT_LAB_A:
- case GEGL_COMPONENT_EXTRACT_ALPHA:
- component_index = 1;
+ case GEGL_COMPONENT_EXTRACT_RGB_RED:
+ case GEGL_COMPONENT_EXTRACT_HUE:
+ case GEGL_COMPONENT_EXTRACT_CMYK_CYAN:
+ case GEGL_COMPONENT_EXTRACT_YCBCR_Y:
+ case GEGL_COMPONENT_EXTRACT_LAB_L:
+ component_index = 0;
- if (o->component == GEGL_COMPONENT_EXTRACT_YCBCR_CB)
- {
- min = -0.5;
- max = 0.5;
- }
- else if (o->component == GEGL_COMPONENT_EXTRACT_LAB_A)
- {
- min = -128.0;
- max = 127;
- }
+ if (o->component == GEGL_COMPONENT_EXTRACT_LAB_L)
+ {
+ max = 100.0;
+ }
break;
- case GEGL_COMPONENT_EXTRACT_RGB_BLUE:
- case GEGL_COMPONENT_EXTRACT_HSV_VALUE:
- case GEGL_COMPONENT_EXTRACT_HSL_LIGHTNESS:
- case GEGL_COMPONENT_EXTRACT_CMYK_YELLOW:
- case GEGL_COMPONENT_EXTRACT_YCBCR_CR:
- case GEGL_COMPONENT_EXTRACT_LAB_B:
- component_index = 2;
+ case GEGL_COMPONENT_EXTRACT_RGB_GREEN:
+ case GEGL_COMPONENT_EXTRACT_HSV_SATURATION:
+ case GEGL_COMPONENT_EXTRACT_HSL_SATURATION:
+ case GEGL_COMPONENT_EXTRACT_CMYK_MAGENTA:
+ case GEGL_COMPONENT_EXTRACT_YCBCR_CB:
+ case GEGL_COMPONENT_EXTRACT_LAB_A:
+ case GEGL_COMPONENT_EXTRACT_ALPHA:
+ component_index = 1;
+
+ if (o->component == GEGL_COMPONENT_EXTRACT_YCBCR_CB)
+ {
+ min = -0.5;
+ max = 0.5;
+ }
+ else if (o->component == GEGL_COMPONENT_EXTRACT_LAB_A)
+ {
+ min = -128.0;
+ max = 127;
+ }
+ break;
- if (o->component == GEGL_COMPONENT_EXTRACT_YCBCR_CR)
- {
- min = -0.5;
- max = 0.5;
- }
- else if (o->component == GEGL_COMPONENT_EXTRACT_LAB_B)
- {
- min = -128.0;
- max = 127;
- }
+ case GEGL_COMPONENT_EXTRACT_RGB_BLUE:
+ case GEGL_COMPONENT_EXTRACT_HSV_VALUE:
+ case GEGL_COMPONENT_EXTRACT_HSL_LIGHTNESS:
+ case GEGL_COMPONENT_EXTRACT_CMYK_YELLOW:
+ case GEGL_COMPONENT_EXTRACT_YCBCR_CR:
+ case GEGL_COMPONENT_EXTRACT_LAB_B:
+ component_index = 2;
+
+ if (o->component == GEGL_COMPONENT_EXTRACT_YCBCR_CR)
+ {
+ min = -0.5;
+ max = 0.5;
+ }
+ else if (o->component == GEGL_COMPONENT_EXTRACT_LAB_B)
+ {
+ min = -128.0;
+ max = 127;
+ }
break;
- case GEGL_COMPONENT_EXTRACT_CMYK_KEY:
- component_index = 3;
+ case GEGL_COMPONENT_EXTRACT_CMYK_KEY:
+ component_index = 3;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]