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

Developer

API Reference

ICAMERA_SETFLASHCTL()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_GetFlashCtl()
Description
This function allows app to control device flash. User can set flash type and level.
Params
pICamera
[]:
Pointer to ICamera Interface.
nFlashType
[]:
Specifies flash type. CAM_FLASHTYPE_XXX
nFlashLevel
[]:
Flash
nCustomLevel
[]:
If nFlashLevel is CAM_FLASH_CUSTOM, this specifies the level
Interface
  • ICAMERA
Prototype
  •    int ICAMERA_SetFlashCtl(ICamera *pICamera, int32 nFlashType, int32 nFlashLevel, int32 nCustomLevel)
    
Return
  • SUCCESS: Successful. Synchronous operation completed. EBADPARM: Bad parameter is passed ENOMEMORY: Not enough memory EUNSUPPORTED: Parameter is not supported EFAILED: General failure. Current focus type may not be CAM_FOCUS_AUTO
Side Effect
  • None.
Comments
This function may be synchronous or asynchronous depending on the values passed in. To get flash control, use ICAMERA_GetFlashCtl() API. See Camera Control Parameters for CAM_PARM_FLASH_CTL details.