Part Number: TDA4VM
Hi
expert.
I want to stream video using csitx to deserializer(max9295D).
Image format: 1280x944, 30fps, yuv422(uyvy)
I refered to "/tiovx/kernels_j7/hwa/test/test_csitx_csirx.c"
csitx_cfg.numInst = 1U;
csitx_cfg.numCh = 1;
csitx_cfg.instId[0U] = 0;
csitx_cfg.instCfg[0U].rxCompEnable = (uint32_t)vx_true_e;
csitx_cfg.instCfg[0U].rxv1p3MapEnable = (uint32_t)vx_true_e;
csitx_cfg.instCfg[0U].laneBandSpeed = TIVX_CSITX_LANE_BAND_SPEED_1000_TO_1200_MBPS; // (1280x944x30x16x1.2)/(4*1024*1024)=165.9
csitx_cfg.instCfg[0U].numDataLanes = 4U;
int idx = 0;
for (idx = 0U; idx < csitx_cfg.instCfg[0U].numDataLanes; idx++){
csitx_cfg.instCfg[0U].lanePolarityCtrl[idx] = 1u;
}
for (idx = 0U; idx < csitx_cfg.instCfg[0U].numDataLanes; idx++){
csitx_cfg.chVcNum[idx] = 0;
csitx_cfg.chInstMap[idx] = 0;
}
csitx_param_obj = vxCreateUserDataObject(_obj->context, "tivx_csitx_params_t", sizeof(tivx_csitx_params_t), &csitx_cfg);
if (vxGetStatus((vx_reference)csitx_param_obj) != VX_SUCCESS){
APP_PRINTF("[ERROR] vxCreateUserDataObject() csitx_param_obj\n");
return VX_FAILURE;
}
_obj->csitx_node = tivxCsitxNode(_obj->graph, csitx_param_obj, _obj->mosaic_frames);
if (vxGetStatus((vx_reference)csitx_param_obj) != VX_SUCCESS){
APP_PRINTF("[ERROR] tivxCsitxNode() \n");
return VX_FAILURE;
}
Q1. Is csitx set value correct?
Q2. I'd like to know concept of instance, channel, datalanes and virtual channel in CSI-2. That concept is hard to understand for me.
Thank you.
