summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDonghwa Lee <dh09.lee@samsung.com>2014-08-20 10:03:51 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:39 +0900
commitd72201391be54c3c43f9f34c2fb68bcb060d45df (patch)
tree5e99b54340b2c67916ec16045ef25214efe7c592 /include
parentd7180c01ce446203fcbc61237a0c5fe3a8dd3323 (diff)
downloadlinux-3.10-d72201391be54c3c43f9f34c2fb68bcb060d45df.tar.gz
linux-3.10-d72201391be54c3c43f9f34c2fb68bcb060d45df.tar.bz2
linux-3.10-d72201391be54c3c43f9f34c2fb68bcb060d45df.zip
drm: fimc: support ipp dynamic color range
This patch support dynamic range for color space conversion. COLOR_RANGE_LIMITED: selects narrow -> Y(16 to 235), Cb/Cr(16 to 240) COLOR_RANGE_FULL: selects wide -> Y/Cb/Cr(0 to 255), Wide default Change-Id: I7bb62883b497b5b6869108247cc33b09c07f470e Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/exynos_drm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h
index 01879bfa0b9..4b48799ada9 100644
--- a/include/uapi/drm/exynos_drm.h
+++ b/include/uapi/drm/exynos_drm.h
@@ -254,6 +254,12 @@ enum drm_exynos_ipp_cmd {
IPP_CMD_MAX,
};
+/* define of color range */
+enum drm_exynos_color_range {
+ COLOR_RANGE_LIMITED, /* Narrow: Y(16 to 235), Cb/Cr(16 to 240) */
+ COLOR_RANGE_FULL, /* Wide: Y/Cb/Cr(0 to 255), Wide default */
+};
+
/**
* A structure for ipp property.
*
@@ -262,6 +268,8 @@ enum drm_exynos_ipp_cmd {
* @ipp_id: id of ipp driver.
* @prop_id: id of property.
* @refresh_rate: refresh rate.
+ * @range: dynamic range for csc.
+ * @pad: just padding to be 64-bit aligned.
*/
struct drm_exynos_ipp_property {
struct drm_exynos_ipp_config config[EXYNOS_DRM_OPS_MAX];
@@ -269,6 +277,8 @@ struct drm_exynos_ipp_property {
__u32 ipp_id;
__u32 prop_id;
__u32 refresh_rate;
+ __u32 range;
+ __u32 pad;
};
enum drm_exynos_ipp_buf_type {