hi_venc_chn_param

Description

Defines the parameters of an encoding channel.

Prototype

typedef struct {
    hi_bool color_to_grey_en;
    hi_u32 priority;
    hi_u32 max_stream_cnt;
    hi_u32 poll_wake_up_frame_cnt;
    hi_crop_info crop_info;
    hi_frame_rate_ctrl frame_rate;
} hi_venc_chn_param;

Members

Member

Description

color_to_grey_en

Whether to enable or disable color-to-grayscale conversion for a channel.

Atlas 350 Accelerator Card does not support this parameter.

For the Atlas A3 training product/Atlas A3 inference product, this parameter is not supported.

For the Atlas A2 training product/Atlas A2 inference product, this parameter is not supported.

Atlas inference product: This parameter is reserved and is not supported currently.

priority

Channel priority. Defaults to 0. A larger value indicates a higher priority.

Value range: [0, 2)

max_stream_cnt

Maximum number of frames in the stream buffer. Reserved.

poll_wake_up_frame_cnt

Number of frames to wait before waking up a blocking API if a channel obtains streams in timeout or blocking mode. Reserved.

The value must be greater than 0.

Default: 1

crop_info

Reserved.

frame_rate

Frame rate. Reserved.