diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-10 19:55:11 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-10 19:58:19 +0200 |
commit | f3516bae2c5b5a5f34cfb6227256e907e7d73807 (patch) | |
tree | d656df36b083d6ae562753dd165f0151bdc007d6 /src/output.h | |
parent | whitespace (diff) | |
download | coopgammad-f3516bae2c5b5a5f34cfb6227256e907e7d73807.tar.gz coopgammad-f3516bae2c5b5a5f34cfb6227256e907e7d73807.tar.bz2 coopgammad-f3516bae2c5b5a5f34cfb6227256e907e7d73807.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/output.h | 47 |
1 files changed, 9 insertions, 38 deletions
diff --git a/src/output.h b/src/output.h index b84ea22..d3b39ec 100644 --- a/src/output.h +++ b/src/output.h @@ -19,43 +19,8 @@ #include <libgamma.h> +#include "ramps.h" -/** - * Gamma ramps union for all - * lbigamma gamma ramps types - */ -union gamma_ramps -{ - /** - * Ramps with 8-bit value - */ - libgamma_gamma_ramps8_t u8; - - /** - * Ramps with 16-bit value - */ - libgamma_gamma_ramps16_t u16; - - /** - * Ramps with 32-bit value - */ - libgamma_gamma_ramps32_t u32; - - /** - * Ramps with 64-bit value - */ - libgamma_gamma_ramps64_t u64; - - /** - * Ramps with `float` value - */ - libgamma_gamma_rampsf_t f; - - /** - * Ramps with `double` value - */ - libgamma_gamma_rampsd_t d; -}; /** @@ -79,16 +44,22 @@ struct output size_t red_size; /** - * The number of stops in the red gamma ramp + * The number of stops in the green gamma ramp */ size_t green_size; /** - * The number of stops in the red gamma ramp + * The number of stops in the blue gamma ramp */ size_t blue_size; /** + * `.red_size + .green_size + .blue_size` + * multiplied by the byte-size of each stop + */ + size_t ramps_size; + + /** * Whether gamma ramps are supported */ enum libgamma_decision supported; |