hi_venc_chn_param

Function

Defines the VENC channel parameters.

Definition

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;

For details about basic data types hi_u32 and hi_bool, see Basic Data Types.

Members

Member

Description

color_to_grey_en

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

For Ascend 950PR&950DT products, this parameter is not supported.

For Atlas A3 products, this parameter is not supported.

For Atlas A2 products, this parameter is not supported.

For Atlas inference products, 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 value: 1

crop_info

Reserved parameter, not supported currently. For details, see hi_crop_info.

frame_rate

Frame rate. Reserved. For details, see hi_frame_rate_ctrl.