hi_vo_video_layer_attr
Function
Defines the attributes of a video layer.
Definition
typedef struct {
hi_rect display_rect;
hi_size img_size;
hi_u32 display_frame_rate;
hi_pixel_format pixel_format;
hi_bool double_frame_en;
hi_bool cluster_mode_en;
hi_dynamic_range dst_dynamic_range;
hi_u32 display_buf_len;
hi_vo_partition_mode partition_mode;
hi_compress_mode compress_mode;
} hi_vo_video_layer_attr;
For details about basic data types hi_bool and hi_u32, see Basic Data Types.
Members
Member |
Description |
|---|---|
display_rect |
Rectangular video display region. For details, see hi_rect.
|
img_size; |
Image resolution, that is, size of the combined image, a static attribute. For details, see hi_size. |
display_frame_rate |
Frame rate for video display, a static attribute. |
pixel_format |
Input pixel format of the video layer, a static attribute. For details, see hi_pixel_format. The following formats are supported: YVU420 SEMIPLANAR, YVU422 SEMIPLANAR, and YUV400. |
double_frame_en |
Frame rate doubling switch of a video layer, a static attribute. Not supported in the current version. |
cluster_mode_en |
Memory cluster mode switch of a video layer, a static attribute. Not supported in the current version. |
dst_dynamic_range |
Output dynamic range type of a video layer, a static attribute. For details, see hi_dynamic_range. |
display_buf_len |
Display buffer length of a video layer, a static attribute. Not required in the current scenario. |
partition_mode |
Split mode of a video layer, a static attribute. For details, see hi_vo_partition_mode. |
compress_mode |
Compression or decompression mode of a video layer, a static attribute. For details, see hi_compress_mode. Only HI_COMPRESS_MODE_NONE is supported. |