hi_isp_pub_attr

Description

Defines the ISP public attributes.

Definition

typedef struct { 
    hi_rect             wnd_rect; 
    hi_size             sns_size; 
    hi_float                   frame_rate; 
    hi_isp_bayer_format        bayer_format; 
    hi_wdr_mode                wdr_mode; 
    hi_u8                      sns_mode; 
} hi_isp_pub_attr;

Members

Member

Description

wnd_rect

The start position of the cropping window, and the width and height of the image, which must be the same as the size in the VI pipe attributes and cannot be greater than the width and height in the bound dev attributes. Otherwise, the image output is abnormal.

  • The sum of the horizontal start position configured in wnd_rect and the image width must be smaller than the width of the image output by the sensor.
  • The sum of the vertical start position and image height configured in wnd_rect must be smaller than the image height output by the sensor. The actual width and height output by the sensor cannot be detected, so no error is reported when this condition is not met.

sns_size

Image width and height output by the sensor.

Value range: [120, 16384].

sns_size must be consistent with the collection attribute of the corresponding sensor.

frame_rate

Frame rate of the input image. Value range: (0.00, 65535.00]

bayer_format

Bayer data format

wdr_mode

Selects the WDR mode.

sns_mode

Selects the sensor initialization sequence. When the resolution and frame rate are the same, different sns_mode values correspond to different initialization sequences. In other cases, sns_mode is defaulted to 0, and the initialization sequence can be selected by configuring sns_size and frame_rate.