What is the purpose of DEMO_CAMERA_BUFFER_COUNT in demo csi_mipi_yuv.c?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the purpose of DEMO_CAMERA_BUFFER_COUNT in demo csi_mipi_yuv.c?

943 Views
Mc2023
Contributor IV

Hello All,

What is the purpose of DEMO_CAMERA_BUFFER_COUNT in demo csi_mipi_yuv.c?

Remark: I am using i.MX RT1160 Evaluation Kit.

Best regards,

Tags (3)
0 Kudos
Reply
6 Replies

918 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @Mc2023 

It is the size of the empty frame buffer to transmit to the buffer queue of the camera.

Best Regards, Miguel.

0 Kudos
Reply

915 Views
Mc2023
Contributor IV

Hi @Miguel04,

Thanks for your reply!

Could you tell me why the value was set to 4?

Best regards,

Mustafa

0 Kudos
Reply

912 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @Mc2023 

Could you tell me which example are you using? I have DEMO_CAMERA_BUFFER_COUNT set to a value of 3.

Best Regards, Miguel.

0 Kudos
Reply

909 Views
Mc2023
Contributor IV

Hi @Miguel04,

I am using the demo: evkmimxrt1160_csi_mipi_yuv_cm7

Best regards,

898 Views
Miguel04
NXP TechSupport
NXP TechSupport

@Mc2023 

It is a parameter for the camera used, on the readme file the example says it use the OV5640 camera, and in the datasheet it is specified that the camera needs Two frames after the strobe request is submitted, the third frame is correctly exposed.

Best Regards, Miguel.

0 Kudos
Reply

906 Views
Mc2023
Contributor IV

Sorry! Yes the value is 3