diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-05 01:55:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-05 01:55:46 +0200 |
commit | 836adff38dd3bd1279a34c784a42f76eda174e03 (patch) | |
tree | 079a3098de2f7f23752ee559bc859bac504db1ae /src/blueshift_vidmode.pyx | |
parent | demote -Wstrict-overflow to not run for Cython compiled files (diff) | |
download | blueshift-836adff38dd3bd1279a34c784a42f76eda174e03.tar.gz blueshift-836adff38dd3bd1279a34c784a42f76eda174e03.tar.bz2 blueshift-836adff38dd3bd1279a34c784a42f76eda174e03.tar.xz |
document
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/blueshift_vidmode.pyx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/blueshift_vidmode.pyx b/src/blueshift_vidmode.pyx index c591db5..606310e 100644 --- a/src/blueshift_vidmode.pyx +++ b/src/blueshift_vidmode.pyx @@ -20,15 +20,46 @@ from libc.stdlib cimport malloc, free cdef extern int blueshift_vidmode_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 error, otherwise the size of colours curves +''' + cdef extern int blueshift_vidmode_read(int use_crtc, unsigned short int* r_curve, unsigned short int* g_curve, unsigned short int* b_curve) +''' +Gets the current colour curves + +@param use_crtc The CRTC to use +@param r_gamma Storage location for the red colour curve +@param g_gamma Storage location for the green colour curve +@param b_gamma Storage location for the blue colour curve +@return Zero on success +''' + cdef extern int blueshift_vidmode_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_vidmode_close() +''' +Resource freeing stage of colour curve control +''' |