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

Developer

API Reference

AEECAMERANOTIFY

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_RegisterNotify, ICAMERA_SetParm(), ICAMERA_GetParm(), ICAMERA_Start()
Description
This structure contains information of an event generated by ICamera object. It is sent via the registered callback function.
Members
  • pCam:    ICamera object originating this callback
  • nCmd:    Command code. CAM_CMD_XXX
  • nSubCmd: Sub command code (see comments)
  • nStatus: Status code. CAM_STATUS_XXX
  • nReserved: Reserved field
  • pData:   Context-based data
  • dwSize:  Context-based data size
Definition
  •    typedef struct AEECameraNotify
       {
          ICamera *      pCam;
          int16          nCmd;
          int16          nSubCmd;
          int16          nStatus;
          int16          nReserved;
          void *         pData;
          uint32         dwSize;
       } AEECameraNotify;
    
Comments
If nCmd = CAM_CMD_SETPARM/CAM_CMD_GETPARM, then nSubCmd will be nParmID (CAM_PARM_XXX). If nCmd = CAM_CMD_START, then nSubCmd will be CAM_MODE_PREVIEW/CAM_MODE_SNAPSHOT/CAM_MODE_MOVIE.