[gegl/soc-2011-seamless-clone] Work in gamma corrected RGB to get much better results!



commit 1ebf9e5b2ce615a7dcb057fc97e97696993dd1b6
Author: Barak Itkin <lightningismyname gmail com>
Date:   Fri Aug 5 00:11:56 2011 +0300

    Work in gamma corrected RGB to get much better results!

 operations/common/seamless-clone/seamless-clone.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/seamless-clone/seamless-clone.c b/operations/common/seamless-clone/seamless-clone.c
index f6d251d..56c6fe0 100644
--- a/operations/common/seamless-clone/seamless-clone.c
+++ b/operations/common/seamless-clone/seamless-clone.c
@@ -62,7 +62,7 @@ get_required_for_output (GeglOperation       *operation,
 static void
 prepare (GeglOperation *operation)
 {
-  Babl *format = babl_format ("RGBA float");
+  Babl *format = babl_format ("R'G'B'A float");
 
   g_debug ("seamless-clone.c::prepare");
   
@@ -92,7 +92,7 @@ sc_point_to_color_func (P2tRPoint *point,
   guint N = sl->points->len;
   gfloat *col_cpy;
 
-  Babl *format = babl_format ("RGBA float");
+  Babl *format = babl_format ("R'G'B'A float");
 
   if ((col_cpy = g_hash_table_lookup (cci->pt2col, point)) != NULL)
     {
@@ -154,7 +154,7 @@ process (GeglOperation       *operation,
   ScColorComputeInfo  cci;
   P2tRImageConfig     imcfg;
 
-  Babl               *format = babl_format("RGBA float");
+  Babl               *format = babl_format("R'G'B'A float");
 
   g_debug ("seamless-clone.c::process");
   printf ("The aux_rect is: ");
@@ -229,7 +229,7 @@ process (GeglOperation       *operation,
   g_debug ("Finish aux adding");
   
   /* TODO: Add the aux to the mesh rendering! */
-  gegl_buffer_set (output, &to_render, babl_format("RGBA float"), out_raw, GEGL_AUTO_ROWSTRIDE);
+  gegl_buffer_set (output, &to_render, babl_format("R'G'B'A float"), out_raw, GEGL_AUTO_ROWSTRIDE);
 
   /* Free memory, by the order things were allocated! */
   g_hash_table_destroy (cci.pt2col);



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