hi_venc_vui_h265_time_info
Description
Defines the clock tick count information in the VUI of an H.265 encoding channel.
Prototype
typedef struct {
hi_u32 timing_info_present_flag;
hi_u32 num_units_in_tick;
hi_u32 time_scale;
hi_u32 num_ticks_poc_diff_one_minus1;
} hi_venc_vui_h265_time_info;
Members
Member |
Description |
|---|---|
timing_info_present_flag |
Flag that indicates whether the clock tick count information in the VUI field takes effect. The options are 0 and 1. Other parameters in the table are valid only when this flag is set to 1. |
num_units_in_tick |
Number of time units elapsed when the clock tick counter is increased by 1. The value must be larger than 0. The default value is 60. |
time_scale |
Number of time units elapsed within one second. The value must be larger than 0. The default value is 60. |
num_ticks_poc_diff_one_minus1 |
For details, see the H.265 protocol. The default value is 1. Value range: [0, 2^32-2] |
Considerations
The clock tick count is used to mark video frame signals. In this H.265 encoder, the video display frame rate can be calculated according to the following formula: display_rate = time_scale/num_units_in_tick.
Since the display frame rate is only related to the ratio of time_scale to num_units_in_tick, you are advised to retain the value of num_units_in_tick to 1 during setting, and adjust the display frame rate through the time_scale parameter. At this time, the display_rate = time_scale.
The player determines the display frame rate, and can choose not to reference the TimeInfo information.