diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-07-14 21:07:04 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-07-14 21:07:04 +0200 |
| commit | bcd9f4c69103d766e3dcd8ffa10b5880ea5110bf (patch) | |
| tree | 27f3ae08223971a52c9e3598336b3601b40e71fa /include/kde_night_light.h | |
| parent | 7a5785e4dfd023dc5e037ad535f5b7aa26278ff4 (diff) | |
kms capture: make capture work with night lights enabled
Diffstat (limited to 'include/kde_night_light.h')
| -rw-r--r-- | include/kde_night_light.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/kde_night_light.h b/include/kde_night_light.h new file mode 100644 index 0000000..ed12f1d --- /dev/null +++ b/include/kde_night_light.h @@ -0,0 +1,13 @@ +#ifndef GSR_KDE_NIGHT_LIGHT_H +#define GSR_KDE_NIGHT_LIGHT_H + +#include <stdbool.h> + +typedef struct gsr_kde_night_light gsr_kde_night_light; + +gsr_kde_night_light* gsr_kde_night_light_create(void); +void gsr_kde_night_light_destroy(gsr_kde_night_light *self); +/* Returns true when night light is active. |inverse_matrix| is filled with the row major 3x3 matrix that removes the night light tint from linear rgb values */ +bool gsr_kde_night_light_get_inverse_matrix(gsr_kde_night_light *self, float inverse_matrix[9]); + +#endif /* GSR_KDE_NIGHT_LIGHT_H */ |
