From: Bencheng Jing Date: Fri, 21 Sep 2018 11:19:36 +0000 (+0800) Subject: amvecm: change ve hist from limit to full range for tv chips X-Git-Tag: khadas-vims-v0.9.6-release~1338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=308d7f2682b23301535bf44e784f546ab5f30409;p=platform%2Fkernel%2Flinux-amlogic.git amvecm: change ve hist from limit to full range for tv chips PD#173611: change ve hist from limit to full range for tv chips. Change-Id: Ibe7050023a0e4fb740283c7aa2d3b82e37be0ab3 Signed-off-by: Bencheng Jing --- diff --git a/drivers/amlogic/media/enhancement/amvecm/amve.c b/drivers/amlogic/media/enhancement/amvecm/amve.c index 015ce09..7a85d6b 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amve.c +++ b/drivers/amlogic/media/enhancement/amvecm/amve.c @@ -153,8 +153,9 @@ static void ve_hist_gamma_tgt(struct vframe_s *vf) video_ve_hist.ave = video_ve_hist.sum/(video_ve_hist.height* video_ve_hist.width); - if ((vf->source_type == VFRAME_SOURCE_TYPE_OTHERS) && - (is_meson_gxtvbb_cpu())) { + if (((vf->source_type == VFRAME_SOURCE_TYPE_OTHERS) && + (is_meson_gxtvbb_cpu())) || + cpu_after_eq(MESON_CPU_MAJOR_ID_TXL)) { ave_luma = video_ve_hist.ave; ave_luma = (ave_luma - 16) < 0 ? 0 : (ave_luma - 16); video_ve_hist.ave = ave_luma*255/(235-16);