hi_vo_video_layer_attr

Description

Defines the attributes of a video layer.

Prototype

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;

Members

Member

Description

display_rect

Rectangular video display region.

  • When partition_mode is set to HI_VO_PARTITION_MODE_SINGLE, display_rect.x and display_rect.y are dynamic attributes, and display_rect.width and display_rect.height are static attributes.
  • When partition_mode is set to HI_VO_PARTITION_MODE_MULTI, display_rect is a static attribute.

img_size;

Image resolution, that is, size of the combined image, a static attribute.

display_frame_rate

Frame rate for video display, a static attribute.

pixel_format

Input pixel format of the video layer, static attribute.

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.

cluster_mode_en

Memory cluster mode switch of a video layer, a static attribute.

dst_dynamic_range

Output dynamic range type of a video layer, a static attribute.

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.

compress_mode

Compression or decompression mode of a video layer, a static attribute.