30. FSWDR

30.1. Function Overview

Wide dynamic range synthesis of related parameters.

30.2. API Reference

30.2.1. CVI_ISP_SetFSWDRAttr

【Description】

Set frame composition attribute parameters

【Syntax】

CVI_S32 CVI_ISP_SetFSWDRAttr(VI_PIPE ViPipe, const ISP_FSWDR_ATTR_S *pstFSWDRAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstFSWDRAttr

Frame composition attribute parameters

Input

【Return Value】

Return value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

  • cv180x does not support this function

  • It is recommended that Gamma table be set to sRGB when wdr mode is enabled

【Example】

None.

【Related topic】

30.2.2. CVI_ISP_GetFSWDRAttr

【Description】

Get frame composition attribute parameters

【Syntax】

CVI_S32 CVI_ISP_GetFSWDRAttr(VI_PIPE ViPipe, ISP_FSWDR_ATTR_S *pstFSWDRAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstFSWDRAttr

Frame composition attribute parameters

Output

【Return Value】

Return value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

  • cv180x does not support this function

【Example】

  • It is recommended that Gamma table be set to sRGB when wdr mode is enabled

【Related topic】

30.2.3. CVI_ISP_SetWDRExposureAttr

【Description】

Set WDR exposure attribute parameters

【Syntax】

CVI_S32 CVI_ISP_SetWDRExposureAttr(VI_PIPE ViPipe, const ISP_WDR_EXPOSURE_ATTR_S *pstWDRExpAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstWDRExposureAttr

WDR exposure attribute parameters

Input

【Return Value】

Return value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

  • cv180x does not support this function

【Example】

  • It is recommended that Gamma table be set to sRGB when wdr mode is enabled

【Related topic】

30.2.4. CVI_ISP_GetWDRExposureAttr

【Description】

Get WDR exposure attribute parameters

【Syntax】

CVI_S32 CVI_ISP_GetWDRExposureAttr(VI_PIPE ViPipe, ISP_WDRExposureAttr_ATTR_S *pstWDRExposureAttr);

【Parameter】

Parameter

Description

Input/Output

ViPipe

VI_PIPE number

Input

pstWDRExposureAttr

WDR exposure attribute parameters

Output

【Return Value】

Return value

Description

0

Success

Non 0

Failure. An error code is returned. For details, see chapter Error Codes.

【Requirement】

  • Header files: cvi_isp.h, cvi_comm_isp.h

  • Library files: libisp.so

【Note】

  • cv180x does not support this function

  • It is recommended that Gamma table be set to sRGB when wdr mode is enabled

【Example】

None.

【Related topic】

30.3. Data Types

30.3.1. ISP_FSWDR_MANUAL_ATTR_S

【Description】

Frame composition attribute manual parameters

【Syntax】

 typedef struct _ISP_FSWDR_MANUAL_ATTR_S {
  CVI_U16 WDRCombineLongThr; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRCombineShortThr; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRCombineMaxWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRCombineMinWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U8 WDRMtIn[4]; /*RW; Range:[0x0, 0xff]*/
  CVI_U16 WDRMtOut[4]; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRLongWgt; /*RW; Range:[0x0, 0x100]*/
  CVI_U8 WDRCombineSNRAwareToleranceLevel; /*RW; Range:[0x0, 0xff]*/
  CVI_U8 MergeModeAlpha; /*RW; Range:[0x0, 0xff]*/
  CVI_U16 WDRMotionCombineLongThr; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRMotionCombineShortThr; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRMotionCombineMinWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRMotionCombineMaxWeight; /*RW; Range:[0x0, 0x100]*/
} ISP_FSWDR_MANUAL_ATTR_S;

【Member】

Member

Description

WDRCombineLongThr

Long exposure critical value, image data below this critical value will only select long exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRCombineShortThr

Short exposure threshold, if the image data exceeds this threshold, only short exposure data will be selected to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRCombineMinWeight

The minimum weight value for long and short exposure image data fusion. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be. (This value must be less than or equal to WDRCombineMaxWeight)

Value range: [0x0, 0x100]

Data type: CVI_U8

WDRCombineMaxWeight

Long and short exposure image data are fused with the highest weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be. (This value must be greater than or equal to WDRCombineMinWeight)

Value range: [0x0, 0x100]

Data type: CVI_U8

WDRMotionCombineLongThr

Motion detection information, long exposure threshold, image data below this threshold will only select long exposure data to synthesize a WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineShortThr

Motion detection information, short exposure critical value, image data exceeding this critical value will only select short exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineMinWeight

Motion detection information, long and short exposure image data fusion minimum weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be.

Value range: [0x0, 0x100]

Data type: CVI_U16

WDRMotionCombineMaxWeight

Motion detection information, long and short exposure image data fusion with the highest weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be.

Value range: [0x0, 0x100]

Data type: CVI_U16

WDRMtIn[4]

An array of four numeric values. Define the amount of motion of the input object, the larger the value, the greater the amount of motion.

Value range: [0x0, 0xff]

Data type: CVI_U8

WDRMtOut[4]

An array of four numeric values. Define the motion gain corresponding to the motion of the input object. The larger the value, the more inclined to output a custom WDR fusion result, which is debuged in conjunction with WDRType.

Value range: [0x0, 0x100]

Data type: CVI_U16

WDRLongWgt

When WDRType is set to 2, set the fusion weight for long exposure. It takes effect only when MotionCompEnable is enabled.

Value range: [0x0, 0x100]

Data type: CVI_U16

MergeModeAlpha

The ratio of mobile information fusion when MergeMode is set to 1. The larger the value is, the more the proportion of short frame motion information is in the fusion. On the contrary, the proportion of long frame motion information is more.

Value range: [0x0, 0xff]

Data type: CVI_U8

WDRCombineSNRAwareToleranceLevel

Noise Tolerance Strength of Short Frame Noise SNR Adaptive

Value range: [0x0, 0xff]

Data type: CVI_U16

【Note】

  • The preceding parameter cv180x is not supported

【Related Data Type and Interface】

30.3.2. ISP_FSWDR_AUTO_ATTR_S

【Description】

Frame composition attribute automatic parameters

【Syntax】

 typedef struct cviISP_FSWDRAttr_AUTO_ATTR_S {
  CVI_U16 WDRCombineLongThr[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRCombineShortThr[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRCombineMaxWeight[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRCombineMinWeight[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
  CVI_U8 WDRMtIn[4][ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xff]*/
  CVI_U16 WDRMtOut[4][ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRLongWgt[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
  CVI_U8 WDRCombineSNRAwareToleranceLevel[ISP_AUTO_LV_NUM];
  CVI_U8 MergeModeAlpha[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xff]*/
  CVI_U16 WDRMotionCombineLongThr[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRMotionCombineShortThr[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 WDRMotionCombineMinWeight[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 WDRMotionCombineMaxWeight[ISP_AUTO_LV_NUM]; /*RW; Range:[0x0, 0x100]*/
}ISP_FSWDR_AUTO_ATTR_S;

【Member】

Member

Description

WDRCombineLongThr

Long exposure critical value, image data below this critical value will only select long exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRCombineMinWeight

The minimum weight value for long and short exposure image data fusion. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be. (This value must be less than or equal to WDRCombineMaxWeight)

Value range: [0x0, 0xff]

Data type: CVI_U8

WDRMotionCombineLongThr

Motion detection information, long exposure threshold, image data below this threshold will only select long exposure data to synthesize a WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineShortThr

Motion detection information, short exposure critical value, image data exceeding this critical value will only select short exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineMinWeight

Motion detection information, long and short exposure image data fusion minimum weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be.

Value range: [0x0, 0x100]

Data type: CVI_U16

WDRMotionCombineMaxWeight

Motion detection information, long and short exposure image data fusion with the highest weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be.

Value range: [0x0, 0x100]

Data type: CVI_U16

MergeModeAlpha

The ratio of mobile information fusion when MergeMode is set to 1. The larger the value is, the more the proportion of short frame motion information is in the fusion. On the contrary, the proportion of long frame motion information is more.

Value range: [0x0, 0xff]

Data type: CVI_U8

WDRCombineSNRAwareToleranceLevel

Noise Tolerance Strength of Short Frame Noise SNR Adaptive

Value range: [0x0, 0xBB8]

Data type: CVI_U16

WDRCombineLongThr

Long exposure critical value, image data below this critical value will only select long exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRCombineShortThr

Short exposure threshold, if the image data exceeds this threshold, only short exposure data will be selected to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRCombineMinWeight

The minimum weight value for long and short exposure image data fusion. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be. (This value must be less than or equal to WDRCombineMaxWeight)

Value range: [0x0, 0x100]

Data type: CVI_U8

WDRCombineMaxWeight

Long and short exposure image data are fused with the highest weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be. (This value must be greater than or equal to WDRCombineMinWeight)

Value range: [0x0, 0x100]

Data type: CVI_U8

WDRMotionCombineLongThr

Motion detection information, long exposure threshold, image data below this threshold will only select long exposure data to synthesize a WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineShortThr

Motion detection information, short exposure critical value, image data exceeding this critical value will only select short exposure data to synthesize WDR image.

Value range: [0x0, 0xfff]

Data type: CVI_U16

WDRMotionCombineMinWeight

Motion detection information, long and short exposure image data fusion minimum weight value. The larger the weight value, the more the proportion of long exposure will be in the fusion time, and vice versa, the more proportion of short exposure will be.

Value range: [0x0, 0x100]

Data type: CVI_U16

【Note】

  • The preceding parameter cv180x is not supported

【Related Data Type and Interface】

30.3.3. ISP_FSWDR_ATTR_S

【Description】

Frame composition attribute parameters

【Syntax】

 typedef struct _ISP_FSWDR_ATTR_S {
  CVI_BOOL Enable; /*RW; Range:[0, 1]*/
  ISP_OP_TYPE_E enOpType; /*RW; Range:[0, 1]*/
  CVI_U8 UpdateInterval; /*RW; Range:[0x1, 0xFF]*/
  CVI_BOOL MotionCompEnable; /*RW; Range:[0, 1]*/
  CVI_U8 TuningMode; /*RW; Range:[0x0, 0x9]*/
  CVI_BOOL WDRDCMode;; /*RW; Range:[0, 1]*/
  CVI_BOOL WDRLumaMode; /*RW; Range:[0x0, 0x1]*/
  CVI_U8 WDRType; /*RW; Range:[0x0, 0x2]*/
  CVI_BOOL WDRCombineSNRAwareEn; /*RW; Range:[0, 1]*/
  CVI_U16 WDRCombineSNRAwareLowThr; /*RW; Range:[0x0, 0xffff]*/
  CVI_U16 WDRCombineSNRAwareHighThr; /*RW; Range:[0x0, 0xffff]*/
  CVI_U16 WDRCombineSNRAwareSmoothLevel; /*RW; Range:[0x0, 0xbb8]*/
  CVI_BOOL LocalToneRefinedDCMode; /*RW; Range:[0, 1]*/
  CVI_BOOL LocalToneRefinedLumaMode; /*RW; Range:[0, 1]*/
  CVI_U16 DarkToneRefinedThrL; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 DarkToneRefinedThrH; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 DarkToneRefinedMaxWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 DarkToneRefinedMinWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 BrightToneRefinedThrL; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 BrightToneRefinedThrH; /*RW; Range:[0x0, 0xfff]*/
  CVI_U16 BrightToneRefinedMaxWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U16 BrightToneRefinedMinWeight; /*RW; Range:[0x0, 0x100]*/
  CVI_U8 WDRMotionFusionMode; /*RW; Range:[0x0, 0x3]*/
  CVI_BOOL MtMode; /*RW; Range:[0, 1]*/

  ISP_FSWDR_MANUAL_ATTR_S stManual;
  ISP_FSWDR_AUTO_ATTR_S stAuto;
} ISP_FSWDR_ATTR_S;

【Member】

Member

Description

Enable

The WDR module is enabled.

0: off.

1: Enabled.

Value range: [0, 1]

Data type: CVI_BOOL

UpdateInterval

Affects the parameter update terval, the larger the value, the slower the screen changes and the better the performance.

Value range: [0x0, 0xff]

Data type: CVI_U8

MotionCompEnable

WDR motion detection enable switch.

0: off.

1: Enabled.

Value range: [0, 1]

Data type: CVI_BOOL

WDRDCMode

Long-short exposure fusion mode

0: normal mode, adjusted by WDRLumaMode

1: DC mode

Value range: [0, 1]

Data type: CVI_BOOL

WDRLumaMode

Brightness Calculation Mode

0: Take the maximum value of R/G/B.

1: Take the Luma value.

Value range: [0, 1]

Data type: CVI_BOOL

WDRType

Custom WDR fusion mode.

0: Output the short exposure value multiplied by the exposure ratio.

1: Output long exposure value.

2: Output the value after long-short exposure fusion. The weight of long exposure is WDRLongWgt. It takes effect only when MotionCompEnable is enabled.

Value range: [0, 2]

Data type: CVI_U8

WDRDitherEnable

Enable the dither function for the long exposure threshold.

0: off.

1: Enabled.

Value range: [0, 1]

Data type: CVI_U8

WDRDitherBit

Set how many bits of dither to generate.

Value range: [0, 0xf]

Data type: CVI_U8

WDRDitherRange

Sets the range between long and short exposure thresholds plus dither.

Value range: [0, 0xfff]

Data type: CVI_U16

TuningMode

Debug mode, output visual auxiliary information to help users debug

0: no visual auxiliary information

1: output short frame information in SDR form.

2: Output short frame information in HDR form. 3: Output long frame information in SDR form.

Value range: [0x0, 0x3]

Data type: CVI_U8

WDRCombineSNRAwareEn

Wide dynamic fusion mode with SNR awareness is enabled. It can adaptively determine the fusion ratio of long and short frames according to the noise of short frames.

0: off.

1: Enabled.

Value range: [0, 1]

Data type: CVI_BOOL

WDRCombineSNRAwareLowThr

Short frame noise SNR adaptive low threshold. When the estimated noise of the short frame is lower than the low threshold, the general long and short frame fusion is performed. When the estimated noise of the short frame is higher than the high threshold, the SNR adaptive fusion is performed according to the SNRAwareToleranceLevel intensity. The noise is between the low critical value and the high critical value. Then perform SNR adaptive fusion according to the ratio.

Value range: [0x0, 0xffff]

Data type: CVI_U16

WDRCombineSNRAwareHighThr

Short frame noise SNR adaptive high threshold. When the estimated noise of the short frame is lower than the low threshold, the general long and short frame fusion is performed. When the estimated noise of the short frame is higher than the high threshold, the SNR adaptive fusion is performed according to the SNRAwareToleranceLevel intensity. The noise is between the low critical value and the high critical value. Then perform SNR adaptive fusion according to the ratio.

Value range: [0x0, 0xffff]

Data type: CVI_U16

WDRCombineSNRAwareSmoothLevel

The smoothness of time-domain changes in short-frame noise SNR adaptation

Value range: [0x0, 0xbb8]

Data type: CVI_U16

LocalToneRefinedDCMode

Whether local tone refine refers to DC information

0: Do not use DC information, refer to LocalToneRefinedLumaMode

1: Use DC information

Value range: [0x0, 0x1]

Data type: CVI_BOOL

LocalToneRefinedLumaMode

local tone refine luma mode

0: Use MaxRGB mode

1: use luma mode

Value range: [0x0, 0x1]

Data type: CVI_BOOL

DarkToneRefinedThrL

Adjustment of dark tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

DarkToneRefinedThrH

Adjustment of dark tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

DarkToneRefinedMaxWeight

Adjustment of dark tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

DarkToneRefinedMinWeight

Adjustment of dark tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

BrightToneRefinedThrL

Adjustment of bright tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

BrightToneRefinedThrH

Adjustment of bright tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

BrightToneRefinedMaxWeight

Adjustment of bright tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

BrightToneRefinedMinWeight

Adjustment of bright tone refine

Value range: [0, 0xfff]

Data type: CVI_U16

WDRMotionFusionMode

motion detection mode

0: Linear / Long mode

1: Max mode. (default)

2: Merge mode.

3: LUT mode.

Value range: [0, 0x3]

Data type: CVI_U8

MtMode

Motion mode:

0: Motion IIR (represents that the detected motion has been processed by IIR)

1: Motion history (meaning that the detected motion has not been processed by IIR)

Value range: [0x0, 0x1]

Data type: CVI_BOOL

enOpType

job type

OP_TYPE_AUTO: automatic mode

OP_TYPE_MANUAL: manual mode

stManual

Manual Mode parameter Properties

stAuto

Auto Mode parameter Properties

【Note】

  • The preceding parameter cv180x is not supported

【Related Data Type and Interface】

30.3.4. ISP_WDR_EXPOSURE_ATTR_S

【Description】

WDR exposure attribute parameters

【Syntax】

 typedef struct _ISP_WDR_EXPOSURE_ATTR_S {
  ISP_OP_TYPE_E enExpRatioType;
  CVI_U32 au32ExpRatio[WDR_EXP_RATIO_NUM];
  CVI_U32 u32ExpRatioMax;
  CVI_U32 u32ExpRatioMin;
  CVI_U16 u16Tolerance;
  CVI_U16 u16Speed;
  CVI_U16 u16RatioBias;
  CVI_U8 u8SECompensation;
  CVI_U16 u16SEHisThr;
  CVI_U16 u16SEHisCntRatio1;
  CVI_U16 u16SEHisCntRatio2;
  CVI_U32 u16SEHis255CntThr1;
  CVI_U32 u16SEHis255CntThr2;
  CVI_U8 au8LEAdjustTargetMin[LV_TOTAL_NUM];
  CVI_U8 au8LEAdjustTargetMax[LV_TOTAL_NUM];
  CVI_U8 au8SEAdjustTargetMin[LV_TOTAL_NUM];
  CVI_U8 au8SEAdjustTargetMax[LV_TOTAL_NUM];
  CVI_U8 u8AdjustTargetDetectFrmNum;
  CVI_U32 u32DiffPixelNum;
  CVI_U16 u16LELowBinThr;
  CVI_U16 u16LEHighBinThr;
  CVI_U16 u16SELowBinThr;
  CVI_U16 u16SEHighBinThr;
  CVI_U8 au8FrameAvgLumaMin[LV_TOTAL_NUM];
  CVI_U8 au8FrameAvgLumaMax[LV_TOTAL_NUM];
} ISP_WDR_EXPOSURE_ATTR_S;

【Member】

Member

Description

enExpRatioType

Description

au32ExpRatio[WDR_EXP_RATIO_NUM]

Only valid in multi frame synthesis WDR mode. au32ExpRatio is invalid when enExpRatioType is OP_TYPE_AUTO. When enExpRatioType is OP_TYPE_MANUAL, au32ExpRatio is readable and writable, which indicates the expected exposure ratio of two adjacent frames of multi frame synthetic WDR.

Value range:[0x40, 0xFFF]

u32ExpRatioMax

Only valid in multi frame synthesis WDR mode. When enExpRatioType is OP_TYPE_AUTO, u32ExpRatioMax is the maximum value of the exposure time ratio of the longest frame to the shortest frame. When enExpRatioType is OP_TYPE_MANUAL, u32ExpRatioMax is invalid. 6bit decimal precision, 0x40 means that the exposure ratio is 1 times.

u32ExpRatioMin

Only valid in multi frame synthesis WDR mode. When enExpRatioType is OP_TYPE_AUTO, u32ExpRatioMax is the minimum value of the exposure time ratio of the longest frame to the shortest frame. When enExpRatioType is OP_TYPE_MANUAL, u32ExpRatioMax is invalid. The format is 6.6bit fixed-point without sign, and 0x40 means that the ratio of long frame exposure time to short frame exposure time is one time. The default value is 0x40.

Value range:[0x40, u32ExpRatioMax]

u16Tolerance

Description

u16Speed

The auto exposure ratio adjustment speed. This is only effective in two frame synthesis WDR mode. When enExpRatioType is OP_TYPE_AUTO, the higher the value is, the faster the adjustment speed is. The default value is 0x20.

Value range:[0x0, 0xFF]

u16RatioBias

The exposure ratio deviation value which is only valid in multi frame synthesis WDR mode. When enExpRatioType is OP_TYPE_AUTO, the higher the value, the greater the auto exposure ratio. The default value is 0x400, which means that the calculation result of the auto exposure ratio algorithm will not be adjusted. The exposure ratio adjusted by this value is limited by the maximum / minimum exposure ratio.

Value range:[0x0, 0xFFFF]

u8SECompensation

Adjust the target brightness value of short detection screen

Value range:[0x0, 0xFF]

u16SEHisThr

Calculate the threshold value of exposure ratio when the short detection frame exceeds the long detection frame (1x = 64)

u16SEHisCntRatio1

If the number of short detection histogram bin 255 is greater than this threshold, the target brightness of short detection will be reduced

u16SEHisCntRatio2

If the number of short detection histogram bin 255 is less than this threshold, the target brightness of the reduced short detection will return to the original target brightness

u16SEHis255CntThr1

If the number of long detection histogram bin 255 is greater than this threshold, the target brightness of the long detection will be reduced

u16SEHis255CntThr2

If the number of long detection histogram bin 255 is less than this threshold, the target brightness of the reduced long detection will return to the original target brightness

au8LEAdjustTargetMin[WDR_LV_TARGET_NUM]

Target min of each LV in long frame 40,40, 40, 40, 40, 40, 45, 50, 60, 60, 60, 60, 60, 60, 60, 60

au8LEAdjustTargetMax[WDR_LV_TARGET_NUM]

Target max of each LV in long frame 50,50, 50, 50, 50, 50, 60, 70, 85, 100, 110, 110, 120, 120, 120, 120

au8SEAdjustTargetMin[WDR_LV_TARGET_NUM]

Target min of each LV in short frame 20,20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20

au8SEAdjustTargetMax[WDR_LV_TARGET_NUM]

Target max of each LV in short frame 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60

u8AdjustTargetDetectFrmNum

The number of frames that need to be detected continuously when adjusting the brightness of long and short detection targets

u32DiffPixelNum

The threshold value of pixel number of long detection histogram bin 255. Beyond this value, the target brightness of long exposure will be reduced

U16LELowBinThr

Only the window whose brightness is greater than this threshold can add the AE long-term light metering

U16LEHighBinThr

Only windows whose brightness is less than this threshold can add the AE long-term light metering

U16SELowBinThr

Only windows whose short detection brightness is greater than this threshold can add the AE long-term light metering

U16SEHighBinThr

Only windows whose short detection brightness is less than this threshold can add the AE long-term light metering

au8FrameAvgLumaMin[LV_TOTAL_NUM]

This parameter is currently not used

Value range: [0, 0xff]

Data type: CVI_U8

au8FrameAvgLumaMax[LV_TOTAL_NUM]

The upper limit of the average luminance of long-term detection

Value range: [0, 0xff]

Data type: CVI_U8

【Note】

  • The preceding parameter cv180x is not supported

【Related Data Type and Interface】