can i set vip parameters dynamically..
when i use vip1 port A ,i set it 16bits wide. and then i run the demo.
if i want to change the vip1 port A to 8 bits wide dynamically ,
can you help me ? thank you very much!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
These kind of VIP parameters cannot be changed at run time, you have to stop VIP and then change the parameters.
Regards,
Brijesh
just stop vip then changge parameters ?
before you told me ,i think i should do steps as follows:
1.stop all the links of the chain
2.delete all the links of the chain
3.create all the links of the chain, now i can changge vip parameters
4.connect all the links of the chain and start all
are you sure just stop vip and change vip parameters wiil solve the problem ?
thank you very much!
You have to delete and create the FVID2 capture driver as VIP configuration is a driver create param.This also means you will have to delete and create the capture link.This requires deletion and recreation of all links.
You could modify the capture link to add a new captureLink command to just create the capture driver. If you make this modification you can stop, delete and recreate only the capture driver and don't have to delete and create all the other links.
The capture buffers should however be created for maximum resolution as buffers will not be created if you just delete and create the capture driver.This also means the capture link output dataFormat (422I or 420SP) cannot change when you change VIP configuration
Once you change capture configuration you have to invoke CAPTURE_LINK_CMD_SET_RESOLUTION if there is a capture resolution change so that the next link is aware of change in resolution
You could modify the capture link to add a new captureLink command to just create the capture driver. If you make this modification you can stop, delete and recreate only the capture driver and don't have to delete and create all the other links.
hi,thanks a lot to help me so much. but when i want to do this..i dont know how to do details.
add capture link?? this will change the link after capture link ,for example ,i do nsf after capture link. so if i add capture link ,i should modify nsf link.
and i still dont know how to add capture link. because capture link id is only one as SYSTEM_LINK_ID_CAPTURE.how to add ?
You should add a link control command in captureLink not add a new captureLink. You will have to understand the captureLink to add new link control commands.
Refer /dvr_rdk/mcfw/src_bios6/links_m3vpss/capture/captureLink_drv.c
CaptureLink_drvCreate - Create the capture Link including the FVID2 driver.
Follow and understand the flow of the capture link control command like
/dvr_rdk/mcfw/src_bios6/links_m3vpss/capture/captureLink_tsk.c
case CAPTURE_LINK_CMD_SET_SC_PARAMS:
status = CaptureLink_drvSetScParams(
pObj,
(CaptureLink_ScParams *)Utils_msgGetPrm(pRunMsg));
Utils_tskAckOrFreeMsg(pRunMsg, status);
break;
thank you very much!
i understand what you mean. but i dont know why should i add new link control command in captureLink.
now i use this plan to change vip ,but as you say, it cant work .my plan is:
System_linkStop(capID);
System_linkDelete(capID);
config capture paramaters
System_linkCreate(capID);
System_linkStart(capID);
can you give me more suggestions? maybe you can tell me difference between recreating which you say before and creating capture link .
thanks a lot .
when i read the CaptureLink_drvDelete function ,i find that it will delete 3 handles ,like Capture driver FVID2 handle, Video decoder device FVID2 handle and Global capture driver handle. if i do this function ,i should create the handles . except i only delete Global capture driver handle, and then i recreate it .
is it what you mean?
hi bin li2,
your plan is stopping and restarting the caplink, I think it is not workable, because the caplink is a part of the all links, according to your plan, other links have to be stopped and restarted, this is not dynamically.
thank you .
but you can see all the queestion and answer, you will find that Badri Narayanan give me some advices to solve this problem .
but because my limit knowledge about dvrrdk3.0 , i cant solve it until now