I am trying to implement own Camera HAL for the Raspberry Pi,
some what i progressed but stucked now. here is the progress details.
- Implemented HAL layer to communicate with cameraService and build libcamera.so
- In HAL function used MMAL function directly to use the camera.
->>> StartPreview function code snippet
* Created camera component (took help from RaspiStill.c).
-- created MMAL_COMPONENT_DEFAULT_CAMERA component
-- set format for output port
-- created a pool and queue
-- enabled preview port with callback
-- camera component enable
* get buffer from pool
* sending the buffer got from above step to preview port
>> Then getting the buffer from the preview queue which is actually put by the preview call back function.
>> In Preview callback function mmal_queue_put(preview_queue, buffer)
Now here problem is that, preview callback function is not getting called.
I don't know what else i missed. help required..