aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma-method.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-21 06:59:49 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-21 06:59:49 +0200
commit9fcc72622f381b9bb0f2a59e238e4b9a30f4f5e2 (patch)
tree37a3292d7aa27c35ae85b0d54ad5c1e1d75b70a5 /src/libgamma-method.h
parentm + call adjustment method specific functions (diff)
downloadlibgamma-9fcc72622f381b9bb0f2a59e238e4b9a30f4f5e2.tar.gz
libgamma-9fcc72622f381b9bb0f2a59e238e4b9a30f4f5e2.tar.bz2
libgamma-9fcc72622f381b9bb0f2a59e238e4b9a30f4f5e2.tar.xz
add float and double variants of gamma_ramps
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libgamma-method.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/libgamma-method.h b/src/libgamma-method.h
index 4c34cb0..1f54f62 100644
--- a/src/libgamma-method.h
+++ b/src/libgamma-method.h
@@ -729,5 +729,81 @@ typedef struct libgamma_gamma_ramps64
} libgamma_gamma_ramps64_t;
+/**
+ * Gamma ramp structure for `float` gamma ramps
+ */
+typedef struct libgamma_gamma_rampsf
+{
+ /**
+ * The size of `red`
+ */
+ size_t red_size;
+
+ /**
+ * The size of `green`
+ */
+ size_t green_size;
+
+ /**
+ * The size of `blue`
+ */
+ size_t blue_size;
+
+ /**
+ * The gamma ramp for the red channel
+ */
+ float* red;
+
+ /**
+ * The gamma ramp for the green channel
+ */
+ float* green;
+
+ /**
+ * The gamma ramp for the blue channel
+ */
+ float* blue;
+
+} libgamma_gamma_rampsf_t;
+
+
+/**
+ * Gamma ramp structure for `double` gamma ramps
+ */
+typedef struct libgamma_gamma_rampsd
+{
+ /**
+ * The size of `red`
+ */
+ size_t red_size;
+
+ /**
+ * The size of `green`
+ */
+ size_t green_size;
+
+ /**
+ * The size of `blue`
+ */
+ size_t blue_size;
+
+ /**
+ * The gamma ramp for the red channel
+ */
+ float* red;
+
+ /**
+ * The gamma ramp for the green channel
+ */
+ float* green;
+
+ /**
+ * The gamma ramp for the blue channel
+ */
+ float* blue;
+
+} libgamma_gamma_rampsd_t;
+
+
#endif