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

Developer

API Reference

ICAMERA_ENCODESNAPSHOT()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_Start() ICAMERA_RecordSnapshot() ICAMERA_GetFrame()
Description
This function encodes the recorded snapshot/frame.
Params
pICamera
[]:
Pointer to ICamera Interface.
Interface
  • ICAMERA
Prototype
  •     int ICAMERA_EncodeSnapshot
        (
           ICamera * pICamera,
        )
    
Return
  • SUCCESS: Asynchronous command accepted. Check callback for result and completion. Error code if failure.
Side Effect
  • None.
Comments
This function is always asynchronous. This API is typically called in response to CAM_STATUS_DONE when ICAMERA_RecordSnapshot(). You can use ICAMERA_GetFrame() to get the latest raw snapshot frame. This function results in {CAM_CMD_ENCODESNAPSHOT, CAM_STATUS_DONE} callback after the snapshot is encoded. This API can be called in any mode. It may abort the current active operation like preview, movie, encode snapshot, and so forth. It may also be used to encode any frame, if supported.