diff options
Diffstat (limited to 'src/libgamma-facade.h')
-rw-r--r-- | src/libgamma-facade.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/libgamma-facade.h b/src/libgamma-facade.h index f974206..8aae48f 100644 --- a/src/libgamma-facade.h +++ b/src/libgamma-facade.h @@ -240,17 +240,6 @@ unsigned char* libgamma_unhex_edid(const char* restrict edid); /** - * Set the gamma ramps for a CRTC, 16-bit gamma-depth 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_ramps(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps_t ramps); - -/** * Get current the gamma ramps for a CRTC, 16-bit gamma-depth version * * @param this The CRTC state @@ -261,17 +250,17 @@ int libgamma_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this, int libgamma_crtc_get_gamma_ramps(libgamma_crtc_state_t* restrict this, libgamma_gamma_ramps_t* restrict ramps); - /** - * Set the gamma ramps for a CRTC, 32-bit gamma-depth version + * Set the gamma ramps for a CRTC, 16-bit gamma-depth 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_ramps32(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps32_t ramps); +int libgamma_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this, + libgamma_gamma_ramps_t ramps); + /** * Get current the gamma ramps for a CRTC, 32-bit gamma-depth version @@ -284,17 +273,17 @@ int libgamma_crtc_set_gamma_ramps32(libgamma_crtc_state_t* restrict this, int libgamma_crtc_get_gamma_ramps32(libgamma_crtc_state_t* restrict this, libgamma_gamma_ramps32_t* restrict ramps); - /** - * Set the gamma ramps for a CRTC, 64-bit gamma-depth version + * Set the gamma ramps for a CRTC, 32-bit gamma-depth 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_ramps64(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps64_t ramps); +int libgamma_crtc_set_gamma_ramps32(libgamma_crtc_state_t* restrict this, + libgamma_gamma_ramps32_t ramps); + /** * Get current the gamma ramps for a CRTC, 64-bit gamma-depth version @@ -307,6 +296,17 @@ int libgamma_crtc_set_gamma_ramps64(libgamma_crtc_state_t* restrict this, 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, 64-bit gamma-depth 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_ramps64(libgamma_crtc_state_t* restrict this, + libgamma_gamma_ramps64_t ramps); + /** * Set the gamma ramps for a CRTC, `float` version @@ -332,26 +332,26 @@ int libgamma_crtc_get_gamma_rampsf(libgamma_crtc_state_t* restrict this, /** - * Set the gamma ramps for a CRTC, `double` version + * Get current the gamma ramps for a CRTC, `double` version * * @param this The CRTC state - * @parma ramps The gamma ramps to apply + * @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_set_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t ramps); +int libgamma_crtc_get_gamma_rampsd(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsd_t* restrict ramps); /** - * Get current the gamma ramps for a CRTC, `double` version + * Set the gamma ramps for a CRTC, `double` version * * @param this The CRTC state - * @parma ramps The gamma ramps to fill with the current values + * @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_get_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t* restrict ramps); +int libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t* restrict this, + libgamma_gamma_rampsd_t ramps); #endif |