From 904a592ff51ff40afd2a96fb492e47f3628d94a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 22 May 2014 00:36:14 +0200 Subject: do ramp translations in the façade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-linux-drm.c | 132 -------------------------------------------------- 1 file changed, 132 deletions(-) (limited to 'src/gamma-linux-drm.c') diff --git a/src/gamma-linux-drm.c b/src/gamma-linux-drm.c index f33e07a..ff41aa3 100644 --- a/src/gamma-linux-drm.c +++ b/src/gamma-linux-drm.c @@ -22,7 +22,6 @@ #include "gamma-linux-drm.h" #include "libgamma-error.h" -#include "gamma-helper.h" #include @@ -237,134 +236,3 @@ int libgamma_linux_drm_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this { } - - -/** - * Get current the gamma ramps for a CRTC, 32-bit gamma-depth version - * - * @param this The CRTC state - * @param 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_linux_drm_crtc_get_gamma_ramps32(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps32_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, 32, 16, - libgamma_linux_drm_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, 32-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_linux_drm_crtc_set_gamma_ramps32(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps32_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, 32, 16, - libgamma_linux_drm_crtc_set_gamma_ramps); -} - - - -/** - * Get current the gamma ramps for a CRTC, 64-bit gamma-depth version - * - * @param this The CRTC state - * @param 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_linux_drm_crtc_get_gamma_ramps64(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps64_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, 64, 16, - libgamma_linux_drm_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, 64-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_linux_drm_crtc_set_gamma_ramps64(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps64_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, 64, 16, - libgamma_linux_drm_crtc_set_gamma_ramps); -} - - - -/** - * Get current the gamma ramps for a CRTC, `float` version - * - * @param this The CRTC state - * @param 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_linux_drm_crtc_get_gamma_rampsf(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsf_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, -1, 16, - libgamma_linux_drm_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, `float` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_linux_drm_crtc_set_gamma_rampsf(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsf_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, -1, 16, - libgamma_linux_drm_crtc_set_gamma_ramps); -} - - -/** - * Get current the gamma ramps for a CRTC, `double` version - * - * @param this The CRTC state - * @param 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_linux_drm_crtc_get_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, -2, 16, - libgamma_linux_drm_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, `double` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_linux_drm_crtc_set_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, -2, 16, - libgamma_linux_drm_crtc_set_gamma_ramps); -} - -- cgit v1.2.3-70-g09d2