Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9978d0ee authored by Sushil Chauhan's avatar Sushil Chauhan
Browse files

msm: mdss: Add color_space member for MDP Overlay and Blit



MDP needs color space value to configure CSC matrix correctly. So
add color_space member in mdp_overlay and mdp_blit_req structures.
And define an enum for Color Space values.

Change-Id: I48230867e509c324462a1a596483dbbfb2bfe36b
Signed-off-by: default avatarSushil Chauhan <sushilchauhan@codeaurora.org>
parent c5564588
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -298,6 +298,7 @@ struct mdp_blit_req {
	uint32_t transp_mask;
	uint32_t flags;
	int sharpening_strength;  /* -127 <--> 127, default 64 */
	uint8_t color_space;
};

struct mdp_blit_req_list {
@@ -642,6 +643,7 @@ struct mdp_overlay {
	uint8_t vert_deci;
	struct mdp_overlay_pp_params overlay_pp_cfg;
	struct mdp_scale_data scale;
	uint8_t color_space;
};

struct msmfb_overlay_3d {
@@ -1139,4 +1141,10 @@ enum {
	MDP_WRITEBACK_MIRROR_PAUSE,
	MDP_WRITEBACK_MIRROR_RESUME,
};

enum {
	MDP_CSC_ITU_R_601,
	MDP_CSC_ITU_R_601_FR,
	MDP_CSC_ITU_R_709,
};
#endif /*_UAPI_MSM_MDP_H_*/