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>
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);