I'm working on econ denebola board with OV5640 sensor. I want to implement zoom in zoom out functionality. Is there any sample code or guideline available for that?

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

cross mob
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

You can refer to firmware  with AN75779. This firmware is for FX3 but you need to make similar changes to CX3 firmware

When you un-comment  #define UVC_PTZ_SUPPORT, it will enable the settings for Pan, Zoom and Tilt

As you are working on USB 2.0, you need to change the descriptors const uint8_t CyFxUSBHSConfigDscr[]

- In the Input (Camera) Terminal you need to put the values in the fields related to focal length according to your sensor (refer attachment). Also need to enable the absolute zoom bit (D9)/ relative zoom bit (D10) in the bmcontrol field

In the application you need to handle the GET/SET UVC requests as handled in UVCHandleCameraTerminalRqts (AN75779)

Please refer to camera_ptzcontrol.c and ptz_control.h files for you reference in firmware AN75779.

Regards,

Rashi

Regards,
Rashi

View solution in original post

1 Reply
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

You can refer to firmware  with AN75779. This firmware is for FX3 but you need to make similar changes to CX3 firmware

When you un-comment  #define UVC_PTZ_SUPPORT, it will enable the settings for Pan, Zoom and Tilt

As you are working on USB 2.0, you need to change the descriptors const uint8_t CyFxUSBHSConfigDscr[]

- In the Input (Camera) Terminal you need to put the values in the fields related to focal length according to your sensor (refer attachment). Also need to enable the absolute zoom bit (D9)/ relative zoom bit (D10) in the bmcontrol field

In the application you need to handle the GET/SET UVC requests as handled in UVCHandleCameraTerminalRqts (AN75779)

Please refer to camera_ptzcontrol.c and ptz_control.h files for you reference in firmware AN75779.

Regards,

Rashi

Regards,
Rashi