Way to enable variable stream format

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Dear sir,

   

 

   

I have problem to program set enabling stream format for FX3.

   

I want to know way to setting variable value image size and frame rate to UVC compliant software such as AMCap application.

   

 

   

I can set only one image size and frame rate on UVC software.

   

But, my USB3.0 application can support variable image sizes and frame rates.

   

 

   

Which USB handle or event should I use? 

   

 

   

Thanks

0 Likes
6 Replies
Anonymous
Not applicable

When you try to change the resolution on the host application , the USB Host will send a SET_CURR request to the video streaming interface. In the firmware, you can handle it in the USBSetupCB function to configure the image sensor based on the resolution selected by the application.

0 Likes
Anonymous
Not applicable

Thanks your answer.

   

If USB device would support multiple video frame rates to the USB Host, 

   

how the USB Host know multiple frame rates.

   

Which configuration descriptor should I define?

   

I want to increase input pins for video frame rate

   

such as 60fps, 50fps, 30fps and 25fps.

0 Likes
Anonymous
Not applicable

You should use the Video Streaming(VS) interface descriptors and its sub descriptors to inform the host about the different resolutions and frame rates that the UVC device supports.

   

You can refer to the CX3 examples provided with the FX3 SDK. These examples implement various VS frame descriptors.

0 Likes
Anonymous
Not applicable

Thanks your answer.

   

If USB device would support multiple video frame rates to the USB Host, 

   

how the USB Host know multiple frame rates.

   

Which configuration descriptor should I define?

   

I want to increase input pins for video frame rate

   

such as 60fps, 50fps, 30fps and 25fps.

0 Likes
Anonymous
Not applicable

There are references for multiple resolutions, each resolution have only one frame rate.

   

There is no reference for frame rates.

0 Likes
Anonymous
Not applicable

You can similarly create different frame descriptors for different frame rates. Keep the width and height same and change the bit rates. That should help.

   

Also if you want to use different frame rates, include separate probe control structures. Refer to the CX3 examples.

0 Likes