hi_venc_vui_video_signal

Description

Defines the video signal information in the VUI of an H.264/H.265 encoding channel.

Prototype

typedef struct {
    hi_u8  video_signal_type_present_flag;
    hi_u8  video_format;
    hi_u8  video_full_range_flag;
    hi_u8  colour_description_present_flag;
    hi_u8  colour_primaries;
    hi_u8  transfer_characteristics;
    hi_u8  matrix_coefficients;
 } hi_venc_vui_video_signal;

Members

Member

Description

video_signal_type_present_flag

Indicates whether the video signal information in the Vui field takes effect. The default value is 1. The options are 0 and 1. Other parameters in the table are valid only when this flag is set to 1.

video_format

For details, see the H.264/H.265 protocol. The default value is 5. Value range: [0, 7] for H.264; [0, 5] for H.265.

video_full_range_flag

For details about the meaning, see the H.264/H.265 protocol. The value can be 0 or 1. If this bit is set to 0, the pixel value range is limited. The luminance value ranges from 16 to 235, and the chrominance value ranges from 16 to 240.

On the Atlas 200I/500 A2 inference product, the default value of the video_full_range_flag is 0 (indicating limited_range) for H.265 streams and 1 (indicating full_range) for H.264 streams.

For H.264 and H.265 streams on the Atlas inference product, the default value of the video_full_range_flag is 0 (indicating limited_range) during VENC encoding.

colour_description_present_flag

For details, see the H.264/H.265 protocol. The default value is 1. You do not need to set this parameter. The system sets this parameter based on the actual image information.

colour_primaries

For details, see the H.264/H.265 protocol. The default value is 1. You do not need to set this parameter. The system sets this parameter based on the actual image information.

transfer_characteristics

For details, see the H.264/H.265 protocol. The default value is 1. You do not need to set this parameter. The system sets this parameter based on the actual image information.

matrix_coefficients

For details, see the H.264/H.265 protocol. The default value is 1. You do not need to set this parameter. The system sets this parameter based on the actual image information.