mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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 <bencheng.jing@amlogic.com>
This commit is contained in:
committed by
Jianxin Pan
parent
6828707e8e
commit
308d7f2682
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user