Developer

API Reference

ICAMERA_EncodeByIndex()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_Start() ICAMERA_RecordMultiShot() ICAMERA_GetFrameByIndex()
Description
This function encodes the recorded raw snapshot/frame with the referred index.
ICAMERA_EncodeByIndex() starts immediately and is complete when the callback is sent with the following values nStatus = CAM_STATUS_DONE nCmd = CAM_CMD_ENCODESNAPSHOT At this point the camera is in the mode CAM_MODE_READY.
Parameters
  • pICamera
    []:
    Pointer to ICamera Interface.
  • nIndex
    [in]:
    index of the frame to encode.
Interface
ICAMERA
Prototype
    ICAMERA_EncodeByIndex(ICamera *me, int nIndex)
Return
SUCCESS: Asynchronous command accepted. Check callback for result and completion. Error code if failure.
Side Effect
None.
Comment
This function is always asynchronous.
During multishot operations the frame index is specified in the CAM_STATUS_FRAME call back in the pData field of the AEECameraNotify structure.
Before you call this function the caller must call ICAMERA_SetMediaData();
This API is typically called in response to CAM_STATUS_DONE with ICAMERA_RecordMultiShot().
You can use ICAMERA_GetFrameByIndex() to get the indexed raw snapshot frame.
  • Follow