diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-21 06:59:49 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-21 06:59:49 +0200 |
commit | 9fcc72622f381b9bb0f2a59e238e4b9a30f4f5e2 (patch) | |
tree | 37a3292d7aa27c35ae85b0d54ad5c1e1d75b70a5 /src/libgamma-facade.h | |
parent | m + call adjustment method specific functions (diff) | |
download | libgamma-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 'src/libgamma-facade.h')
-rw-r--r-- | src/libgamma-facade.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/libgamma-facade.h b/src/libgamma-facade.h index 4d6969f..f974206 100644 --- a/src/libgamma-facade.h +++ b/src/libgamma-facade.h @@ -308,5 +308,51 @@ int libgamma_crtc_get_gamma_ramps64(libgamma_crtc_state_t* restrict this, libgamma_gamma_ramps64_t* restrict ramps); +/** + * Set the gamma ramps for a CRTC, `float` version + * + * @param this The CRTC state + * @parma ramps The gamma ramps to apply + * @return Zero on success, otherwise (negative) the value of an + * error identifier provided by this library + */ +int libgamma_crtc_set_gamma_rampsf(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsf_t ramps); + +/** + * Get current the gamma ramps for a CRTC, `float` version + * + * @param this The CRTC state + * @parma ramps The gamma ramps to fill with the current values + * @return Zero on success, otherwise (negative) the value of an + * error identifier provided by this library + */ +int libgamma_crtc_get_gamma_rampsf(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsf_t* restrict ramps); + + +/** + * Set the gamma ramps for a CRTC, `double` version + * + * @param this The CRTC state + * @parma ramps The gamma ramps to apply + * @return Zero on success, otherwise (negative) the value of an + * error identifier provided by this library + */ +int libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsd_t ramps); + +/** + * Get current the gamma ramps for a CRTC, `double` version + * + * @param this The CRTC state + * @parma ramps The gamma ramps to fill with the current values + * @return Zero on success, otherwise (negative) the value of an + * error identifier provided by this library + */ +int libgamma_crtc_get_gamma_rampsd(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsd_t* restrict ramps); + + #endif |