From 2b6da92f885fb4e1e0e9993507f0d5e6d649682e Mon Sep 17 00:00:00 2001 From: Shi Zhongbo Date: Wed, 27 Nov 2019 13:54:10 +0800 Subject: [PATCH] msm: vidc: fix CSC coefficients Fix to use correct CSC coefficients for BT601 to BT709 CSC. Change-Id: I8365603fed10151db0efbea0058bb896c419c3f4 Signed-off-by: Shi Zhongbo --- msm/vidc/msm_vidc_platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/vidc/msm_vidc_platform.c b/msm/vidc/msm_vidc_platform.c index a6a45f6d0ec0..2f2e50beaab6 100644 --- a/msm/vidc/msm_vidc_platform.c +++ b/msm/vidc/msm_vidc_platform.c @@ -242,12 +242,12 @@ static struct msm_vidc_codec_capability lahaina_capabilities[] = { * 3x3 transformation matrix coefficients in s4.9 fixed point format */ static u32 vpe_csc_custom_matrix_coeff[HAL_MAX_MATRIX_COEFFS] = { - 470, 8170, 8148, 0, 490, 50, 0, 34, 483 + 440, 8140, 8098, 0, 460, 52, 0, 34, 463 }; /* offset coefficients in s9 fixed point format */ static u32 vpe_csc_custom_bias_coeff[HAL_MAX_BIAS_COEFFS] = { - 34, 0, 4 + 53, 0, 4 }; /* clamping value for Y/U/V([min,max] for Y/U/V) */