diff options
author | Donghwa Lee <dh09.lee@samsung.com> | 2014-08-20 10:11:22 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-02-26 10:21:48 +0900 |
commit | e57fc6162f2f2ce7be4de9769c83ebf68f05ca1b (patch) | |
tree | 28cd7ab2379c328c84cec6e9b0463eb398397e8f /tests | |
parent | aa3c367a8ecc5a4cf52fa8b7d5d7870b3e0c1f99 (diff) | |
download | libdrm-e57fc6162f2f2ce7be4de9769c83ebf68f05ca1b.tar.gz libdrm-e57fc6162f2f2ce7be4de9769c83ebf68f05ca1b.tar.bz2 libdrm-e57fc6162f2f2ce7be4de9769c83ebf68f05ca1b.zip |
drm: ipptest: support ipp dynamic color range
This patch supports 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: I94190ac3f3630904d2461e226d34378ac2b82b9d
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ipptest/fimc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c index f48c7936..cf8fbb08 100644 --- a/tests/ipptest/fimc.c +++ b/tests/ipptest/fimc.c @@ -75,6 +75,7 @@ static int exynos_drm_ipp_set_property(int fd, } property->config[EXYNOS_DRM_OPS_DST].pos = scale_pos; property->config[EXYNOS_DRM_OPS_DST].sz = dst_sz; + property->range = COLOR_RANGE_FULL; /* Wide default */ break; case IPP_CMD_WB: property->config[EXYNOS_DRM_OPS_SRC].ops_id = EXYNOS_DRM_OPS_SRC; @@ -104,6 +105,7 @@ static int exynos_drm_ipp_set_property(int fd, } property->config[EXYNOS_DRM_OPS_DST].pos = scale_pos; property->config[EXYNOS_DRM_OPS_DST].sz = dst_sz; + property->range = COLOR_RANGE_FULL; /* Wide default */ break; case IPP_CMD_OUTPUT: default: |