[PATCH v3 weston 2/5] libweston: provide support to set color transformation matrix for output

harsha.manjulamallikarjun at in.bosch.com harsha.manjulamallikarjun at in.bosch.com
Thu Jun 28 13:27:57 UTC 2018


From: Harsha M M <harsha.manjulamallikarjun at in.bosch.com>

v2:
--Fix grammatical errors in set_ctm interface description

Signed-off-by: Harsha M M <harsha.manjulamallikarjun at in.bosch.com>
---
 libweston/compositor.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/libweston/compositor.h b/libweston/compositor.h
index c2c40ee..484b489 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -270,6 +270,18 @@ struct weston_output {
 			  uint16_t *g,
 			  uint16_t *b);
 
+	/** Set color tranformation matrix for output
+	 *
+	 * @param output_base: is the output to set tranformation for.
+	 * @param ctm_matrix: 4x4 floating point matrix. Only matrix
+	 *                    member "d" of weston_matrix is relevant here.
+	 *
+	 * One of the examples of using this matrix is, for tuning the output
+	 * color with respect to hue saturation and brightness.
+	 */
+	void (*set_ctm)(struct weston_output *output_base,
+			struct weston_matrix *ctm_matrix);
+
 	struct weston_timeline_object timeline;
 
 	bool enabled; /**< is in the output_list, not pending list */
-- 
2.7.4



More information about the wayland-devel mailing list