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

Developer

API Reference

ICAMERA_START()

Brew Release
Brew MP 1.0.2
See Also
AEECameraNotify ICAMERA_Stop() ICAMERA_Pause() ICAMERA_Resume() ICAMERA_GetFrame() ICAMERA_Preview() ICAMERA_RecordMovie() ICAMERA_RecordSnapshot()
Description
This function starts camera operation in preview, snapshot, or movie mode.
Params
pICamera
[]:
Pointer to ICamera Interface
nMode
[]:
C
dwParam
[]:
Movie type (normal or postcard). Only required for CAM_MODE_MOVIE mode.
Interface
  • ICAMERA
Prototype
  •     int ICAMERA_Start
        (
           ICamera * pICamera,
           int16 nMode,
           uint32 dwParam
        );
    
Return
  • SUCCESS: Asynchronous command accepted. Check callback for result and completion. EFAILED: General failure EBADPARM: Bad parameter is passed ENOMEMORY: Not enough memory EBADSTATE: Cannot execute operation because the camera is in the wrong mode.
Side Effect
  • None.
Comments
This function is always asynchronous. This function should be called when the camera is in CAM_MODE_READY. All the events that originate due to this API and due to the following API will be reported via the user-specified callback.
  • ICAMERA_Preview()
  • ICAMERA_RecordSnapshot()
  • ICAMERA_RecordMovie()
  • ICAMERA_Stop()
  • ICAMERA_Pause()
  • ICAMERA_Resume()
  • In the callback, AEECameraNotify,
nCmd = CAM_CMD_START nSubCmd = nMode. If the mode is CAM_MODE_MOVIE, then dwParam must be set to one of the following movie modes. CAM_MOVIE_NORMAL: Normal movie CAM_MOVIE_POSTCARD: Postcard movie