diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-07 21:02:22 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-07 21:02:22 +0200 |
commit | 9a8b41ff8570fe25101cb8375903307439c2dbfa (patch) | |
tree | 1ac37bd2f813063c191b5281e4895f296524db4a /src/calibrator.h | |
parent | m (diff) | |
download | crt-calibrator-9a8b41ff8570fe25101cb8375903307439c2dbfa.tar.gz crt-calibrator-9a8b41ff8570fe25101cb8375903307439c2dbfa.tar.bz2 crt-calibrator-9a8b41ff8570fe25101cb8375903307439c2dbfa.tar.xz |
m + doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/calibrator.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/calibrator.h b/src/calibrator.h index 4e8ce5d..2c372c5 100644 --- a/src/calibrator.h +++ b/src/calibrator.h @@ -19,5 +19,43 @@ #define CRT_CALIBRATOR_CALIBRATOR_H +/** + * Draw bars in different shades of grey, red, green and blue + * used for calibrating the contrast and brightness + * + * @return Zero on success, -1 on error + */ +int draw_contrast_brightness(void); + +/** + * Draw a seven segment display + * + * @param fb The framebuffer to draw on + * @param colour The intensity of the least intense colour to use + * @param x The X component of the top left corner of the seven segment display + * @param y The Y component of the top left corner of the seven segment display + */ +void draw_digit(framebuffer_t* restrict fb, int colour, uint32_t x, uint32_t y); + +/** + * Manipulate a CRT controllers gamma ramps to display a specific digit + * for one of the seven segment display on only that CRT controller's + * monitors + * + * @param crtc The CRT controller information + * @param colour The intensity of the least intense colour in the seven segment display + * @param value The valud of the digit to display + * @return Zero on success, -1 on error + */ +int gamma_digit(drm_crtc_t* restrict crtc, int colour, size_t value); + +/** + * Draw an unique index on each monitor + * + * @return Zero on success, -1 on error + */ +int draw_id(void); + + #endif |