Developer

API Reference

ICAMERA_GetFrameByIndex()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_Start() ICAMERA_Preview() ICAMERA_RecordMultiShot()
Description
This function retrieves the indexed raw frame captured by the camera.
Parameters
  • pICam
    [in]:
    Pointer to ICamera Interface.
  • nIndex
    [in]:
    Index of the frame.
  • ppFrame
    [out]:
    IBitmap frame pointer.
Interface
ICAMERA
Prototype
    int ICAMERA_GetFrameByIndex(ICamera *pICam, int nIndex, IBitmap **ppFrame)
Return
SUCCESS: Successful. Synchronous operation completed. Error code, if failure.
Side Effect
None.
Comment
This function is always synchronous.
During multishot operations the frame index is specified in the CAM_STATUS_FRAME call back in the pData field of the AEECameraNotify structure.
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