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 color-to-grayscale conversion for a channel.

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 for waking up the blocking API when an encoding channel fetches the source stream in timeout or blocking mode. Reserved.

Value range: > 0

Default value: 1

crop_info

Reserved.

frame_rate

Frame rate. Reserved.