How to get current image without buffer image in libcamera?

hi, Balaji

In the sample code, when bufferCount is set to 0, the if branch cannot be entered, resulting in the inability to set bufferCount, and the default bufferCount is finally used. You can remove “if (bufferCount)” and have a try.

When bufferCount is set to 1. The previous two images are still in the past because they should be cached. Currently, clearing the buffer is not supported.