[gegl] some comments



commit f97d50a7f4be516865ad6e0f6deba98139e3b675
Author: Victor Oliveira <victormatheus gmail com>
Date:   Sun Jun 17 18:20:28 2012 -0700

    some comments

 gegl/opencl/gegl-cl-color-kernel.h |    8 ++++++--
 gegl/opencl/gegl-cl-color.c        |    6 ++++++
 gegl/opencl/gegl-cl-init.c         |    5 +++++
 3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-color-kernel.h b/gegl/opencl/gegl-cl-color-kernel.h
index 553192e..2350d42 100644
--- a/gegl/opencl/gegl-cl-color-kernel.h
+++ b/gegl/opencl/gegl-cl-color-kernel.h
@@ -16,9 +16,13 @@
  * Copyright 2012 Victor Oliveira (victormatheus gmail com)
  */
 
+/* This is almost a copy-paste from babl/base color conversion functions
+
+   XXX: This code is very hard to maintain and keep in sync with BABL, we should
+        think in something better
+*/
+
 static const char* kernel_color_source =
-"/* This is almost a copy-paste from babl/base conversion functions in RGBA space */      \n"
-"                                                                                         \n"
 "/* Alpha threshold used in the reference implementation for                              \n"
 " * un-pre-multiplication of color data:                                                  \n"
 " *                                                                                       \n"
diff --git a/gegl/opencl/gegl-cl-color.c b/gegl/opencl/gegl-cl-color.c
index 57a8027..801d462 100644
--- a/gegl/opencl/gegl-cl-color.c
+++ b/gegl/opencl/gegl-cl-color.c
@@ -16,6 +16,12 @@
  * Copyright 2012 Victor Oliveira (victormatheus gmail com)
  */
 
+
+/* Here we have implemented in OpenCL a subset of color space conversions provided by BABL
+   that are commonly used. For now there is no support for conversions that need a intermediate
+   representation (ex: A->B, B->C, C->D), just among two color spaces.
+*/
+
 #include "config.h"
 
 #include "gegl.h"
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 120b8c7..4d9eb6b 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -16,6 +16,11 @@
  * Copyright 2012 Victor Oliveira (victormatheus gmail com)
  */
 
+/* OpenCL Initialization
+   The API is stubbed out so we detect if OpenCL libraries are available
+   in runtime.
+*/
+
 #include "config.h"
 
 #define __GEGL_CL_INIT_MAIN__



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