diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-13 02:32:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-13 02:32:08 +0200 |
commit | 8a866b051a7a6826c456d2cb91a7fd557cb2fd35 (patch) | |
tree | 35e0b2fcca2a1054f39755aee6da210a765f6536 /src/ramps.h | |
parent | Work on responses (diff) | |
download | coopgammad-8a866b051a7a6826c456d2cb91a7fd557cb2fd35.tar.gz coopgammad-8a866b051a7a6826c456d2cb91a7fd557cb2fd35.tar.bz2 coopgammad-8a866b051a7a6826c456d2cb91a7fd557cb2fd35.tar.xz |
Applying filters
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/ramps.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ramps.h b/src/ramps.h index 8261a61..d2b769f 100644 --- a/src/ramps.h +++ b/src/ramps.h @@ -81,3 +81,17 @@ size_t gamma_ramps_marshal(const union gamma_ramps* this, void* buf, size_t ramp */ size_t gamma_ramps_unmarshal(union gamma_ramps* this, const void* buf, size_t ramps_size); +/** + * Apply a ramp-trio on top of another ramp-trio + * + * @param dest The output for the resulting ramp-trio, must be initialised + * @param application The red, green and blue ramps, as one single raw array, + * of the filter that should be applied + * @param depth -1: `float` stops + * -2: `double` stops + * Other: the number of bits of each (integral) stop + * @param base The CLUT on top of which the new filter should be applied, + * this can be the same pointer as `dest` + */ +void apply(union gamma_ramps* dest, void* application, int depth, union gamma_ramps* base); + |