aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-22 17:23:34 +0100
committeremersion <contact@emersion.fr>2018-08-02 23:33:59 +0100
commite21563ec76b5f1f500b530cd2a5787123b26d627 (patch)
tree91d62c120f93668bbec45d08cb97b2d2483d7a1f
parent6e8892d4d71c231120ddcfb15e1a86c30cf9e497 (diff)
output: document gamma functions
-rw-r--r--include/wlr/types/wlr_output.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 0cf3e9f6..e9f3ae3b 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -174,9 +174,17 @@ bool wlr_output_swap_buffers(struct wlr_output *output, struct timespec *when,
* it is a no-op.
*/
void wlr_output_schedule_frame(struct wlr_output *output);
+/**
+ * Returns the maximum length of each gamma ramp, or 0 if unsupported.
+ */
+uint32_t wlr_output_get_gamma_size(struct wlr_output *output);
+/**
+ * Sets the gamma table for this output. `r`, `g` and `b` are gamma ramps for
+ * red, green and blue. `size` is the length of the ramps and must not exceed
+ * the value returned by `wlr_output_get_gamma_size`.
+ */
bool wlr_output_set_gamma(struct wlr_output *output,
uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b);
-uint32_t wlr_output_get_gamma_size(struct wlr_output *output);
bool wlr_output_export_dmabuf(struct wlr_output *output,
struct wlr_dmabuf_attributes *attribs);
void wlr_output_set_fullscreen_surface(struct wlr_output *output,