From 5a9b82bc5b9c5973ac9bda6c0ec4701c7fb88271 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 28 Aug 2014 15:32:01 +0200 Subject: add 8-bit ramps (good for software gamma) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-dummy.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/lib/gamma-dummy.h') diff --git a/src/lib/gamma-dummy.h b/src/lib/gamma-dummy.h index e64dc02..931e0ff 100644 --- a/src/lib/gamma-dummy.h +++ b/src/lib/gamma-dummy.h @@ -135,6 +135,29 @@ int libgamma_dummy_crtc_restore(libgamma_crtc_state_t* restrict this); int libgamma_dummy_get_crtc_information(libgamma_crtc_information_t* restrict this, libgamma_crtc_state_t* restrict crtc, int32_t fields); +/** + * Get current the gamma ramps for a CRTC, 8-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_dummy_crtc_get_gamma_ramps8(libgamma_crtc_state_t* restrict this, + libgamma_gamma_ramps8_t* restrict ramps); + +/** + * Set the gamma ramps for a CRTC, 8-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_dummy_crtc_set_gamma_ramps8(libgamma_crtc_state_t* restrict this, + libgamma_gamma_ramps8_t ramps); + + /** * Get current the gamma ramps for a CRTC, 16-bit gamma-depth version. * -- cgit v1.2.3-70-g09d2