hi_dis_config
Function
Defines the DIS configuration.
Definition
typedef struct {
hi_dis_mode mode;
hi_dis_motion_level motion_level;
hi_dis_pdt_type pdt_type;
hi_u32 buf_num;
hi_u32 crop_ratio;
hi_u32 frame_rate;
hi_bool camera_steady;
hi_bool scale;
} hi_dis_config;For details about basic data types hi_bool and hi_u32, see Basic Data Types.
Members
Member |
Description |
|---|---|
mode |
Multi-degree DIS algorithm. There are three algorithms in total. For details, see hi_dis_mode. |
motion_level |
Motion level of the camera. For details, see hi_dis_motion_level. |
pdt_type |
Product form with the DIS function. The IPC, action camera, and drone camera are supported currently. For details, see hi_dis_pdt_type. |
buf_num |
Number of memory blocks used by the DIS to store images. The number of buffers can be increased if frame loss occurs for the DIS output frames. Value range: [5, 10] |
crop_ratio |
Indicates the cropping ratio of the DIS output image. Value range: [50, 98] |
frame_rate |
Set this parameter to the actual frame rate of the VI output. Value range: (0, 60]
|
camera_steady |
Whether the camera is steady. Value range:
|
scale |
The current DIS function allows the user to choose whether to upscale the output image after cropping. If you choose not to, you can use the backend VPSS for upscaling. Value range:
When scale is set to HI_FALSE, the width and height of the output image are the width and height of the input image multiplied by the cropping ratio configured by crop_ratio, and the value is 2-pixel aligned. |