Developer

API Reference

Camera Command codes

Brew Release
Brew MP 1.0.2
See Also
None
Description
Command codes are sent to the application via registered callback function to indicate event type and to pass data to client. AEECameraNotify::nCmd in the callback function contains the following command codes.
Members
  • CAM_CMD_BASE:  Base used by IMedia
  • CAM_CMD_USER_BASE:  Base for derived class
  • CAM_CMD_SETPARM:  S
  • CAM_CMD_GETPARM:  G
  • CAM_CMD_START:  S
  • CAM_CMD_ENCODESNAPSHOT:  EncodeSnapshot()
Definition
#define CAM_CMD_BASE                1        // Base used by ICamera
#define CAM_CMD_USER_BASE           0x1000   // Base for derived class

#define CAM_CMD_SETPARM             (CAM_CMD_BASE)     // SetParm(), nSubCmd = nParmID
#define CAM_CMD_GETPARM             (CAM_CMD_BASE + 1) // GetParm(), nSubCmd = nParmID
#define CAM_CMD_START               (CAM_CMD_BASE + 2) // Start(), nSubCmd = CAM_MODE_PREVIEW/CAM_MODE_SNAPSHOT/CAM_MODE_MOVIE
#define CAM_CMD_ENCODESNAPSHOT      (CAM_CMD_BASE + 3) // EncodeSnapshot()
Comment
None
  • Follow