Gets a frame from the camera.


int miraacq_GetFrame(makernel* pma, void* pBuf, size_t* pFrameID, int timeOut);


Parameters:

  • pma: A pointer to the acquisition kernel returned by miraacq_Init.
  • pBuf: The buffer to put the frame in, must at least have space for miraacq_GetFrameSize bytes.
  • pFrameID: The current camera frame ID.
  • timeOut: The timeout for getting a frame in milliseconds.


Return value:

MIRA_OK (0) or an error code.


Description:

miraacq_GetFrame will read a frame from the camera, waiting if there is no frame available yet, process the frame, and copy it to the buffer. It requires that acquisition has been started previously using miraacq_StartAcquisition.