From 92049f813954970b0af9a49a1de192b046378bfe Mon Sep 17 00:00:00 2001 From: Sushil Chauhan Date: Wed, 3 Jun 2015 18:23:51 -0700 Subject: uapi: msm: mdp: Add color space in mdp_input_layer MDP needs color space value to configure CSC matrix correctly. So add color_space member in the mdp_input_layer structure. Change-Id: I47ca556f8cfa8ef6c95fb0d77ef1510e3830a286 Signed-off-by: Sushil Chauhan --- include/uapi/linux/msm_mdp.h | 2 +- include/uapi/linux/msm_mdp_ext.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include/uapi') diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index 955840898d01..70b770d61f5d 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -1336,7 +1336,7 @@ enum { MDP_WRITEBACK_MIRROR_RESUME, }; -enum { +enum mdp_color_space { MDP_CSC_ITU_R_601, MDP_CSC_ITU_R_601_FR, MDP_CSC_ITU_R_709, diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h index 634eec6ed1c5..b1dbf24b0ccc 100644 --- a/include/uapi/linux/msm_mdp_ext.h +++ b/include/uapi/linux/msm_mdp_ext.h @@ -221,6 +221,9 @@ struct mdp_input_layer { /* blend operation defined in "mdss_mdp_blend_op" enum. */ enum mdss_mdp_blend_op blend_op; + /* color space of the source */ + enum mdp_color_space color_space; + /* * Source crop rectangle, portion of image that will be fetched. This * should always be within boundaries of source image. -- cgit v1.2.3