Hello TI Experts
Based on the link: tda4vm-csi2-tx-set-lanebandspeed-for-1920x1080-30fps-but-the-output-framerate-is-34
I set the UYVY frames output at 1920*1080@25fps. The laneband speed is :
TIVX_CSITX_LANE_BAND_SPEED_200_TO_240_MBPS = 1920*1080*16*25*1.2/(1024*1024*4) = 237.3047
static vx_status app_csitx_run_graph(AppCsitxObj *obj)
{
vx_status status = VX_SUCCESS;
uint32_t delay_time = 0;
switch(gTestNo)
{
case '1':
delay_time = 3000; /* 1920x1080@30P */
break;
case '2':
delay_time = 0; /* 1920x1080@25P */
break;
case '3':
delay_time = 2000; /* 1920x720@25P */
break;
default:
VX_PRINT(VX_ZONE_ERROR, "%s[%d] case number is %c, no case named %c\n", __FUNCTION__, __LINE__, gTestNo, gTestNo);
}
do{
vxProcessGraph(obj->graph);
if (delay_time != 0)
{
usleep(delay_time);
}
}while(obj->stop_task != 1);
return status;
}
The delay_time is set to change the dispatch cycle for API:vxProcessGraph.
编号 | delay_time | fps | remark |
1 | 0 | 25.3 | The delay_time is too small, we need to change the delay_time to 474((1000/25) - (1000/25.3) = 40ms - 39.526ms = 0.474ms). |
2 | 474 | 24.4 | why |
3 | 1 | 24.4 | why |
according to the above table, we can see that if the delay_time is no 0, the fps will be 24.4
Why the delay_time no effact? Could you please tell me what can I do for the 25fps?
best wishes
Chengwu.Tang