Home
last modified time | relevance | path

Searched refs:hrd (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/media/platform/allegro-dvt/
H A Dnal-hevc.c211 struct nal_hevc_sub_layer_hrd_parameters *hrd) in nal_hevc_rbsp_sub_layer_hrd_parameters() argument
217 rbsp_uev(rbsp, &hrd->bit_rate_value_minus1[i]); in nal_hevc_rbsp_sub_layer_hrd_parameters()
218 rbsp_uev(rbsp, &hrd->cpb_size_value_minus1[i]); in nal_hevc_rbsp_sub_layer_hrd_parameters()
219 rbsp_bit(rbsp, &hrd->cbr_flag[i]); in nal_hevc_rbsp_sub_layer_hrd_parameters()
224 struct nal_hevc_hrd_parameters *hrd) in nal_hevc_rbsp_hrd_parameters() argument
229 rbsp_bit(rbsp, &hrd->nal_hrd_parameters_present_flag); in nal_hevc_rbsp_hrd_parameters()
230 rbsp_bit(rbsp, &hrd->vcl_hrd_parameters_present_flag); in nal_hevc_rbsp_hrd_parameters()
231 if (hrd->nal_hrd_parameters_present_flag || hrd->vcl_hrd_parameters_present_flag) { in nal_hevc_rbsp_hrd_parameters()
232 rbsp_bit(rbsp, &hrd->sub_pic_hrd_params_present_flag); in nal_hevc_rbsp_hrd_parameters()
233 if (hrd->sub_pic_hrd_params_present_flag) { in nal_hevc_rbsp_hrd_parameters()
[all …]
H A Dnal-h264.c100 struct nal_h264_hrd_parameters *hrd) in nal_h264_rbsp_hrd_parameters() argument
104 if (!hrd) { in nal_h264_rbsp_hrd_parameters()
109 rbsp_uev(rbsp, &hrd->cpb_cnt_minus1); in nal_h264_rbsp_hrd_parameters()
110 rbsp_bits(rbsp, 4, &hrd->bit_rate_scale); in nal_h264_rbsp_hrd_parameters()
111 rbsp_bits(rbsp, 4, &hrd->cpb_size_scale); in nal_h264_rbsp_hrd_parameters()
113 for (i = 0; i <= hrd->cpb_cnt_minus1; i++) { in nal_h264_rbsp_hrd_parameters()
114 rbsp_uev(rbsp, &hrd->bit_rate_value_minus1[i]); in nal_h264_rbsp_hrd_parameters()
115 rbsp_uev(rbsp, &hrd->cpb_size_value_minus1[i]); in nal_h264_rbsp_hrd_parameters()
116 rbsp_bit(rbsp, &hrd->cbr_flag[i]); in nal_h264_rbsp_hrd_parameters()
119 rbsp_bits(rbsp, 5, &hrd->initial_cpb_removal_delay_length_minus1); in nal_h264_rbsp_hrd_parameters()
[all …]
H A Dallegro-core.c1767 struct nal_hevc_hrd_parameters *hrd; in allegro_hevc_write_sps() local
1849 hrd = &vui->nal_hrd_parameters; in allegro_hevc_write_sps()
1850 hrd->vcl_hrd_parameters_present_flag = 1; in allegro_hevc_write_sps()
1852 hrd->initial_cpb_removal_delay_length_minus1 = 31; in allegro_hevc_write_sps()
1853 hrd->au_cpb_removal_delay_length_minus1 = 30; in allegro_hevc_write_sps()
1854 hrd->dpb_output_delay_length_minus1 = 30; in allegro_hevc_write_sps()
1856 hrd->bit_rate_scale = ffs(channel->bitrate_peak) - 6; in allegro_hevc_write_sps()
1857 hrd->vcl_hrd[0].bit_rate_value_minus1[0] = in allegro_hevc_write_sps()
1858 (channel->bitrate_peak >> (6 + hrd->bit_rate_scale)) - 1; in allegro_hevc_write_sps()
1861 hrd->cpb_size_scale = ffs(cpb_size) - 4; in allegro_hevc_write_sps()
[all …]