hi_venc_vui_video_signal

Description

Defines the VideoSignal 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

For details, see the H.264/H.265 protocol. The default value is 1. Value range: {0, 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, see the H.264/H.265 protocol. The default value is 0. Value range: {0, 1}. If this parameter is set to 0, the pixel value range is limited. The luminance value range is 16–235, and the chrominance value range is 16–240.

colour_description_present_flag

For details, see the H.264/H.265 protocol. The default value is 1. Value range: {0, 1}.

colour_primaries

For details, see the H.264/H.265 protocol. The default value is 1. Set this parameter based on the actual information about the current image.

transfer_characteristics

For details, see the H.264/H.265 protocol. The default value is 1. Set this parameter based on the actual information about the current image.

matrix_coefficients

For details, see the H.264/H.265 protocol. The default value is 1. Set this parameter based on the actual information about the current image.