From 836adff38dd3bd1279a34c784a42f76eda174e03 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Apr 2014 01:55:46 +0200 Subject: document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_randr.pyx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/blueshift_randr.pyx') diff --git a/src/blueshift_randr.pyx b/src/blueshift_randr.pyx index 80caab1..a4e80bc 100644 --- a/src/blueshift_randr.pyx +++ b/src/blueshift_randr.pyx @@ -20,12 +20,43 @@ from libc.stdlib cimport malloc, free cdef extern int blueshift_randr_open(int use_screen, char* display) +''' +Start stage of colour curve control + +@param use_screen The screen to use +@param display The display to use, `NULL` for the current one +@return Zero on success +''' + cdef extern unsigned short int* blueshift_randr_read(int use_crtc) +''' +Gets the current colour curves + +@param use_crtc The CRTC to use +@return {the size of the red curve, *the red curve, + the size of the green curve, *the green curve, + the size of the blue curve, *the blue curve}, + needs to be free:d. `NULL` on error. +''' + cdef extern int blueshift_randr_apply(unsigned long long int use_crtcs, unsigned short int* r_curve, unsigned short int* g_curve, unsigned short int* b_curve) +''' +Apply stage of colour curve control + +@param use_crtcs Mask of CRTC:s to use +@param r_curve The red colour curve +@param g_curve The green colour curve +@param b_curve The blue colour curve +@return Zero on success +''' + cdef extern void blueshift_randr_close() +''' +Resource freeing stage of colour curve control +''' -- cgit v1.2.3-70-g09d2