From 1ea4a4d1968b767912e70e18be8f0e1e22bf9c6f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Mar 2025 15:08:45 +0100 Subject: Use libgamma to determine available adjustment method configuration options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.h | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index aa929ae..578a82d 100644 --- a/src/common.h +++ b/src/common.h @@ -1184,13 +1184,33 @@ extern int verbose; /** * Create an initialised state object for direct gamma adjustments * - * @param state_out Output parameter for the state object - * @return 0 on success, -1 on failure + * @param state_out Output parameter for the state object + * @param method libgamma constant for the adjustment method + * @param method_name redshift's name for the adjustment method + * @return 0 on success, -1 on failure * * `*state_out` is set (potentially to `NULL`) on failure */ int direct_create(GAMMA_STATE **state_out, int method, const char *method_name); +/** + * Print help on options for the adjustment method using direct gamma adjustments + * + * @param f Output sink + * @param method libgamma constant for the adjustment method + */ +void direct_print_help(FILE *f, int method); + +/** + * Configure the adjustment method using direct gamma adjustments + * + * @param state State object for the adjustment method + * @param key Option to configure + * @param value Option value to set + * @return 0 on success, -1 on failure + */ +int direct_set_option(GAMMA_STATE *state, const char *key, const char *value); + /** * Select partitions to apply adjustments to using direct gamma adjustments * -- cgit v1.2.3-70-g09d2