From 7300c28a5ce537300e5fa99f4f8a5500b14b7d8c Mon Sep 17 00:00:00 2001 From: Umesh Pandey Date: Tue, 16 Aug 2016 19:17:29 -0700 Subject: msm: vidc: Add Colorspace in sequence change event For HDR playback, the userspace needs info on the colorspace info for DPB decision. Venus firmware sends a color space info to the driver with the port settings changed event, which is triggered as an insufficient event to userpace if colorspace changes. CRs-Fixed: 1081102 Change-Id: I9665dfc1c52d77dc8953042101d726e7f7ba1807 Signed-off-by: Umesh Pandey --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 4a3b35f10257..7be4c28cc1ca 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2161,6 +2161,7 @@ struct v4l2_streamparm { #define V4L2_EVENT_BITDEPTH_FLAG 0x1 #define V4L2_EVENT_PICSTRUCT_FLAG 0x2 +#define V4L2_EVENT_COLOUR_SPACE_FLAG 0x4 #define V4L2_EVENT_MSM_VIDC_START (V4L2_EVENT_PRIVATE_START + 0x00001000) #define V4L2_EVENT_MSM_VIDC_FLUSH_DONE (V4L2_EVENT_MSM_VIDC_START + 1) -- cgit v1.2.3 From cfc8fc0fd5d53c189bc4030e99c149f56bee7d33 Mon Sep 17 00:00:00 2001 From: Benet Clark Date: Fri, 18 Dec 2015 07:51:08 -0800 Subject: msm: mdss: Add Rec2020 YUV conversion to CSC tables Rec2020 CSC type will be set by hwcomposer when incoming YUV data is of the same type. CRs-Fixed: 1081779 Change-Id: I321bd79d04e135030764dcdf83a58fee3c4e72c8 Signed-off-by: Benet Clark --- include/uapi/linux/msm_mdp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index 1df65c7f90b3..f0ac02e9c7a8 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -1406,12 +1406,21 @@ enum { MDP_WRITEBACK_MIRROR_RESUME, }; +/* + * The enum values are continued below as preprocessor macro definitions + */ enum mdp_color_space { MDP_CSC_ITU_R_601, MDP_CSC_ITU_R_601_FR, MDP_CSC_ITU_R_709, }; +/* + * These definitions are a continuation of the mdp_color_space enum above + */ +#define MDP_CSC_ITU_R_2020 (MDP_CSC_ITU_R_709 + 1) +#define MDP_CSC_ITU_R_2020_FR (MDP_CSC_ITU_R_2020 + 1) + enum { mdp_igc_v1_7 = 1, mdp_igc_vmax, -- cgit v1.2.3