ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
Data Structures | Typedefs | Enumerations | Functions
imp_isp.h File Reference

The header file of ISP. More...

#include "imp_common.h"
Include dependency graph for imp_isp.h:

Go to the source code of this file.

Data Structures

struct  IMPI2CInfo
 Defines I2C bus information. More...
 
struct  IMPSPIInfo
 Defines SPI bus information. More...
 
struct  IMPSensorInfo
 Defines the information of sensor. More...
 
struct  IMPISPDrcAttr
 ISP DRC arrribute. More...
 
struct  IMPISPSinterDenoiseAttr
 ISP Spatial noise reduction module attribute parameter. More...
 
struct  imp_isp_temper_denoise_attr
 ISP noise reduction module attribute for a certain amount of time. More...
 
struct  IMPISPGamma
 Defines the attribute of gamma. More...
 
union  isp_core_expr_attr
 exposure parameters. More...
 
union  isp_core_ae_roi_select
 exposure region of interest. More...
 
struct  isp_core_wb_attr
 White balance attributes. More...
 
struct  isp_core_rgb_coefft_wb_attr
 
struct  IMPISPEVAttr
 attributes of ISP exposure value. More...
 
struct  IMPISPITAttr
 Integration time parameters. More...
 
struct  IMPISPWeight
 Weight information. More...
 
struct  IMPISPAEHist
 AE statistics. More...
 
struct  IMPISPAEZone
 
struct  isp_core_awb_sta_info
 AWB statistics. More...
 
struct  IMPISPAWBHist
 AWB statictis parameters. More...
 
struct  isp_core_wb_zone_info
 
struct  IMPISPAWBZone
 
struct  isp_core_af_sta_info
 AF statistics. More...
 
struct  IMPISPAFHist
 AF statistics. More...
 
struct  IMPISPWaitFrameAttr
 ISP Wait Frame paramater。 More...
 

Typedefs

typedef struct imp_isp_temper_denoise_attr IMPISPTemperDenoiseAttr
 ISP noise reduction module attribute for a certain amount of time.
 
typedef union isp_core_expr_attr IMPISPExpr
 exposure parameters.
 
typedef union isp_core_ae_roi_select IMPISPAERoi
 exposure region of interest.
 
typedef struct isp_core_wb_attr IMPISPWB
 White balance attributes.
 
typedef struct isp_core_rgb_coefft_wb_attr IMPISPCOEFFTWB
 

Enumerations

enum  IMPSensorControlBusType { TX_SENSOR_CONTROL_INTERFACE_I2C = 1, TX_SENSOR_CONTROL_INTERFACE_SPI }
 The enum is types of sensor control bus. More...
 
enum  IMPISPTuningOpsMode { IMPISP_TUNING_OPS_MODE_DISABLE, IMPISP_TUNING_OPS_MODE_ENABLE, IMPISP_TUNING_OPS_MODE_BUTT }
 
enum  IMPISPTuningOpsType { IMPISP_TUNING_OPS_TYPE_AUTO, IMPISP_TUNING_OPS_TYPE_MANUAL, IMPISP_TUNING_OPS_TYPE_RANGE, IMPISP_TUNING_OPS_TYPE_BUTT }
 
enum  IMPISPAntiflickerAttr { IMPISP_ANTIFLICKER_DISABLE, IMPISP_ANTIFLICKER_50HZ, IMPISP_ANTIFLICKER_60HZ, IMPISP_ANTIFLICKER_BUTT }
 ISP Anti-flicker property parameter structure. More...
 
enum  IMPISPDrcMode {
  IMPISP_DRC_MANUAL, IMPISP_DRC_UNLIMIT, IMPISP_DRC_HIGH, IMPISP_DRC_MEDIUM,
  IMPISP_DRC_LOW, IMPISP_DRC_DISABLE, IMPISP_DRC_RANGE
}
 ISP Dynamic range compression (DRC) mode. More...
 
enum  IMPISPTemperMode { IMPISP_TEMPER_DISABLE, IMPISP_TEMPER_AUTO, IMPISP_TEMPER_MANUAL, IMPISP_TEMPER_RANGE }
 ISP noise reduction module operation mode for a certain amount of time. More...
 
enum  IMPISPSceneMode {
  IMPISP_SCENE_MODE_AUTO = 0, IMPISP_SCENE_MODE_BEACH_SNOW = 2, IMPISP_SCENE_MODE_CANDLE_LIGHT = 3, IMPISP_SCENE_MODE_DAWN_DUSK = 4,
  IMPISP_SCENE_MODE_FALL_COLORS = 5, IMPISP_SCENE_MODE_FIREWORKS = 6, IMPISP_SCENE_MODE_LANDSCAPE = 7, IMPISP_SCENE_MODE_NIGHT = 8,
  IMPISP_SCENE_MODE_PARTY_INDOOR = 9, IMPISP_SCENE_MODE_SPORTS = 11, IMPISP_SCENE_MODE_SUNSET = 12, IMPISP_SCENE_MODE_TEXT = 13,
  IMPISP_SCENE_MODE_NIGHT_PORTRAIT = 14
}
 Synthetical expansion function, scene mode selection. More...
 
enum  IMPISPColorfxMode {
  IMPISP_COLORFX_MODE_AUTO = 0, IMPISP_COLORFX_MODE_BW = 1, IMPISP_COLORFX_MODE_SEPIA = 2, IMPISP_COLORFX_MODE_NEGATIVE = 3,
  IMPISP_COLORFX_MODE_VIVID = 9
}
 ISP synthetical expansion function, color mode selection. More...
 
enum  IMPISPRunningMode { IMPISP_RUNNING_MODE_DAY = 0, IMPISP_RUNNING_MODE_NIGHT = 1, IMPISP_RUNNING_MODE_BUTT }
 Defines the enumeration of ISP working mode. More...
 
enum  IMPISPAeStrategy { IMPISP_AE_STRATEGY_SPLIT_BALANCED = 0, IMPISP_AE_STRATEGY_SPLIT_INTEGRATION_PRIORITY = 1, IMPISP_AE_STRATEGY_BUTT }
 Defines the enumeration of ISP's auto exposure strategy. More...
 
enum  isp_core_expr_mode { ISP_CORE_EXPR_MODE_AUTO, ISP_CORE_EXPR_MODE_MANUAL }
 exposure mode. More...
 
enum  isp_core_expr_unit { ISP_CORE_EXPR_UNIT_LINE, ISP_CORE_EXPR_UNIT_US }
 exposure unit. More...
 
enum  isp_core_wb_mode {
  ISP_CORE_WB_MODE_AUTO = 0, ISP_CORE_WB_MODE_MANUAL, ISP_CORE_WB_MODE_DAY_LIGHT, ISP_CORE_WB_MODE_CLOUDY,
  ISP_CORE_WB_MODE_INCANDESCENT, ISP_CORE_WB_MODE_FLOURESCENT, ISP_CORE_WB_MODE_TWILIGHT, ISP_CORE_WB_MODE_SHADE,
  ISP_CORE_WB_MODE_WARM_FLOURESCENT
}
 White balance mode. More...
 
enum  IMPISPAntiFogAttr { ANTIFOG_DISABLE, ANTIFOG_STRONG, ANTIFOG_MEDIUM, ANTIFOG_WEAK }
 ISP antifog working mode. More...
 
enum  IMPISPTuningMode { IMPISP_TUNING_MODE_AUTO, IMPISP_TUNING_MODE_MANUAL, IMPISP_TUNING_MODE_RANGE, IMPISP_TUNING_MODE_BUTT }
 Mode selection. More...
 
enum  isp_core_awb_stats_mode { IMPISP_AWB_STATS_LEGACY_MODE = 0, IMPISP_AWB_STATS_CURRENT_MODE = 1, IMPISP_AWB_STATS_MODE_BUTT }
 AWB statictis mode. More...
 
enum  IMPISPMeshShadingScale { IMPISP_SHAD_SCALE_L, IMPISP_SHAD_SCALE_M, IMPISP_SHAD_SCALE_H, IMPISP_SHAD_SCALE_U }
 

Functions

int IMP_ISP_Open (void)
 Open the ISP module. More...
 
int IMP_ISP_Close (void)
 Close the ISP module. More...
 
int IMP_ISP_AddSensor (IMPSensorInfo *pinfo)
 Add a sensor into ISP module. More...
 
int IMP_ISP_DelSensor (IMPSensorInfo *pinfo)
 Delete a sensor from ISP module. More...
 
int IMP_ISP_EnableSensor (void)
 Enable the registered sensor. More...
 
int IMP_ISP_DisableSensor (void)
 Disable the running sensor. More...
 
int IMP_ISP_SetSensorRegister (uint32_t reg, uint32_t value)
 Set the value of a register of a sensor. More...
 
int IMP_ISP_GetSensorRegister (uint32_t reg, uint32_t *value)
 Obtain a value of the register of sensor. More...
 
int IMP_ISP_EnableTuning (void)
 Enable effect debugging of ISP. More...
 
int IMP_ISP_DisableTuning (void)
 Disable effect debugging of ISP. More...
 
int IMP_ISP_Tuning_SetSensorFPS (uint32_t fps_num, uint32_t fps_den)
 Set the FPS of enabled sensor. More...
 
int IMP_ISP_Tuning_GetSensorFPS (uint32_t *fps_num, uint32_t *fps_den)
 Get the FPS of enabled sensor. More...
 
int IMP_ISP_Tuning_SetAntiFlickerAttr (IMPISPAntiflickerAttr attr)
 Set the antiflicker parameter. More...
 
int IMP_ISP_Tuning_GetAntiFlickerAttr (IMPISPAntiflickerAttr *pattr)
 Get the mode of antiflicker. More...
 
int IMP_ISP_Tuning_SetRawDRC (IMPISPDrcAttr *pinfo)
 Set ISP RAW picture DRC attributes. More...
 
int IMP_ISP_Tuning_GetRawDRC (IMPISPDrcAttr *pinfo)
 Get ISP RAW picture DRC attributes. More...
 
int IMP_ISP_Tuning_SetSinterDnsAttr (IMPISPSinterDenoiseAttr *pinfo)
 Set the attributes of Spatial noise reduction module. More...
 
int IMP_ISP_Tuning_GetSinterDnsAttr (IMPISPSinterDenoiseAttr *pinfo)
 Set the attributes of Spatial noise reduction module. More...
 
int IMP_ISP_Tuning_SetTemperDnsAttr (IMPISPTemperDenoiseAttr *pinfo)
 Set the attribute(s) of noise reduction (for a certain amount of time) module. More...
 
int IMP_ISP_Tuning_GetTemperDnsAttr (IMPISPTemperDenoiseAttr *pinfo)
 Get the attribute(s) of noise reduction (for a certain amount of time) module. More...
 
int IMP_ISP_Tuning_SetWDRAttr (IMPISPTuningOpsMode mode)
 Set ISP wide dynamic module mode (enable/ disable) More...
 
int IMP_ISP_Tuning_GetWDRAttr (IMPISPTuningOpsMode *pmode)
 Get ISP wide dynamic module mode (enable/ disable) More...
 
int IMP_ISP_Tuning_SetSceneMode (IMPISPSceneMode mode)
 Set ISP synthetical effect scene mode. More...
 
int IMP_ISP_Tuning_GetSceneMode (IMPISPSceneMode *pmode)
 Get ISP synthetical effect scene mode. More...
 
int IMP_ISP_Tuning_SetColorfxMode (IMPISPColorfxMode mode)
 Set the color mode of image effect. More...
 
int IMP_ISP_Tuning_GetColorfxMode (IMPISPColorfxMode *pmode)
 Get the color mode of image effect. More...
 
int IMP_ISP_Tuning_SetBrightness (unsigned char bright)
 Set the brightness of image effect. More...
 
int IMP_ISP_Tuning_GetBrightness (unsigned char *pbright)
 Get the brightness of image effect. More...
 
int IMP_ISP_Tuning_SetContrast (unsigned char contrast)
 Set the contrast of image effect. More...
 
int IMP_ISP_Tuning_GetContrast (unsigned char *pcontrast)
 Get the contrast of image effect. More...
 
int IMP_ISP_Tuning_SetSharpness (unsigned char sharpness)
 Set the sharpness of image effect. More...
 
int IMP_ISP_Tuning_GetSharpness (unsigned char *psharpness)
 Get the sharpness of image effect. More...
 
int IMP_ISP_Tuning_SetSaturation (unsigned char sat)
 Set the saturation of image effect. More...
 
int IMP_ISP_Tuning_GetSaturation (unsigned char *psat)
 Get the saturation of image effect. More...
 
int IMP_ISP_Tuning_SetFWFreeze (IMPISPTuningOpsMode mode)
 Freeze ISP firmware operation. More...
 
int IMP_ISP_Tuning_SaveAllParam (char *path)
 Saves all debugging parameters of ISP modules. More...
 
int IMP_ISP_Tuning_SetISPBypass (IMPISPTuningOpsMode enable)
 Control ISP modules. More...
 
int IMP_ISP_Tuning_GetTotalGain (uint32_t *gain)
 Get the overall gain value of the ISP output image. More...
 
int IMP_ISP_Tuning_SetISPHflip (IMPISPTuningOpsMode mode)
 Set ISP image mirror(horizontal) effect function (enable/disable) More...
 
int IMP_ISP_Tuning_GetISPHflip (IMPISPTuningOpsMode *pmode)
 Get ISP image mirror(horizontal) effect function (enable/disable) More...
 
int IMP_ISP_Tuning_SetISPVflip (IMPISPTuningOpsMode mode)
 Set ISP image mirror(vertical) effect function (enable/disable) More...
 
int IMP_ISP_Tuning_GetISPVflip (IMPISPTuningOpsMode *pmode)
 Get ISP image mirror(vertical) effect function (enable/disable) More...
 
int IMP_ISP_Tuning_SetISPHVflip (IMPISPTuningOpsMode hmode, IMPISPTuningOpsMode vmode)
 Set ISP image mirror(horizontal/vertical) effect function (enable/disable) More...
 
int IMP_ISP_Tuning_GetISPHVflip (IMPISPTuningOpsMode *phmode, IMPISPTuningOpsMode *pvmode)
 获取ISP图像H/V反转效果功能的操作状态 More...
 
int IMP_ISP_Tuning_SetISPRunningMode (IMPISPRunningMode mode)
 Set ISP running mode, normal mode or night vision mode; default mode: normal mode. More...
 
int IMP_ISP_Tuning_GetISPRunningMode (IMPISPRunningMode *pmode)
 Get ISP running mode, normal mode or night vision mode;. More...
 
int IMP_ISP_Tuning_SetAeStrategy (IMPISPAeStrategy strategy)
 Set ISP working mode, auto exposure policy configuration, normal mode or exposure priority mode; default: normal mode. More...
 
int IMP_ISP_Tuning_GetAeStrategy (IMPISPAeStrategy *pstrategy)
 Get ISP working mode, auto exposure policy configuration, normal mode or exposure priority mode. More...
 
int IMP_ISP_Tuning_SetGamma (IMPISPGamma *gamma)
 Sets the attributes of ISP gamma. More...
 
int IMP_ISP_Tuning_GetGamma (IMPISPGamma *gamma)
 Obtains the attributes of gamma. More...
 
int IMP_ISP_Tuning_SetAeComp (int comp)
 Setting AE compensation.AE compensation parameters can adjust the target of the image AE. More...
 
int IMP_ISP_Tuning_GetAeComp (int *comp)
 Obtains the compensation of AE. More...
 
int IMP_ISP_Tuning_SetExpr (IMPISPExpr *expr)
 Set AE attributes. More...
 
int IMP_ISP_Tuning_GetExpr (IMPISPExpr *expr)
 Get AE attributes. More...
 
int IMP_ISP_Tuning_AE_GetROI (IMPISPAERoi *isp_ae_roi)
 Access to AE statistical area. More...
 
int IMP_ISP_Tuning_AE_SetROI (IMPISPAERoi *isp_ae_roi)
 Set AE statistical area. More...
 
int IMP_ISP_Tuning_SetWB (IMPISPWB *wb)
 Set the white balance function settings. More...
 
int IMP_ISP_Tuning_GetWB (IMPISPWB *wb)
 Get the white balance function settings. More...
 
int IMP_ISP_Tuning_GetWB_Statis (IMPISPWB *wb)
 Get the white balance statistic value. More...
 
int IMP_ISP_Tuning_Awb_GetCwfShift (IMPISPWB *isp_wb_attr)
 Get the position of the AWB's CWF light source in ISP. More...
 
int IMP_ISP_Tuning_Awb_SetCwfShift (IMPISPWB *isp_wb_attr)
 Set the attributes of CWF light. More...
 
int IMP_ISP_Tuning_Awb_GetRgbCoefft (IMPISPCOEFFTWB *isp_core_rgb_coefft_wb_attr)
 Set the AWB r g b channel offset source in ISP. More...
 
int IMP_ISP_Tuning_Awb_SetRgbCoefft (IMPISPCOEFFTWB *isp_core_rgb_coefft_wb_attr)
 Sets the Max value of sensor color r g b. More...
 
int IMP_ISP_Tuning_SetMaxAgain (uint32_t gain)
 Sets the Max value of sensor analog gain. More...
 
int IMP_ISP_Tuning_GetMaxAgain (uint32_t *gain)
 Get the Max value of sensor analog gain. More...
 
int IMP_ISP_Tuning_SetMaxDgain (uint32_t gain)
 Set the Max value of sensor Digital gain. More...
 
int IMP_ISP_Tuning_GetMaxDgain (uint32_t *gain)
 Obtains the Max value of isp digital gain. More...
 
int IMP_ISP_Tuning_SetVideoDrop (void(*cb)(void))
 Set the video loss function. More...
 
int IMP_ISP_Tuning_SetHiLightDepress (uint32_t strength)
 Set highlight intensity controls. More...
 
int IMP_ISP_Tuning_SetTemperStrength (uint32_t ratio)
 Set 3D noise reduction intensity. More...
 
int IMP_ISP_Tuning_SetSinterStrength (uint32_t ratio)
 Set 2D noise reduction intensity. More...
 
int IMP_ISP_Tuning_SetDPStrength (uint32_t ratio)
 Set DPC intensity. More...
 
int IMP_ISP_Tuning_SetAntiFogAttr (IMPISPAntiFogAttr attr)
 Sets the attributes of antifog. More...
 
int IMP_ISP_Tuning_GetEVAttr (IMPISPEVAttr *attr)
 Obtains the attributes of exposure value. More...
 
int IMP_ISP_Tuning_EnableMovestate (void)
 When the sensor will motion, it should be called. More...
 
int IMP_ISP_Tuning_DisableMovestate (void)
 When the sensor is from motion to still, it should be called. More...
 
int IMP_ISP_Tuning_SetIntegrationTime (IMPISPITAttr *itattr)
 Set ISP Integration time attributes. More...
 
int IMP_ISP_Tuning_GetIntegrationTime (IMPISPITAttr *itattr)
 Get ISP integration time attributes. More...
 
int IMP_ISP_Tuning_SetAeWeight (IMPISPWeight *ae_weight)
 Set zone weighting for AE. More...
 
int IMP_ISP_Tuning_GetAeWeight (IMPISPWeight *ae_weight)
 Get zone weighting for AE. More...
 
int IMP_ISP_Tuning_SetAwbWeight (IMPISPWeight *awb_weight)
 Set zone weighting for AWB. More...
 
int IMP_ISP_Tuning_GetAwbWeight (IMPISPWeight *awb_weight)
 Get zone weighting for AWB. More...
 
int IMP_ISP_Tuning_SetAeHist (IMPISPAEHist *ae_hist)
 Set AE statistics parameters. More...
 
int IMP_ISP_Tuning_GetAeHist (IMPISPAEHist *ae_hist)
 Get AE statistics information. More...
 
int IMP_ISP_Tuning_GetAeZone (IMPISPAEZone *ae_zone)
 Get AE Statistics every block. More...
 
int IMP_ISP_Tuning_GetAwbZone (IMPISPAWBZone *awb_zone)
 Get AWB Statistics every blcok。 More...
 
int IMP_ISP_Tuning_SetAwbHist (IMPISPAWBHist *awb_hist)
 Set AWB statistic parameters. More...
 
int IMP_ISP_Tuning_GetAfHist (IMPISPAFHist *af_hist)
 Set AF statistic parameters. More...
 
int IMP_ISP_Tuning_SetAfHist (IMPISPAFHist *af_hist)
 Get AF statistics. More...
 
int IMP_ISP_Tuning_WaitFrame (IMPISPWaitFrameAttr *attr)
 Wait frame done. More...
 
int IMP_ISP_Tuning_SetMeshShadingScale (IMPISPMeshShadingScale scale)
 Set Mesh Shading Scale. More...
 

Detailed Description

The header file of ISP.