hi_chassis_param
Function
Defines the transparent chassis configuration information.
Definition
typedef struct {
hi_bool chassis_en;
hi_vpc_crop_region chassis_region;
hi_u8 *blend_table_address;
hi_u32 blend_table_size;
hi_u8 *chassis_pic_blend_table_address;
hi_u32 chassis_pic_blend_table_size;
hi_transform_config affine_transform_conf;
hi_void *user_data;
hi_s32 (*adjust_brightness_callback)(
hi_void *user_data,
hi_vpc_pic_info *stitching_pic,
hi_vpc_pic_info *chassis_pic);
hi_u32 reserved[4];
} hi_chassis_param;
For details about basic data types hi_bool, hi_u8, hi_u32, hi_s32, and hi_void, see Basic Data Types.
Members
Member |
Description |
|---|---|
chassis_en |
Whether to enable transparent chassis.
|
chassis_region |
Position information of the transparent chassis. For details, see hi_vpc_crop_region. |
blend_table_address |
Blend table address, which is used to update chassis key frames. |
blend_table_size |
Buffer size of the blend table. The value must be greater than or equal to the value of chassis_region.crop_width × chassis_region.crop_height. |
chassis_pic_blend_table_address |
Address of the chassis blend table, which is used to blend the current frame with the surround-view stitching image. |
chassis_pic_blend_table_size |
Memory size of the chassis fusion table. The value must be greater than or equal to the value of chassis_region.crop_width × chassis_region.crop_height. |
affine_transform_conf |
Affine transformation configuration. For details, see hi_transform_config. |
user_data |
User-defined data. |
adjust_brightness_callback |
Callback function for adjusting the chassis brightness. If the callback function is a null pointer, brightness adjustment is not required. stitching_pic indicates the surround-view image information, and chassis_pic indicates the chassis image information. In addition, the API assigns the user-defined data specified by hi_chassis_param.user_data to user_data in the callback function. Only the following image formats are supported: HI_PIXEL_FORMAT_VUY_PACKED_444 = 150, // VUY444 Packed 8bit |
reserved |
Reserved. The value is fixed at 0. |