I’m having trouble programming after samples/09_camera_jpeg_capture.
When I delete the original CaptureConsumerThread and use a class I wrote that also inherits from ConsumerThread, the event queue has more EVENT_TYPE_ CAPTURE_STARTED instead of EVENT_TYPE_CAPTURE_COMPLETE in the event queue and it doesn’t work properly.
So I would like to know under what circumstances the standard event type will appear, or how to check to solve the current problem.
I’ve disabled CaptureConsumerThread using the option you mentioned, but the problem about event still persists.
Your current suggestion might work, but it involves too many modifications for me.
perhaps you could tell me under what circumstances EVENT_TYPE_CAPTURE_COMPLETE would be generated in the message queue?
Hi,
EVENT_TYPE_ CAPTURE_STARTED is that capture request is registered to receive frame data in CSI port. Once it is done, EVENT_TYPE_ CAPTURE_COMPLETE is set. If it fails, EVENT_TYPE_ ERROR is set.
Are you able to successfully run the default 09 sample? Or you may also try 10, 13 and frontend samples.
I’m able to run default 09 sample.
I modified some details and found that if the number of consumers which fetching events from the message queue is odd, the program will run normally. Otherwise, a certain consumer will only get EVENT_TYPE_CAPTURE_STARTED for a long time.