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.
Parameters
  • 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.
Comment
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.
  • Follow