summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>2013-10-03 12:51:03 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:22:04 -0700
commitfa56e34902d5c6681440730eb092a2eafb109d22 (patch)
tree22a8bc950cd52be8c82cc4d3e858b65b25f825fb /include/uapi
parent7e9779be81f8681de284bf39f84f6da422df3a73 (diff)
msm: mdss: Add scalar data structure to enable scalar programming
mdp_scale_data is a data structure added to mdp_overlay structure to receive scalar factors for the QSEED filter such as initial phase, phase step and pixel extension from the userland. This data is need to achieve image clarity when using the scalar. Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org> Change-Id: I88e5e0cc9f4e604f38fa7c35a6a93378d3b55050
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/msm_mdp.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h
index 6fea5abe6429..b60b435f341c 100644
--- a/include/uapi/linux/msm_mdp.h
+++ b/include/uapi/linux/msm_mdp.h
@@ -432,6 +432,33 @@ enum mdss_mdp_blend_op {
BLEND_OP_MAX,
};
+#define MAX_PLANES 4
+struct mdp_scale_data {
+ uint8_t enable_pxl_ext;
+
+ int init_phase_x[MAX_PLANES];
+ int phase_step_x[MAX_PLANES];
+ int init_phase_y[MAX_PLANES];
+ int phase_step_y[MAX_PLANES];
+
+ int num_ext_pxls_left[MAX_PLANES];
+ int num_ext_pxls_right[MAX_PLANES];
+ int num_ext_pxls_top[MAX_PLANES];
+ int num_ext_pxls_btm[MAX_PLANES];
+
+ int left_ftch[MAX_PLANES];
+ int left_rpt[MAX_PLANES];
+ int right_ftch[MAX_PLANES];
+ int right_rpt[MAX_PLANES];
+
+ int top_rpt[MAX_PLANES];
+ int btm_rpt[MAX_PLANES];
+ int top_ftch[MAX_PLANES];
+ int btm_ftch[MAX_PLANES];
+
+ uint32_t roi_w[MAX_PLANES];
+};
+
struct mdp_overlay {
struct msmfb_img src;
struct mdp_rect src_rect;
@@ -447,6 +474,7 @@ struct mdp_overlay {
uint8_t horz_deci;
uint8_t vert_deci;
struct mdp_overlay_pp_params overlay_pp_cfg;
+ struct mdp_scale_data scale;
};
struct msmfb_overlay_3d {