hi_vpss_chn_attr
Function
Defines the static attributes of a VPSS physical channel.
Definition
typedef struct {
hi_bool mirror_en;
hi_bool flip_en;
hi_vpss_chn_mode chn_mode;
hi_u32 width;
hi_u32 height;
hi_video_format video_format;
hi_pixel_format pixel_format;
hi_dynamic_range dynamic_range;
hi_compress_mode compress_mode;
hi_frame_rate_ctrl frame_rate;
hi_u32 depth;
hi_aspect_ratio aspect_ratio;
hi_u32 reserved[10];
} hi_vpss_chn_attr;
For details about basic data types hi_bool and hi_u32, see Basic Data Types.
Members
Member |
Description |
|---|---|
mirror_en |
Reserved (not supported in the current version). Manually set this parameter to 0 to avoid incompatibility with future versions. |
flip_en |
Reserved (not supported in the current version). Manually set this parameter to 0 to avoid incompatibility with future versions. |
chn_mode |
Channel working mode. For details, see hi_vpss_chn_mode. |
width |
Width of the target image.
|
height |
Height of the target image.
|
video_format |
Video format. Only HI_VIDEO_FORMAT_LINEAR is supported. For details, see hi_video_format. |
pixel_format |
Pixel format of the target image. For details, see hi_pixel_format.
|
dynamic_range |
This is a reserved parameter. For details, see hi_dynamic_range. |
compress_mode |
Only non-compression HI_COMPRESS_MODE_NONE is supported. For details, see hi_compress_mode. |
frame_rate |
Frame rate control information. For details, see hi_frame_rate_ctrl.
|
depth |
Queue depth of channel frames obtained by users. If the queue length is 0, images cannot be obtained in HI_VPSS_CHN_MODE_USER mode. When the fisheye correction function is enabled, one more image memory resource needs to be allocated. Value range: [0, 8] |
aspect_ratio |
Aspect ratio parameter. During the processing of the aspect ratio, perform resizing before adding black borders. A larger resizing ratio will prolong processing by the AI processor and may decrease the frame rate. For details, see hi_aspect_ratio.
|
reserved |
Reserved. To ensure compatibility in later versions, use the memset structure for resetting and initialization. Do not explicitly access the reserved field in the code. |