Gamma/temperature adjustment functions. More...
#include <stdint.h>Data Structures | |
| struct | gamma_s |
| gamma structure More... | |
| struct | gamma_ramp_s |
| gamma ramp structure More... | |
| struct | gamma_method_s |
| Gamma method functions. More... | |
Defines | |
| #define | MIN_GAMMA 0.1 |
| Minimum gamma value. | |
| #define | MAX_GAMMA 10.0 |
| Maximum gamma value. | |
| #define | MIN_TEMP 3400 |
| Minimum temperature. | |
| #define | MAX_TEMP 7000 |
| Maximum temperature. | |
| #define | DEFAULT_BRIGHTNESS 1.0f |
| Default brightness. | |
| #define | DEFAULT_DAY_TEMP 6500 |
| Default daytime temperature limit. | |
| #define | DEFAULT_NIGHT_TEMP 3600 |
| Default nighttime temperature limit. | |
| #define | DEFAULT_GAMMA 1.0 |
| Default gamma values. | |
Enumerations | |
| enum | gamma_method_t { GAMMA_METHOD_NONE, GAMMA_METHOD_AUTO, GAMMA_METHOD_RANDR, GAMMA_METHOD_VIDMODE, GAMMA_METHOD_WINGDI, GAMMA_METHOD_MAX } |
Enum of gamma adjustment methods. More... | |
Functions | |
| gamma_ramp_s | gamma_get_ramps (int size) |
| Re-allocates ramps if size changed, otherwise return pointer to ramp. | |
| gamma_ramp_s | gamma_ramp_fill (int size, int temp) |
| Updates gamma ramp structure. | |
| char * | gamma_get_method_name (gamma_method_t method) |
| Retrieves method name by id. | |
| int | gamma_find_temp (float ratio) |
| Find the temperature based on red:blue ratio. | |
| int | gamma_load_methods (void) |
| Load methods available. | |
| gamma_method_t | gamma_lookup_method (char *name) |
| Looks up method by name. | |
| gamma_method_t | gamma_init_method (int screen_num, int crtc_num, gamma_method_t method) |
| Initialize gamma changing method. | |
| int | gamma_state_restore (void) |
| Restores gamma ramps to default values. | |
| int | gamma_state_free (void) |
| Free the state associated with the appropriate adjustment method. | |
| int | gamma_calc_temp (double elevation, int temp_day, int temp_night) |
| Calculate temperature based on elevation. | |
| int | gamma_calc_curr_target_temp (float lat, float lon, int temp_day, int temp_night) |
| Calculates the target temperature for now. | |
| int | gamma_state_set_temperature (int temp, gamma_s gamma) |
| Sets the temperature. | |
| int | gamma_state_get_temperature (void) |
| Retrieves current temperature. | |
Gamma/temperature adjustment functions.
| enum gamma_method_t |
1.7.1