Developer

API Reference

ICAMERA_GetFlashCtl()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_SetFlashCtl()
Description
This function allows app to get flash type and level.
Parameters
  • pICamera
    []:
    Pointer to ICamera Interface.
  • nFlashType
    []:
    Specifies flash type. CAM_FLASHTYPE_XXX
  • pnFlashLevel
    [out]:
    Pointer to current flash
  • pi
    [out]:
    If nFlashLevel is CAM_FLASH_CUSTOM, this specifies the level range info
Interface
ICAMERA
Prototype
   int ICAMERA_GetFlashCtl(ICamera *me, int32 nFlashType, int32 *pnFlashLevel, AEEParmInfo *pi)
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.
Comment
This function may be synchronous or asynchronous depending on the values passed in. To set flash control, use ICAMERA_SetFlashCtl() API. See Camera Control Parameters for CAM_PARM_FLASH_CTL details.
  • Follow