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.

changing image size on the fly in vpfe

I would like to change the size of the image acquired by the CCDC "on the fly" in order to scan a small image area at a fast frame rate for something of interest and then quickly take a larger image frame.  I have already incorporated the code to change my image sensor output, but I am unsure how to use or modify the vpfe api calls to change the expected input image height & width from the ccdc's perspective.  Is there a way to do this without destroying the current ccdc instance and creating a completely new one?

  • You can change video input size on the fly by using ioctl (no need to delete and start new instance of capture device).  However, please note that the V4L2 driver may not support all resolutions you are attempting to use.

    You do have the source code for the V4L2 drivers included with the DVSDK, so you can go ahead and add support for any resolution you wish to have and we can certainly help point you in the right direction if you need to do this.