ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
imp_isp.h
Go to the documentation of this file.
1 /*
2  * IMP ISP header file.
3  *
4  * Copyright (C) 2014 Ingenic Semiconductor Co.,Ltd
5  */
6 
7 #ifndef __IMP_ISP_H__
8 #define __IMP_ISP_H__
9 
10 #include "imp_common.h"
11 
12 #ifdef __cplusplus
13 #if __cplusplus
14 extern "C"
15 {
16 #endif
17 #endif /* __cplusplus */
18 
109 typedef enum {
113 
117 typedef struct {
118  char type[20];
119  int addr;
121 } IMPI2CInfo;
125 typedef struct {
126  char modalias[32];
127  int bus_num;
128 } IMPSPIInfo;
129 
133 typedef struct {
134  char name[32];
136  union {
139  };
140  unsigned short rst_gpio;
141  unsigned short pwdn_gpio;
142  unsigned short power_gpio;
143 } IMPSensorInfo;
144 
159 int IMP_ISP_Open(void);
160 
175 int IMP_ISP_Close(void);
176 
191 int IMP_ISP_AddSensor(IMPSensorInfo *pinfo);
192 
207 int IMP_ISP_DelSensor(IMPSensorInfo *pinfo);
208 
223 int IMP_ISP_EnableSensor(void);
224 
239 int IMP_ISP_DisableSensor(void);
240 
257 int IMP_ISP_SetSensorRegister(uint32_t reg, uint32_t value);
258 
275 int IMP_ISP_GetSensorRegister(uint32_t reg, uint32_t *value);
276 
277 typedef enum {
282 
283 typedef enum {
289 
302 int IMP_ISP_EnableTuning(void);
303 
316 int IMP_ISP_DisableTuning(void);
317 
331 int IMP_ISP_Tuning_SetSensorFPS(uint32_t fps_num, uint32_t fps_den);
332 
347 int IMP_ISP_Tuning_GetSensorFPS(uint32_t *fps_num, uint32_t *fps_den);
348 
352 typedef enum {
358 
372 
386 
390 typedef enum {
398 } IMPISPDrcMode;
399 
403 typedef struct {
405  unsigned char drc_strength;
406  unsigned char dval_max;
407  unsigned char dval_min;
408  unsigned char slop_max;
409  unsigned char slop_min;
410  unsigned short black_level;
411  unsigned short white_level;
412 } IMPISPDrcAttr;
413 
429 
445 
449 typedef struct {
452  unsigned char sinter_strength;
453  unsigned char sval_max;
454  unsigned char sval_min;
456 
460 typedef enum {
466 
472  unsigned char temper_strength;
473  unsigned char tval_max;
474  unsigned char tval_min;
476 
477 
493 
509 
510 #if 0
511 
525 int IMP_ISP_Tuning_SetTemperDnsCtl(IMPISPTemperDenoiseAttr *pinfo);
526 
527 #endif
528 
543 
559 
575 
591 
595 typedef enum {
610 
626 
642 
646 typedef enum {
653 
669 
685 
700 int IMP_ISP_Tuning_SetBrightness(unsigned char bright);
701 
716 int IMP_ISP_Tuning_GetBrightness(unsigned char *pbright);
717 
732 int IMP_ISP_Tuning_SetContrast(unsigned char contrast);
733 
748 int IMP_ISP_Tuning_GetContrast(unsigned char *pcontrast);
749 
764 int IMP_ISP_Tuning_SetSharpness(unsigned char sharpness);
765 
780 int IMP_ISP_Tuning_GetSharpness(unsigned char *psharpness);
781 
796 int IMP_ISP_Tuning_SetSaturation(unsigned char sat);
797 
812 int IMP_ISP_Tuning_GetSaturation(unsigned char *psat);
813 
814 #if 0
815 
829 int IMP_ISP_Tuning_SetISPProcess(IMPISPTuningOpsMode mode);
830 #endif
831 
845 
860 int IMP_ISP_Tuning_SaveAllParam(char *path);
861 
877 
890 int IMP_ISP_Tuning_GetTotalGain(uint32_t *gain);
891 
907 
923 
939 
955 
970 
985 
989 typedef enum {
994 
1025 
1039 
1043 typedef enum {
1048 
1078 
1091 
1095 typedef struct {
1096  uint16_t gamma[129];
1097 } IMPISPGamma;
1098 
1112 
1126 
1140 int IMP_ISP_Tuning_SetAeComp(int comp);
1141 
1154 int IMP_ISP_Tuning_GetAeComp(int *comp);
1155 
1162 };
1163 
1170 };
1171 
1175 typedef union isp_core_expr_attr{
1176  struct {
1179  uint16_t time;
1180  } s_attr;
1181  struct {
1182  enum isp_core_expr_mode mode;
1183  uint16_t integration_time;
1187  } g_attr;
1188 }IMPISPExpr;
1189 
1190 
1204 
1218 
1223  struct {
1224  unsigned endy :8;
1225  unsigned endx :8;
1226  unsigned starty :8;
1227  unsigned startx :8;
1228  };
1229  uint32_t value;
1230 } IMPISPAERoi;
1231 
1244 int IMP_ISP_Tuning_AE_GetROI(IMPISPAERoi *isp_ae_roi);
1245 
1258 int IMP_ISP_Tuning_AE_SetROI(IMPISPAERoi *isp_ae_roi);
1259 
1273 };
1274 
1278 typedef struct isp_core_wb_attr{
1280  uint16_t rgain;
1281  uint16_t bgain;
1282 }IMPISPWB;
1283 
1297 
1311 
1325 
1338 int IMP_ISP_Tuning_Awb_GetCwfShift(IMPISPWB *isp_wb_attr);
1339 
1365 int IMP_ISP_Tuning_Awb_SetCwfShift(IMPISPWB *isp_wb_attr);
1366 
1382  unsigned short rgb_coefft_wb_r;
1383  unsigned short rgb_coefft_wb_g;
1384  unsigned short rgb_coefft_wb_b;
1385 
1414 
1415 int IMP_ISP_Tuning_SetMaxAgain(uint32_t gain);
1416 
1430 int IMP_ISP_Tuning_GetMaxAgain(uint32_t *gain);
1431 
1453 int IMP_ISP_Tuning_SetMaxDgain(uint32_t gain);
1454 
1468  int IMP_ISP_Tuning_GetMaxDgain(uint32_t *gain);
1469 
1480 int IMP_ISP_Tuning_GetMaxDgain(uint32_t *gain);
1481 
1494 int IMP_ISP_Tuning_SetVideoDrop(void (*cb)(void));
1495 
1508 int IMP_ISP_Tuning_SetHiLightDepress(uint32_t strength);
1509 
1522 int IMP_ISP_Tuning_SetTemperStrength(uint32_t ratio);
1523 
1536 int IMP_ISP_Tuning_SetSinterStrength(uint32_t ratio);
1537 
1550 int IMP_ISP_Tuning_SetDPStrength(uint32_t ratio);
1551 
1555 typedef enum {
1561 
1575 
1579 typedef struct {
1580  uint32_t ev;
1581  uint32_t expr_us;
1582  uint32_t ev_log2;
1583  uint32_t again;
1584  uint32_t dgain;
1585  uint32_t gain_log2;
1586 }IMPISPEVAttr;
1587 
1600 
1612 
1624 
1625 
1629 typedef enum {
1635 
1639 typedef struct {
1641  uint16_t integration_time;
1643 } IMPISPITAttr;
1644 
1658 
1672 
1676 typedef struct {
1677  unsigned char weight[15][15];
1678 } IMPISPWeight;
1679 
1693 
1707 
1720 int IMP_ISP_Tuning_SetAwbWeight(IMPISPWeight *awb_weight);
1721 
1734 int IMP_ISP_Tuning_GetAwbWeight(IMPISPWeight *awb_weight);
1735 
1739 typedef struct {
1740  unsigned char ae_histhresh[4];
1741  unsigned short ae_hist[5];
1742  unsigned char ae_stat_nodeh;
1743  unsigned char ae_stat_nodev;
1744 } IMPISPAEHist;
1745 
1759 
1773 
1774 typedef struct {
1775  unsigned short ae_sta_zone[15*15];
1776 } IMPISPAEZone;
1777 
1791 
1796  unsigned short r_gain;
1797  unsigned short b_gain;
1798  unsigned int awb_sum;
1799 };
1806  IMPISP_AWB_STATS_MODE_BUTT,
1807 };
1811 typedef struct {
1812  struct isp_core_awb_sta_info awb_stat;
1813  enum isp_core_awb_stats_mode awb_stats_mode;
1814  unsigned short awb_whitelevel;
1815  unsigned short awb_blacklevel;
1816  unsigned short cr_ref_max;
1817  unsigned short cr_ref_min;
1818  unsigned short cb_ref_max;
1819  unsigned short cb_ref_min;
1820  unsigned char awb_stat_nodeh;
1821  unsigned char awb_stat_nodev;
1822 } IMPISPAWBHist;
1823 
1825  unsigned short red_green;
1826  unsigned short blue_green;
1827  unsigned int sum;
1828 };
1829 
1830 typedef struct {
1831  struct isp_core_wb_zone_info awb_sta_zone[15][15];
1832 } IMPISPAWBZone;
1833 
1847 
1861 
1875 
1880  unsigned short af_metrics;
1881  unsigned short af_metrics_alt;
1882  unsigned short af_thresh_read;
1883  unsigned short af_intensity_read;
1884  unsigned short af_intensity_zone;
1885  unsigned int af_total_pixels;
1886  unsigned int af_counted_pixels;
1887 };
1891 typedef struct {
1892  struct isp_core_af_sta_info af_stat;
1893  unsigned char af_metrics_shift;
1894  unsigned short af_thresh;
1895  unsigned short af_thresh_alt;
1896  unsigned char af_stat_nodeh;
1897  unsigned char af_stat_nodev;
1898  unsigned char af_np_offset;
1899  unsigned char af_intensity_mode;
1900  unsigned char af_skipx;
1901  unsigned char af_offsetx;
1902  unsigned char af_skipy;
1903  unsigned char af_offsety;
1904  unsigned char af_scale_top;
1905  unsigned char af_scale_bottom;
1906 } IMPISPAFHist;
1907 
1921 
1935 
1939 typedef struct {
1940  uint32_t timeout;
1941  uint64_t cnt;
1943 
1956 
1957 typedef enum {
1963 
1976 
1977 #ifdef __cplusplus
1978 #if __cplusplus
1979 }
1980 #endif
1981 #endif /* __cplusplus */
1982 
1987 #endif /* __IMP_ISP_H__ */
I2C control bus.
Definition: imp_isp.h:110
isp_core_expr_unit
exposure unit.
Definition: imp_isp.h:1167
uint32_t ev_log2
exposure time in log2 format
Definition: imp_isp.h:1582
uint32_t timeout
limit of time,unit ms
Definition: imp_isp.h:1940
uint32_t dgain
Digital gain.
Definition: imp_isp.h:1584
Weak intensity.
Definition: imp_isp.h:1559
int IMP_ISP_Tuning_SetMeshShadingScale(IMPISPMeshShadingScale scale)
Set Mesh Shading Scale.
Disable antifog.
Definition: imp_isp.h:1556
Definition: imp_isp.h:1381
unsigned short cb_ref_max
Maximum value of B/G for white region [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1818
IMPISPColorfxMode
ISP synthetical expansion function, color mode selection.
Definition: imp_isp.h:646
int IMP_ISP_Tuning_Awb_SetRgbCoefft(IMPISPCOEFFTWB *isp_core_rgb_coefft_wb_attr)
Sets the Max value of sensor color r g b.
uint16_t integration_time_max
The max value of integration time, the unit is line.
Definition: imp_isp.h:1185
ENABLE mode of the current module.
Definition: imp_isp.h:279
unsigned char af_scale_top
scale of bottom half of the range [0 ~ 4]: 0=1x ,1=2x, 2=4x, 4=8x, 4=16x
Definition: imp_isp.h:1904
uint16_t integration_time_min
The min value of integration time, the unit is line.
Definition: imp_isp.h:1184
int IMP_ISP_Tuning_SetWDRAttr(IMPISPTuningOpsMode mode)
Set ISP wide dynamic module mode (enable/ disable)
Set Range of the current module.
Definition: imp_isp.h:286
unsigned short b_gain
AWB statistics B/G color ratio output [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1797
struct isp_core_wb_attr IMPISPWB
White balance attributes.
int IMP_ISP_Tuning_SetISPBypass(IMPISPTuningOpsMode enable)
Control ISP modules.
IMPISPTemperMode
ISP noise reduction module operation mode for a certain amount of time.
Definition: imp_isp.h:460
int IMP_ISP_DisableTuning(void)
Disable effect debugging of ISP.
enum isp_core_expr_unit unit
set the exposure unit
Definition: imp_isp.h:1178
unsigned char tval_max
The Max value on Set Range mode.
Definition: imp_isp.h:473
int IMP_ISP_Tuning_SetAeHist(IMPISPAEHist *ae_hist)
Set AE statistics parameters.
Definition: imp_isp.h:1774
unsigned short af_metrics
The integrated and normalized measure of contrast [0 ~ 65535].
Definition: imp_isp.h:1880
int IMP_ISP_DelSensor(IMPSensorInfo *pinfo)
Delete a sensor from ISP module.
Disable mode.
Definition: imp_isp.h:461
int IMP_ISP_Tuning_GetWB(IMPISPWB *wb)
Get the white balance function settings.
int IMP_ISP_Tuning_GetSensorFPS(uint32_t *fps_num, uint32_t *fps_den)
Get the FPS of enabled sensor.
Strong intensity.
Definition: imp_isp.h:1557
Set Range mode.
Definition: imp_isp.h:464
uint16_t integration_time
Integration time.
Definition: imp_isp.h:1641
int IMP_ISP_Tuning_GetWB_Statis(IMPISPWB *wb)
Get the white balance statistic value.
effect paramater, parameters have to be less than this value
Definition: imp_isp.h:287
int IMP_ISP_Tuning_GetAntiFlickerAttr(IMPISPAntiflickerAttr *pattr)
Get the mode of antiflicker.
int IMP_ISP_Tuning_SetGamma(IMPISPGamma *gamma)
Sets the attributes of ISP gamma.
night portrait mode
Definition: imp_isp.h:608
sepia mode
Definition: imp_isp.h:649
IMPISPRunningMode
Defines the enumeration of ISP working mode.
Definition: imp_isp.h:989
unsigned char af_intensity_mode
AF intensity normalization mode [0 ~ 7].
Definition: imp_isp.h:1899
effect paramater, parameters have to be less than this value
Definition: imp_isp.h:1633
ISP night mode.
Definition: imp_isp.h:991
unsigned char dval_max
The Max value on Set Range mode,the range is [0, 0xff].
Definition: imp_isp.h:406
AF statistics.
Definition: imp_isp.h:1879
int IMP_ISP_Tuning_EnableMovestate(void)
When the sensor will motion, it should be called.
IMPISPTuningMode mode
Integration Time Mode.
Definition: imp_isp.h:1640
IMPI2CInfo i2c
I2C bus information.
Definition: imp_isp.h:137
maximum value
Definition: imp_isp.h:992
IMPISPDrcMode
ISP Dynamic range compression (DRC) mode.
Definition: imp_isp.h:390
int IMP_ISP_Tuning_GetISPHVflip(IMPISPTuningOpsMode *phmode, IMPISPTuningOpsMode *pvmode)
获取ISP图像H/V反转效果功能的操作状态
white and black mode
Definition: imp_isp.h:648
IMPISPTuningMode
Mode selection.
Definition: imp_isp.h:1629
int IMP_ISP_Tuning_GetSharpness(unsigned char *psharpness)
Get the sharpness of image effect.
isp_core_expr_mode
exposure mode.
Definition: imp_isp.h:1159
AWB statictis parameters.
Definition: imp_isp.h:1811
Mesh Shading scale is 3.
Definition: imp_isp.h:1961
ISP DRC arrribute.
Definition: imp_isp.h:403
int IMP_ISP_Tuning_GetMaxDgain(uint32_t *gain)
Obtains the Max value of isp digital gain.
unsigned short r_gain
AWB statistics R/G color ratio output [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1796
unsigned char sval_max
The Max value on Set Range mode.
Definition: imp_isp.h:453
int IMP_ISP_Tuning_SetISPHVflip(IMPISPTuningOpsMode hmode, IMPISPTuningOpsMode vmode)
Set ISP image mirror(horizontal/vertical) effect function (enable/disable)
SPI control bus.
Definition: imp_isp.h:111
unsigned char ae_stat_nodeh
Number of active zones horizontally for AE stats collection.
Definition: imp_isp.h:1742
MANUAL mode of the current module.
Definition: imp_isp.h:285
int IMP_ISP_Tuning_SetContrast(unsigned char contrast)
Set the contrast of image effect.
int IMP_ISP_Tuning_GetWDRAttr(IMPISPTuningOpsMode *pmode)
Get ISP wide dynamic module mode (enable/ disable)
Incandescent mode.
Definition: imp_isp.h:1268
unsigned char dval_min
The Min value on Set Range mode,the range is [0, 0xff].
Definition: imp_isp.h:407
uint32_t again
Analog gain.
Definition: imp_isp.h:1583
IMPSensorControlBusType cbus_type
the sensor control bus type
Definition: imp_isp.h:135
Legacy mode.
Definition: imp_isp.h:1804
int IMP_ISP_Tuning_SetColorfxMode(IMPISPColorfxMode mode)
Set the color mode of image effect.
enum isp_core_wb_mode mode
The mode for WB; auto and manual mode.
Definition: imp_isp.h:1279
int IMP_ISP_EnableSensor(void)
Enable the registered sensor.
int IMP_ISP_Tuning_Awb_SetCwfShift(IMPISPWB *isp_wb_attr)
Set the attributes of CWF light.
Fluorescent mode.
Definition: imp_isp.h:1269
int IMP_ISP_Tuning_GetColorfxMode(IMPISPColorfxMode *pmode)
Get the color mode of image effect.
unsigned short red_green
r_gain
Definition: imp_isp.h:1825
int IMP_ISP_Tuning_SetAeComp(int comp)
Setting AE compensation.AE compensation parameters can adjust the target of the image AE...
Auto mode.
Definition: imp_isp.h:647
int IMP_ISP_Tuning_SetBrightness(unsigned char bright)
Set the brightness of image effect.
int IMP_ISP_Tuning_SetMaxDgain(uint32_t gain)
Set the Max value of sensor Digital gain.
ISP noise reduction module attribute for a certain amount of time.
Definition: imp_isp.h:470
unsigned short af_intensity_read
The calculated value of AF intensity [0 ~ 65535].
Definition: imp_isp.h:1883
Definition: imp_isp.h:1824
int IMP_ISP_Tuning_Awb_GetRgbCoefft(IMPISPCOEFFTWB *isp_core_rgb_coefft_wb_attr)
Set the AWB r g b channel offset source in ISP.
int IMP_ISP_Tuning_SetTemperDnsAttr(IMPISPTemperDenoiseAttr *pinfo)
Set the attribute(s) of noise reduction (for a certain amount of time) module.
uint16_t integration_time
The integration time, the unit is line.
Definition: imp_isp.h:1183
struct imp_isp_temper_denoise_attr IMPISPTemperDenoiseAttr
ISP noise reduction module attribute for a certain amount of time.
Enable antiflicker module and set the frequencye to 60HZ.
Definition: imp_isp.h:355
night mode
Definition: imp_isp.h:603
unsigned short af_thresh_read
The calculated value of AF threshold [0 ~ 65535].
Definition: imp_isp.h:1882
unsigned char awb_stat_nodeh
Number of active zones horizontally for AWB stats collection.
Definition: imp_isp.h:1820
ISP day mode.
Definition: imp_isp.h:990
AUTO mode of the current module.
Definition: imp_isp.h:1630
Defines SPI bus information.
Definition: imp_isp.h:125
int IMP_ISP_Tuning_SetSceneMode(IMPISPSceneMode mode)
Set ISP synthetical effect scene mode.
DRC Set Rnage mode.
Definition: imp_isp.h:397
uint32_t expr_us
exposure time in millisecond
Definition: imp_isp.h:1581
AUTO mode of the current module.
Definition: imp_isp.h:284
uint16_t one_line_expr_in_us
A integration line correspond to the time (ms)
Definition: imp_isp.h:1186
int IMP_ISP_Tuning_SetRawDRC(IMPISPDrcAttr *pinfo)
Set ISP RAW picture DRC attributes.
int addr
the I2C address
Definition: imp_isp.h:119
fall colors mode
Definition: imp_isp.h:600
vivid color mode
Definition: imp_isp.h:651
Integration time parameters.
Definition: imp_isp.h:1639
int IMP_ISP_Tuning_GetSinterDnsAttr(IMPISPSinterDenoiseAttr *pinfo)
Set the attributes of Spatial noise reduction module.
IMPISPTuningOpsMode
Definition: imp_isp.h:277
unsigned char sinter_strength
Intensity, manual mode is effective.
Definition: imp_isp.h:452
int IMP_ISP_Tuning_GetAeComp(int *comp)
Obtains the compensation of AE.
Disable antiflicker module.
Definition: imp_isp.h:353
DRC very high Compression mode.
Definition: imp_isp.h:392
unsigned char sval_min
The Min value on Set Range mode.
Definition: imp_isp.h:454
isp_core_wb_mode
White balance mode.
Definition: imp_isp.h:1263
int IMP_ISP_AddSensor(IMPSensorInfo *pinfo)
Add a sensor into ISP module.
IMPISPSceneMode
Synthetical expansion function, scene mode selection.
Definition: imp_isp.h:595
effect parameter, parameters have to be less than this value
Definition: imp_isp.h:356
int IMP_ISP_Tuning_SetAfHist(IMPISPAFHist *af_hist)
Get AF statistics.
int IMP_ISP_Tuning_GetTotalGain(uint32_t *gain)
Get the overall gain value of the ISP output image.
uint32_t gain_log2
Gain in log2 format.
Definition: imp_isp.h:1585
unsigned short af_intensity_zone
The calculated value of AF intensity zone [0 ~ 65535].
Definition: imp_isp.h:1884
uint16_t rgain
red gain attribute, manual mode is effective
Definition: imp_isp.h:1280
unsigned char af_stat_nodeh
Number of active zones horizontally for AF stats [0 ~ 15].
Definition: imp_isp.h:1896
int IMP_ISP_Tuning_WaitFrame(IMPISPWaitFrameAttr *attr)
Wait frame done.
int i2c_adapter_id
I2C adapter ID.
Definition: imp_isp.h:120
uint64_t cnt
Frame statistics.
Definition: imp_isp.h:1941
int IMP_ISP_Tuning_SetSinterDnsAttr(IMPISPSinterDenoiseAttr *pinfo)
Set the attributes of Spatial noise reduction module.
int IMP_ISP_Tuning_GetGamma(IMPISPGamma *gamma)
Obtains the attributes of gamma.
normal mode >
Definition: imp_isp.h:1044
int IMP_ISP_Tuning_SetIntegrationTime(IMPISPITAttr *itattr)
Set ISP Integration time attributes.
Set the range of current module.
Definition: imp_isp.h:1632
int IMP_ISP_Tuning_GetAwbWeight(IMPISPWeight *awb_weight)
Get zone weighting for AWB.
int IMP_ISP_Tuning_SetVideoDrop(void(*cb)(void))
Set the video loss function.
int IMP_ISP_Tuning_GetAeStrategy(IMPISPAeStrategy *pstrategy)
Get ISP working mode, auto exposure policy configuration, normal mode or exposure priority mode...
unsigned char awb_stat_nodev
Number of active zones vertically for AWB stats collection.
Definition: imp_isp.h:1821
int IMP_ISP_Tuning_SetISPVflip(IMPISPTuningOpsMode mode)
Set ISP image mirror(vertical) effect function (enable/disable)
int IMP_ISP_Tuning_GetIntegrationTime(IMPISPITAttr *itattr)
Get ISP integration time attributes.
DISABLE mode of the current module.
Definition: imp_isp.h:278
int IMP_ISP_Tuning_SetSinterStrength(uint32_t ratio)
Set 2D noise reduction intensity.
int IMP_ISP_Tuning_GetAfHist(IMPISPAFHist *af_hist)
Set AF statistic parameters.
int IMP_ISP_Tuning_GetAeWeight(IMPISPWeight *ae_weight)
Get zone weighting for AE.
unsigned short power_gpio
The power pin of sensor, but it is invalid now.
Definition: imp_isp.h:142
int IMP_ISP_GetSensorRegister(uint32_t reg, uint32_t *value)
Obtain a value of the register of sensor.
IMPISPTuningOpsType type
type, auto or manual.
Definition: imp_isp.h:451
unsigned short rst_gpio
The reset pin of sensor, but it is invalid now.
Definition: imp_isp.h:140
int IMP_ISP_Tuning_GetISPVflip(IMPISPTuningOpsMode *pmode)
Get ISP image mirror(vertical) effect function (enable/disable)
Auto mode.
Definition: imp_isp.h:462
int IMP_ISP_Tuning_SetAwbWeight(IMPISPWeight *awb_weight)
Set zone weighting for AWB.
int IMP_ISP_Tuning_GetBrightness(unsigned char *pbright)
Get the brightness of image effect.
AWB statistics.
Definition: imp_isp.h:1795
White balance attributes.
Definition: imp_isp.h:1278
int IMP_ISP_Tuning_SetFWFreeze(IMPISPTuningOpsMode mode)
Freeze ISP firmware operation.
int IMP_ISP_Tuning_SetAntiFlickerAttr(IMPISPAntiflickerAttr attr)
Set the antiflicker parameter.
int IMP_ISP_Tuning_GetContrast(unsigned char *pcontrast)
Get the contrast of image effect.
int IMP_ISP_Tuning_GetExpr(IMPISPExpr *expr)
Get AE attributes.
int IMP_ISP_Tuning_SetWB(IMPISPWB *wb)
Set the white balance function settings.
reverse color mode
Definition: imp_isp.h:650
Cloudy day mode.
Definition: imp_isp.h:1267
unsigned int awb_sum
Number of pixels used for AWB statistics [0 ~ 4294967295].
Definition: imp_isp.h:1798
sports mode
Definition: imp_isp.h:605
Defines the information of sensor.
Definition: imp_isp.h:133
IMPISPMeshShadingScale
Definition: imp_isp.h:1957
isp_core_awb_stats_mode
AWB statictis mode.
Definition: imp_isp.h:1803
Mesh Shading scale is 0.
Definition: imp_isp.h:1958
Day-light mode.
Definition: imp_isp.h:1266
dawn mode
Definition: imp_isp.h:599
sunset mode
Definition: imp_isp.h:606
Disable DRC mode.
Definition: imp_isp.h:396
IMPISPAntiflickerAttr
ISP Anti-flicker property parameter structure.
Definition: imp_isp.h:352
indoor party mode
Definition: imp_isp.h:604
int bus_num
Address of SPI bus.
Definition: imp_isp.h:127
union isp_core_ae_roi_select IMPISPAERoi
exposure region of interest.
Auto WB mode.
Definition: imp_isp.h:1264
Manual WB mode.
Definition: imp_isp.h:1265
AE statistics.
Definition: imp_isp.h:1739
Defines I2C bus information.
Definition: imp_isp.h:117
unsigned char af_skipx
Histogram decimation in horizontal direction [0 ~ 5]: 0=every 2nd pixel; 1=every 3rd pixel; 2=every 4...
Definition: imp_isp.h:1900
unsigned char af_scale_bottom
scale of top half of the range [0 ~ 4]: 0=1x ,1=2x, 2=4x, 4=8x, 4=16x
Definition: imp_isp.h:1905
unsigned char af_np_offset
AF noise profile offset [0 ~ 255] 4.4bit fixed-point.
Definition: imp_isp.h:1898
Current mode.
Definition: imp_isp.h:1805
union isp_core_expr_attr IMPISPExpr
exposure parameters.
unsigned short af_metrics_alt
The integrated and normalized measure of contrast - with alternative threshold [0 ~ 65535]...
Definition: imp_isp.h:1881
int IMP_ISP_Tuning_GetAeHist(IMPISPAEHist *ae_hist)
Get AE statistics information.
Weight information.
Definition: imp_isp.h:1676
int IMP_ISP_Tuning_SetSensorFPS(uint32_t fps_num, uint32_t fps_den)
Set the FPS of enabled sensor.
uint32_t ev
exposure value
Definition: imp_isp.h:1580
int IMP_ISP_Tuning_GetISPHflip(IMPISPTuningOpsMode *pmode)
Get ISP image mirror(horizontal) effect function (enable/disable)
int IMP_ISP_Tuning_SetMaxAgain(uint32_t gain)
Sets the Max value of sensor analog gain.
unsigned short af_thresh
The suggested value of AF threshold (or 0 to use internallly calculated value) [0 ~ 65535]...
Definition: imp_isp.h:1894
unsigned short awb_blacklevel
lower limit of valid data for AWB [0 ~ 1023]
Definition: imp_isp.h:1815
unsigned char slop_min
Restricts the minimum slope which can be generated by the adaptive algorithm, the range is [0...
Definition: imp_isp.h:409
Mesh Shading scale is 2.
Definition: imp_isp.h:1960
int IMP_ISP_Tuning_Awb_GetCwfShift(IMPISPWB *isp_wb_attr)
Get the position of the AWB's CWF light source in ISP.
Twilight mode.
Definition: imp_isp.h:1270
int IMP_ISP_Tuning_SetISPHflip(IMPISPTuningOpsMode mode)
Set ISP image mirror(horizontal) effect function (enable/disable)
int IMP_ISP_Tuning_SetTemperStrength(uint32_t ratio)
Set 3D noise reduction intensity.
unsigned short pwdn_gpio
The power down pin of sensor, but it is invalid now.
Definition: imp_isp.h:141
exposure parameters.
Definition: imp_isp.h:1175
int IMP_ISP_Tuning_GetAwbZone(IMPISPAWBZone *awb_zone)
Get AWB Statistics every blcok。
int IMP_ISP_Tuning_SetHiLightDepress(uint32_t strength)
Set highlight intensity controls.
unsigned int af_counted_pixels
Number of pixels accumulated (with nonzero weight)[0 ~ 4294967295].
Definition: imp_isp.h:1886
Mesh Shading scale is 1.
Definition: imp_isp.h:1959
unsigned char af_stat_nodev
Number of active zones vertically for AF stats [0 ~ 15].
Definition: imp_isp.h:1897
int IMP_ISP_Tuning_GetSaturation(unsigned char *psat)
Get the saturation of image effect.
int IMP_ISP_EnableTuning(void)
Enable effect debugging of ISP.
unsigned short white_level
DRC Enhancement of maximum pixel value, the range is [0, oxfff].
Definition: imp_isp.h:411
unsigned short cr_ref_min
Minimum value of R/G for white region [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1817
beach and snow mode
Definition: imp_isp.h:597
effect paramater, parameters have to be less than this value
Definition: imp_isp.h:280
unsigned short awb_whitelevel
Upper limit of valid data for AWB [0 ~ 1023].
Definition: imp_isp.h:1814
unsigned endx
x coordinate(end), the range is from 0 to 255.
Definition: imp_isp.h:1225
unsigned char tval_min
The Min value on Set Range mode.
Definition: imp_isp.h:474
text mode
Definition: imp_isp.h:607
IMPISPTemperMode type
auto or manual
Definition: imp_isp.h:471
int IMP_ISP_Tuning_GetSceneMode(IMPISPSceneMode *pmode)
Get ISP synthetical effect scene mode.
DRC manual mode.
Definition: imp_isp.h:391
enum isp_core_expr_mode mode
set the exposure mode
Definition: imp_isp.h:1177
The unit is integration line.
Definition: imp_isp.h:1168
IMPISPDrcMode mode
DRC mode.
Definition: imp_isp.h:404
Auto mode.
Definition: imp_isp.h:596
IMPSensorControlBusType
The enum is types of sensor control bus.
Definition: imp_isp.h:109
int IMP_ISP_Tuning_SaveAllParam(char *path)
Saves all debugging parameters of ISP modules.
Medium intensity.
Definition: imp_isp.h:1558
unsigned char af_skipy
Histogram decimation in vertical direction [0 ~ 7]: 0=every pixel; 1=every 2nd pixel; 2=every 3rd pix...
Definition: imp_isp.h:1902
Warm color fluorescent mode.
Definition: imp_isp.h:1272
uint16_t max_integration_time
Max integration time.
Definition: imp_isp.h:1642
unsigned char drc_strength
Set target value in manual mode, the range is [0, 0xff].
Definition: imp_isp.h:405
DRC high compression mode.
Definition: imp_isp.h:393
candle light mode
Definition: imp_isp.h:598
int IMP_ISP_Tuning_GetTemperDnsAttr(IMPISPTemperDenoiseAttr *pinfo)
Get the attribute(s) of noise reduction (for a certain amount of time) module.
Manual mode.
Definition: imp_isp.h:463
int IMP_ISP_Tuning_DisableMovestate(void)
When the sensor is from motion to still, it should be called.
ISP Spatial noise reduction module attribute parameter.
Definition: imp_isp.h:449
Integration of preference mode.
Definition: imp_isp.h:1045
int IMP_ISP_Tuning_GetMaxAgain(uint32_t *gain)
Get the Max value of sensor analog gain.
Manual exposure mode.
Definition: imp_isp.h:1161
int IMP_ISP_Tuning_AE_GetROI(IMPISPAERoi *isp_ae_roi)
Access to AE statistical area.
fireworks mode
Definition: imp_isp.h:601
int IMP_ISP_Tuning_SetDPStrength(uint32_t ratio)
Set DPC intensity.
int IMP_ISP_Tuning_GetRawDRC(IMPISPDrcAttr *pinfo)
Get ISP RAW picture DRC attributes.
IMPSPIInfo spi
SPI bus information.
Definition: imp_isp.h:138
unsigned short black_level
DRC Enhancement of minimum pixel value, the range is [0, oxfff].
Definition: imp_isp.h:410
int IMP_ISP_Close(void)
Close the ISP module.
IMPISPAeStrategy
Defines the enumeration of ISP's auto exposure strategy.
Definition: imp_isp.h:1043
landscape mode
Definition: imp_isp.h:602
IMPISPTuningOpsType
Definition: imp_isp.h:283
attributes of ISP exposure value.
Definition: imp_isp.h:1579
maximum value >
Definition: imp_isp.h:1046
int IMP_ISP_Tuning_GetISPRunningMode(IMPISPRunningMode *pmode)
Get ISP running mode, normal mode or night vision mode;.
unsigned char temper_strength
Intensity, manual mode is effective.
Definition: imp_isp.h:472
Enable antiflicker module and set the frequency to 50HZ.
Definition: imp_isp.h:354
Shade mode.
Definition: imp_isp.h:1271
SDK-T15 Public data structure header file.
unsigned char ae_stat_nodev
Number of active zones vertically for AE stats collection.
Definition: imp_isp.h:1743
int IMP_ISP_Tuning_AE_SetROI(IMPISPAERoi *isp_ae_roi)
Set AE statistical area.
unsigned short cb_ref_min
Minimum value of B/G for white region [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1819
int IMP_ISP_DisableSensor(void)
Disable the running sensor.
Definition: imp_isp.h:1830
int IMP_ISP_Tuning_GetEVAttr(IMPISPEVAttr *attr)
Obtains the attributes of exposure value.
int IMP_ISP_Tuning_SetAeStrategy(IMPISPAeStrategy strategy)
Set ISP working mode, auto exposure policy configuration, normal mode or exposure priority mode; defa...
int IMP_ISP_Tuning_SetSharpness(unsigned char sharpness)
Set the sharpness of image effect.
unsigned char af_metrics_shift
Metrics scaling factor [0 ~ 15] 0x03 is default.
Definition: imp_isp.h:1893
ISP Wait Frame paramater。
Definition: imp_isp.h:1939
uint16_t bgain
blue gain attribute, manual mode is effective
Definition: imp_isp.h:1281
unsigned short blue_green
b_gain
Definition: imp_isp.h:1826
int IMP_ISP_Tuning_SetAeWeight(IMPISPWeight *ae_weight)
Set zone weighting for AE.
IMPISPTuningOpsMode enable
Enable mode.
Definition: imp_isp.h:450
DRC medium compression mode.
Definition: imp_isp.h:394
unsigned int af_total_pixels
Total number of pixels processed (skip x and skip y are taken into account)[0 ~ 4294967295].
Definition: imp_isp.h:1885
int IMP_ISP_Tuning_SetAntiFogAttr(IMPISPAntiFogAttr attr)
Sets the attributes of antifog.
unsigned endy
y coordinate(end), the range is from 0 to 255.
Definition: imp_isp.h:1224
int IMP_ISP_Tuning_GetAeZone(IMPISPAEZone *ae_zone)
Get AE Statistics every block.
AF statistics.
Definition: imp_isp.h:1891
exposure region of interest.
Definition: imp_isp.h:1222
unsigned char slop_max
Restricts the maximum slope which can be generated by the adaptive algorithm, the range is [0...
Definition: imp_isp.h:408
int IMP_ISP_Tuning_SetSaturation(unsigned char sat)
Set the saturation of image effect.
DRC low compression mode.
Definition: imp_isp.h:395
unsigned char af_offsetx
[0 ~ 1] 0= start from the first column; 1=start from second column
Definition: imp_isp.h:1901
unsigned starty
y coordinate(start), the range is from 0 to 255.
Definition: imp_isp.h:1226
int IMP_ISP_Tuning_SetAwbHist(IMPISPAWBHist *awb_hist)
Set AWB statistic parameters.
IMPISPAntiFogAttr
ISP antifog working mode.
Definition: imp_isp.h:1555
int IMP_ISP_Tuning_SetExpr(IMPISPExpr *expr)
Set AE attributes.
int IMP_ISP_Open(void)
Open the ISP module.
int IMP_ISP_Tuning_SetISPRunningMode(IMPISPRunningMode mode)
Set ISP running mode, normal mode or night vision mode; default mode: normal mode.
Defines the attribute of gamma.
Definition: imp_isp.h:1095
unsigned short cr_ref_max
Maximum value of R/G for white region [0 ~ 4095] 4.8bit fixed-point.
Definition: imp_isp.h:1816
Auto exposure mode.
Definition: imp_isp.h:1160
int IMP_ISP_SetSensorRegister(uint32_t reg, uint32_t value)
Set the value of a register of a sensor.
unsigned char af_offsety
[0 ~ 1] 0= start from the first row; 1= start from second row
Definition: imp_isp.h:1903
MANUAL mode of the current module.
Definition: imp_isp.h:1631
unsigned startx
x coordinate(start), the range is from 0 to 255.
Definition: imp_isp.h:1227
The unit is millisecond.
Definition: imp_isp.h:1169
unsigned short af_thresh_alt
The suggested value of alternative AF threshold (or 0 to use threshold from previous frame) [0 ~ 6553...
Definition: imp_isp.h:1895