Lines Matching full:pps

11  * generator to generate the RBSP for SPS/PPS nal units and add them to the
283 static void nal_h264_rbsp_pps(struct rbsp *rbsp, struct nal_h264_pps *pps) in nal_h264_rbsp_pps() argument
287 rbsp_uev(rbsp, &pps->pic_parameter_set_id); in nal_h264_rbsp_pps()
288 rbsp_uev(rbsp, &pps->seq_parameter_set_id); in nal_h264_rbsp_pps()
289 rbsp_bit(rbsp, &pps->entropy_coding_mode_flag); in nal_h264_rbsp_pps()
290 rbsp_bit(rbsp, &pps->bottom_field_pic_order_in_frame_present_flag); in nal_h264_rbsp_pps()
291 rbsp_uev(rbsp, &pps->num_slice_groups_minus1); in nal_h264_rbsp_pps()
292 if (pps->num_slice_groups_minus1 > 0) { in nal_h264_rbsp_pps()
293 rbsp_uev(rbsp, &pps->slice_group_map_type); in nal_h264_rbsp_pps()
294 switch (pps->slice_group_map_type) { in nal_h264_rbsp_pps()
296 for (i = 0; i < pps->num_slice_groups_minus1; i++) in nal_h264_rbsp_pps()
297 rbsp_uev(rbsp, &pps->run_length_minus1[i]); in nal_h264_rbsp_pps()
300 for (i = 0; i < pps->num_slice_groups_minus1; i++) { in nal_h264_rbsp_pps()
301 rbsp_uev(rbsp, &pps->top_left[i]); in nal_h264_rbsp_pps()
302 rbsp_uev(rbsp, &pps->bottom_right[i]); in nal_h264_rbsp_pps()
306 rbsp_bit(rbsp, &pps->slice_group_change_direction_flag); in nal_h264_rbsp_pps()
307 rbsp_uev(rbsp, &pps->slice_group_change_rate_minus1); in nal_h264_rbsp_pps()
310 rbsp_uev(rbsp, &pps->pic_size_in_map_units_minus1); in nal_h264_rbsp_pps()
311 for (i = 0; i < pps->pic_size_in_map_units_minus1; i++) in nal_h264_rbsp_pps()
313 order_base_2(pps->num_slice_groups_minus1 + 1), in nal_h264_rbsp_pps()
314 &pps->slice_group_id[i]); in nal_h264_rbsp_pps()
320 rbsp_uev(rbsp, &pps->num_ref_idx_l0_default_active_minus1); in nal_h264_rbsp_pps()
321 rbsp_uev(rbsp, &pps->num_ref_idx_l1_default_active_minus1); in nal_h264_rbsp_pps()
322 rbsp_bit(rbsp, &pps->weighted_pred_flag); in nal_h264_rbsp_pps()
323 rbsp_bits(rbsp, 2, &pps->weighted_bipred_idc); in nal_h264_rbsp_pps()
324 rbsp_sev(rbsp, &pps->pic_init_qp_minus26); in nal_h264_rbsp_pps()
325 rbsp_sev(rbsp, &pps->pic_init_qs_minus26); in nal_h264_rbsp_pps()
326 rbsp_sev(rbsp, &pps->chroma_qp_index_offset); in nal_h264_rbsp_pps()
327 rbsp_bit(rbsp, &pps->deblocking_filter_control_present_flag); in nal_h264_rbsp_pps()
328 rbsp_bit(rbsp, &pps->constrained_intra_pred_flag); in nal_h264_rbsp_pps()
329 rbsp_bit(rbsp, &pps->redundant_pic_cnt_present_flag); in nal_h264_rbsp_pps()
331 rbsp_bit(rbsp, &pps->transform_8x8_mode_flag); in nal_h264_rbsp_pps()
332 rbsp_bit(rbsp, &pps->pic_scaling_matrix_present_flag); in nal_h264_rbsp_pps()
333 if (pps->pic_scaling_matrix_present_flag) in nal_h264_rbsp_pps()
335 rbsp_sev(rbsp, &pps->second_chroma_qp_index_offset); in nal_h264_rbsp_pps()
431 * nal_h264_write_pps() - Write PPS NAL unit into RBSP format
435 * @pps: &struct nal_h264_pps to convert to RBSP
437 * Convert @pps to RBSP data and write it into @dest.
439 * The size of the PPS NAL unit is not known in advance and this function will
440 * fail, if @dest does not hold sufficient space for the PPS NAL unit.
445 void *dest, size_t n, struct nal_h264_pps *pps) in nal_h264_write_pps() argument
464 nal_h264_rbsp_pps(&rbsp, pps); in nal_h264_write_pps()
476 * nal_h264_read_pps() - Read PPS NAL unit from RBSP format
478 * @pps: the &struct nal_h264_pps to fill from the RBSP data
482 * Read RBSP data from @src and use it to fill @pps.
487 struct nal_h264_pps *pps, void *src, size_t n) in nal_h264_read_pps() argument
501 nal_h264_rbsp_pps(&rbsp, pps); in nal_h264_read_pps()