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?

1,335 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

1,310 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

1,307 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

1,304 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

1,301 Views
Mc2023
Contributor IV

Hi @Miguel04,

I am using the demo: evkmimxrt1160_csi_mipi_yuv_cm7

Best regards,

1,290 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

1,298 Views
Mc2023
Contributor IV

Sorry! Yes the value is 3