Developer

API Reference

ICAMERA_RecordMovie()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_Start() ICAMERA_Stop() ICAMERA_Pause() ICAMERA_Resume() ICAMERA_GetFrame() ICAMERA_SetDisplaySize() ICAMERA_SetSize() ICAMERA_SetMediaData() ICAMERA_SetQuality() ICAMERA_SetAudioEncode() ICAMERA_SetVideoEncode()
Description
This function starts the camera operation in movie mode, which causes recorded frames to be sent to the caller while encoding those frames.
Parameters
  • pICamera
    []:
    Pointer to ICamera Interface.
Interface
ICAMERA
Prototype
    int ICAMERA_RecordMovie(ICamera * pICamera);
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.
Comment
This function is always asynchronous. This function should be called when the camera is in CAM_MODE_READY. You need to set the media data before calling this function. Also, you may want to specify active encoding, picture format and quality that should be used for encoding the movie. All the events that originate due to this API and due to the following APIs will be reported via the user-specified callback:
  • ICAMERA_Stop()
  • ICAMERA_Pause()
  • ICAMERA_Resume()
  • CAM_STATUS_START callback happens once the recording begins.
  • CAM_STATUS_FRAME callbacks happen only when CAM_PARM_LCD_DIRECT_ACCESS is not enabled.
  • CAM_STATUS_DONE callback occurs when recording is stopped.
  • CAM_STATUS_ABORT callback occurs when recording is aborted. In the callback,
  • AEECameraNotify,
  •     nCmd = CAM_CMD_START ~
        nSubCmd = CAM_MODE_MOVIE.
    
  • Follow