nxp-mcuxpresso / mcux-sdk-examples

MCUXpresso SDK Examples
Other
48 stars 24 forks source link

evkmimxrt1064: driver_examples: csi: rgb565: Resubmit 1st framebuffer #26

Open ngphibang opened 3 months ago

ngphibang commented 3 months ago

The application hangs forever if we want to use only two buffers:

define APP_FRAME_BUFFER_COUNT 2

This is because the 1st framebuffer has not been resubmitted to the queue, so the camera does not have enough buffer to move on.

ngphibang commented 3 months ago

Hi there, Could someone review this PR ? Thanks !

mcuxsusan commented 3 months ago

@zejiang0jason, could you please help?

zejiang0jason commented 3 months ago

Hi @ngphibang , in this case, the LCDIF occupies one buffer, and CSI occupies one, so two buffers is the minimal requirement. CSI and LCDIF frame rate are not the same, so I guess it is not feasible to use only two buffers without tearing effect.