diff options
| author | Krishna Chaitanya Parimi <cparimi@codeaurora.org> | 2014-11-14 17:45:25 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:39:04 -0700 |
| commit | 23a7f64be1c3770e95f79bf1b21798a11751c268 (patch) | |
| tree | ac7d0e5c4a2368b1e3ef0e7112669197bc299785 /include/uapi/linux | |
| parent | 31a7c2e261b83399a808a80ed00c934649d8c042 (diff) | |
msm: mdss: Add gamma correction support in mdp3
Add gamma correction support in mdp3 driver via
MSMFB_MDP_PP ioctl. The ioctl has been extended to
program luts corresponding to histogram based
outputs and gamma correction based on flag.
The gain corresponding to gamma correction and
the histogram based output are combined in driver
and applied to hardware.
Change-Id: Ie875b4a9f4f4c752ad9a811ad68aff1c5110d57b
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/msm_mdp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index 8daedd3c1866..2a7ab5158f27 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -625,6 +625,7 @@ enum { mdp_lut_igc, mdp_lut_pgc, mdp_lut_hist, + mdp_lut_rgb, mdp_lut_max, }; struct mdp_overlay_pp_params { @@ -926,12 +927,28 @@ struct mdp_pgc_lut_data_v1_7 { uint32_t *c2_data; }; +/* + * mdp_rgb_lut_data is used to provide parameters for configuring the + * generic RGB lut in case of gamma correction or other LUT updation usecases + */ +struct mdp_rgb_lut_data { + uint32_t flags; + uint32_t lut_type; + struct fb_cmap cmap; +}; + +enum { + mdp_rgb_lut_gc, + mdp_rgb_lut_hist, +}; + struct mdp_lut_cfg_data { uint32_t lut_type; union { struct mdp_igc_lut_data igc_lut_data; struct mdp_pgc_lut_data pgc_lut_data; struct mdp_hist_lut_data hist_lut_data; + struct mdp_rgb_lut_data rgb_lut_data; } data; }; |
