API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICAMERA_GETFRAME()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_Start() ICAMERA_Preview() ICAMERA_RecordMovie()
Description
This function retrieves the current raw frame captured by the camera.
Params
pICamera
[in]:
Pointer to ICamera Interface.
ppFrame
[out]:
IBitmap frame pointer.
Interface
  • ICAMERA
Prototype
  •     int ICAMERA_GetFrame(ICamera * pICamera, IBitmap ** ppFrame);
    
Return
  • SUCCESS: Successful. Synchronous operation completed. Error code, if failure.
Side Effect
  • None.
Comments
This function is always synchronous. This function is typically called in response to CAM_STATUS_FRAME callback. It is caller's responsibility to release the IBitmap object after calling this function. The caller can QueryInterface, on the returned IBitmap, for IDIB which, if supported, allows access to raw frame data.