TDA4VL-Q1: [TDA4VL][SDK8.5]Getting histogram data from viss node are invalid

Part Number: TDA4VL-Q1

Tool/software:

Hi TI team

we try to get the histogram from viss node ,but when we get the data ,we found the datas were invalid.

the histogram data is as below 

I had update the source code as below ,please check 

//config hist

static void isp_default_hist(void)
{
config_set_v_isp_control_histCfg__enable(true);
config_set_v_isp_control_histCfg__input(4); // Y=(R+2G+B)/4
config_set_v_isp_histCfg__roi_cropStartX(0);
/* Y Start for Histogram ROI, should be >= 1 */
config_set_v_isp_histCfg__roi_cropStartY(1);
/* X Size (Width) for Histogram ROI, should be > 256 & even */
config_set_v_isp_histCfg__roi_cropWidth(512);
config_set_v_isp_histCfg__roi_cropHeight(512);
}

//after Fvid2_getProcessedRequest and vhwaVissSaveCtx 

vhwaVissSaveCtx(ispObj);
{
Fcp_HistData cfg = {0};
static uint32_t bank = 0;
cfg.hist=ispObj->histogram;
fvid2_status = Fvid2_control(ispObj->handle, IOCTL_FCP_GET_HISTOGRAM, (void *)&cfg, NULL);
if (FVID2_SOK != fvid2_status)
{
VX_PRINT(VX_ZONE_ERROR, "Failed to Submit IOCTL_FCP_GET_HISTOGRAM\n");
status = (vx_status)VX_FAILURE;
}



}

best regards 

sungenben