diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-09 00:58:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-09 00:58:30 +0200 |
commit | 16ebd58f0c56f4a8491debc5af29848d7fe6fa60 (patch) | |
tree | 0b6fca42cb0d9c971f61641fa5b9c8e51d78f990 /src/calibrator.h | |
parent | m + gamma correction (diff) | |
download | crt-calibrator-16ebd58f0c56f4a8491debc5af29848d7fe6fa60.tar.gz crt-calibrator-16ebd58f0c56f4a8491debc5af29848d7fe6fa60.tar.bz2 crt-calibrator-16ebd58f0c56f4a8491debc5af29848d7fe6fa60.tar.xz |
output file + convergence + moiré
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/calibrator.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/calibrator.h b/src/calibrator.h index 7fed267..828d780 100644 --- a/src/calibrator.h +++ b/src/calibrator.h @@ -65,6 +65,43 @@ int draw_id(void); */ void draw_gamma(void); +/** + * Print a pattern on the screen that can be used when + * calibrating the convergence + */ +void draw_convergence(void); + +/** + * Print a pattern on the screen that can be used when + * calibrating the moiré cancellation + * + * @param gap The horizontal and vertical gap, in pixels, between the dots + * @param diagonal Whether to draw dots in a diagonal pattern + */ +void draw_moire(uint32_t gap, int diagonal); + +/** + * Analyse the monitors calibrations + * + * @return Zero on success, -1 on error + */ +int read_calibs(void); + +/** + * Apply the selected calibrations to the monitors + * + * @return Zero on success, -1 on error + */ +int apply_calibs(void); + +/** + * Print calibrations into a file + * + * @param f The file + * @return Zero on success, -1 on error + */ +int save_calibs(FILE* f); + #endif |