[gegl] operations: stretch-contrast works on sRGB



commit a34fe801a07024b47e73f5d9b7775c169e9e7660
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Thu Oct 24 15:52:25 2013 +0200

    operations: stretch-contrast works on sRGB

 operations/common/stretch-contrast.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/operations/common/stretch-contrast.c b/operations/common/stretch-contrast.c
index 3798909..caa0400 100644
--- a/operations/common/stretch-contrast.c
+++ b/operations/common/stretch-contrast.c
@@ -38,7 +38,7 @@ buffer_get_min_max (GeglBuffer *buffer,
   gfloat tmax = -G_MAXFLOAT;
 
   GeglBufferIterator *gi;
-  gi = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("RGB float"),
+  gi = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("R'G'B' float"),
                                  GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (gi))
@@ -65,8 +65,8 @@ buffer_get_min_max (GeglBuffer *buffer,
 
 static void prepare (GeglOperation *operation)
 {
-  gegl_operation_set_format (operation, "input", babl_format ("RGBA float"));
-  gegl_operation_set_format (operation, "output", babl_format ("RGBA float"));
+  gegl_operation_set_format (operation, "input", babl_format ("R'G'B'A float"));
+  gegl_operation_set_format (operation, "output", babl_format ("R'G'B'A float"));
 }
 
 static GeglRectangle
@@ -378,10 +378,10 @@ process (GeglOperation       *operation,
     return TRUE;
   }
 
-  gi = gegl_buffer_iterator_new (input, result, 0, babl_format ("RGBA float"),
+  gi = gegl_buffer_iterator_new (input, result, 0, babl_format ("R'G'B'A float"),
                                  GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
-  gegl_buffer_iterator_add (gi, output, result, 0, babl_format ("RGBA float"),
+  gegl_buffer_iterator_add (gi, output, result, 0, babl_format ("R'G'B'A float"),
                             GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (gi))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]