Lines Matching refs:nr
315 NalReader * nr, guint8 maxNumSubLayersMinus1) in gst_h265_parse_profile_tier_level() argument
320 READ_UINT8 (nr, ptl->profile_space, 2); in gst_h265_parse_profile_tier_level()
321 READ_UINT8 (nr, ptl->tier_flag, 1); in gst_h265_parse_profile_tier_level()
322 READ_UINT8 (nr, ptl->profile_idc, 5); in gst_h265_parse_profile_tier_level()
325 READ_UINT8 (nr, ptl->profile_compatibility_flag[j], 1); in gst_h265_parse_profile_tier_level()
327 READ_UINT8 (nr, ptl->progressive_source_flag, 1); in gst_h265_parse_profile_tier_level()
328 READ_UINT8 (nr, ptl->interlaced_source_flag, 1); in gst_h265_parse_profile_tier_level()
329 READ_UINT8 (nr, ptl->non_packed_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
330 READ_UINT8 (nr, ptl->frame_only_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
332 READ_UINT8 (nr, ptl->max_12bit_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
333 READ_UINT8 (nr, ptl->max_10bit_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
334 READ_UINT8 (nr, ptl->max_8bit_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
335 READ_UINT8 (nr, ptl->max_422chroma_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
336 READ_UINT8 (nr, ptl->max_420chroma_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
337 READ_UINT8 (nr, ptl->max_monochrome_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
338 READ_UINT8 (nr, ptl->intra_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
339 READ_UINT8 (nr, ptl->one_picture_only_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
340 READ_UINT8 (nr, ptl->lower_bit_rate_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
341 READ_UINT8 (nr, ptl->max_14bit_constraint_flag, 1); in gst_h265_parse_profile_tier_level()
344 if (!nal_reader_skip (nr, 34)) in gst_h265_parse_profile_tier_level()
347 READ_UINT8 (nr, ptl->level_idc, 8); in gst_h265_parse_profile_tier_level()
349 READ_UINT8 (nr, ptl->sub_layer_profile_present_flag[j], 1); in gst_h265_parse_profile_tier_level()
350 READ_UINT8 (nr, ptl->sub_layer_level_present_flag[j], 1); in gst_h265_parse_profile_tier_level()
355 if (!nal_reader_skip (nr, 2)) in gst_h265_parse_profile_tier_level()
361 READ_UINT8 (nr, ptl->sub_layer_profile_space[i], 2); in gst_h265_parse_profile_tier_level()
362 READ_UINT8 (nr, ptl->sub_layer_tier_flag[i], 1); in gst_h265_parse_profile_tier_level()
363 READ_UINT8 (nr, ptl->sub_layer_profile_idc[i], 5); in gst_h265_parse_profile_tier_level()
366 READ_UINT8 (nr, ptl->sub_layer_profile_compatibility_flag[i][j], 1); in gst_h265_parse_profile_tier_level()
368 READ_UINT8 (nr, ptl->sub_layer_progressive_source_flag[i], 1); in gst_h265_parse_profile_tier_level()
369 READ_UINT8 (nr, ptl->sub_layer_interlaced_source_flag[i], 1); in gst_h265_parse_profile_tier_level()
370 READ_UINT8 (nr, ptl->sub_layer_non_packed_constraint_flag[i], 1); in gst_h265_parse_profile_tier_level()
371 READ_UINT8 (nr, ptl->sub_layer_frame_only_constraint_flag[i], 1); in gst_h265_parse_profile_tier_level()
373 if (!nal_reader_skip (nr, 44)) in gst_h265_parse_profile_tier_level()
378 READ_UINT8 (nr, ptl->sub_layer_level_idc[i], 8); in gst_h265_parse_profile_tier_level()
390 NalReader * nr, guint8 CpbCnt, guint8 sub_pic_hrd_params_present_flag) in gst_h265_parse_sub_layer_hrd_parameters() argument
397 READ_UE_MAX (nr, sub_hrd->bit_rate_value_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_sub_layer_hrd_parameters()
398 READ_UE_MAX (nr, sub_hrd->cpb_size_value_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_sub_layer_hrd_parameters()
401 READ_UE_MAX (nr, sub_hrd->cpb_size_du_value_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_sub_layer_hrd_parameters()
402 READ_UE_MAX (nr, sub_hrd->bit_rate_du_value_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_sub_layer_hrd_parameters()
405 READ_UINT8 (nr, sub_hrd->cbr_flag[i], 1); in gst_h265_parse_sub_layer_hrd_parameters()
416 gst_h265_parse_hrd_parameters (GstH265HRDParams * hrd, NalReader * nr, in gst_h265_parse_hrd_parameters() argument
430 READ_UINT8 (nr, hrd->nal_hrd_parameters_present_flag, 1); in gst_h265_parse_hrd_parameters()
431 READ_UINT8 (nr, hrd->vcl_hrd_parameters_present_flag, 1); in gst_h265_parse_hrd_parameters()
436 READ_UINT8 (nr, hrd->sub_pic_hrd_params_present_flag, 1); in gst_h265_parse_hrd_parameters()
439 READ_UINT8 (nr, hrd->tick_divisor_minus2, 8); in gst_h265_parse_hrd_parameters()
440 READ_UINT8 (nr, hrd->du_cpb_removal_delay_increment_length_minus1, 5); in gst_h265_parse_hrd_parameters()
441 READ_UINT8 (nr, hrd->sub_pic_cpb_params_in_pic_timing_sei_flag, 1); in gst_h265_parse_hrd_parameters()
442 READ_UINT8 (nr, hrd->dpb_output_delay_du_length_minus1, 5); in gst_h265_parse_hrd_parameters()
445 READ_UINT8 (nr, hrd->bit_rate_scale, 4); in gst_h265_parse_hrd_parameters()
446 READ_UINT8 (nr, hrd->cpb_size_scale, 4); in gst_h265_parse_hrd_parameters()
449 READ_UINT8 (nr, hrd->cpb_size_du_scale, 4); in gst_h265_parse_hrd_parameters()
451 READ_UINT8 (nr, hrd->initial_cpb_removal_delay_length_minus1, 5); in gst_h265_parse_hrd_parameters()
452 READ_UINT8 (nr, hrd->au_cpb_removal_delay_length_minus1, 5); in gst_h265_parse_hrd_parameters()
453 READ_UINT8 (nr, hrd->dpb_output_delay_length_minus1, 5); in gst_h265_parse_hrd_parameters()
458 READ_UINT8 (nr, hrd->fixed_pic_rate_general_flag[i], 1); in gst_h265_parse_hrd_parameters()
461 READ_UINT8 (nr, hrd->fixed_pic_rate_within_cvs_flag[i], 1); in gst_h265_parse_hrd_parameters()
466 READ_UE_MAX (nr, hrd->elemental_duration_in_tc_minus1[i], 2047); in gst_h265_parse_hrd_parameters()
468 READ_UINT8 (nr, hrd->low_delay_hrd_flag[i], 1); in gst_h265_parse_hrd_parameters()
471 READ_UE_MAX (nr, hrd->cpb_cnt_minus1[i], 31); in gst_h265_parse_hrd_parameters()
475 [i], nr, hrd->cpb_cnt_minus1[i], in gst_h265_parse_hrd_parameters()
481 [i], nr, hrd->cpb_cnt_minus1[i], in gst_h265_parse_hrd_parameters()
494 gst_h265_parse_vui_parameters (GstH265SPS * sps, NalReader * nr) in gst_h265_parse_vui_parameters() argument
516 READ_UINT8 (nr, vui->aspect_ratio_info_present_flag, 1); in gst_h265_parse_vui_parameters()
518 READ_UINT8 (nr, vui->aspect_ratio_idc, 8); in gst_h265_parse_vui_parameters()
520 READ_UINT16 (nr, vui->sar_width, 16); in gst_h265_parse_vui_parameters()
521 READ_UINT16 (nr, vui->sar_height, 16); in gst_h265_parse_vui_parameters()
530 READ_UINT8 (nr, vui->overscan_info_present_flag, 1); in gst_h265_parse_vui_parameters()
532 READ_UINT8 (nr, vui->overscan_appropriate_flag, 1); in gst_h265_parse_vui_parameters()
534 READ_UINT8 (nr, vui->video_signal_type_present_flag, 1); in gst_h265_parse_vui_parameters()
537 READ_UINT8 (nr, vui->video_format, 3); in gst_h265_parse_vui_parameters()
538 READ_UINT8 (nr, vui->video_full_range_flag, 1); in gst_h265_parse_vui_parameters()
539 READ_UINT8 (nr, vui->colour_description_present_flag, 1); in gst_h265_parse_vui_parameters()
541 READ_UINT8 (nr, vui->colour_primaries, 8); in gst_h265_parse_vui_parameters()
542 READ_UINT8 (nr, vui->transfer_characteristics, 8); in gst_h265_parse_vui_parameters()
543 READ_UINT8 (nr, vui->matrix_coefficients, 8); in gst_h265_parse_vui_parameters()
547 READ_UINT8 (nr, vui->chroma_loc_info_present_flag, 1); in gst_h265_parse_vui_parameters()
549 READ_UE_MAX (nr, vui->chroma_sample_loc_type_top_field, 5); in gst_h265_parse_vui_parameters()
550 READ_UE_MAX (nr, vui->chroma_sample_loc_type_bottom_field, 5); in gst_h265_parse_vui_parameters()
553 READ_UINT8 (nr, vui->neutral_chroma_indication_flag, 1); in gst_h265_parse_vui_parameters()
554 READ_UINT8 (nr, vui->field_seq_flag, 1); in gst_h265_parse_vui_parameters()
555 READ_UINT8 (nr, vui->frame_field_info_present_flag, 1); in gst_h265_parse_vui_parameters()
557 READ_UINT8 (nr, vui->default_display_window_flag, 1); in gst_h265_parse_vui_parameters()
559 READ_UE (nr, vui->def_disp_win_left_offset); in gst_h265_parse_vui_parameters()
560 READ_UE (nr, vui->def_disp_win_right_offset); in gst_h265_parse_vui_parameters()
561 READ_UE (nr, vui->def_disp_win_top_offset); in gst_h265_parse_vui_parameters()
562 READ_UE (nr, vui->def_disp_win_bottom_offset); in gst_h265_parse_vui_parameters()
565 READ_UINT8 (nr, vui->timing_info_present_flag, 1); in gst_h265_parse_vui_parameters()
567 READ_UINT32 (nr, vui->num_units_in_tick, 32); in gst_h265_parse_vui_parameters()
572 READ_UINT32 (nr, vui->time_scale, 32); in gst_h265_parse_vui_parameters()
577 READ_UINT8 (nr, vui->poc_proportional_to_timing_flag, 1); in gst_h265_parse_vui_parameters()
579 READ_UE_MAX (nr, vui->num_ticks_poc_diff_one_minus1, G_MAXUINT32 - 1); in gst_h265_parse_vui_parameters()
581 READ_UINT8 (nr, vui->hrd_parameters_present_flag, 1); in gst_h265_parse_vui_parameters()
583 if (!gst_h265_parse_hrd_parameters (&vui->hrd_params, nr, 1, in gst_h265_parse_vui_parameters()
588 READ_UINT8 (nr, vui->bitstream_restriction_flag, 1); in gst_h265_parse_vui_parameters()
590 READ_UINT8 (nr, vui->tiles_fixed_structure_flag, 1); in gst_h265_parse_vui_parameters()
591 READ_UINT8 (nr, vui->motion_vectors_over_pic_boundaries_flag, 1); in gst_h265_parse_vui_parameters()
592 READ_UINT8 (nr, vui->restricted_ref_pic_lists_flag, 1); in gst_h265_parse_vui_parameters()
593 READ_UE_MAX (nr, vui->min_spatial_segmentation_idc, 4096); in gst_h265_parse_vui_parameters()
594 READ_UE_MAX (nr, vui->max_bytes_per_pic_denom, 16); in gst_h265_parse_vui_parameters()
595 READ_UE_MAX (nr, vui->max_bits_per_min_cu_denom, 16); in gst_h265_parse_vui_parameters()
596 READ_UE_MAX (nr, vui->log2_max_mv_length_horizontal, 16); in gst_h265_parse_vui_parameters()
597 READ_UE_MAX (nr, vui->log2_max_mv_length_vertical, 15); in gst_h265_parse_vui_parameters()
676 gst_h265_parser_parse_scaling_lists (NalReader * nr, in gst_h265_parser_parse_scaling_lists() argument
709 READ_UINT8 (nr, scaling_list_pred_mode_flag, 1); in gst_h265_parser_parse_scaling_lists()
714 READ_UE_MAX (nr, scaling_list_pred_matrix_id_delta, matrixId); in gst_h265_parser_parse_scaling_lists()
747 READ_SE_ALLOWED (nr, scaling_list_dc_coef_minus8[matrixId], -7, in gst_h265_parser_parse_scaling_lists()
753 READ_SE_ALLOWED (nr, scaling_list_delta_coef, -128, 127); in gst_h265_parser_parse_scaling_lists()
771 stRPS, NalReader * nr, guint8 stRpsIdx, GstH265SPS * sps) in gst_h265_parser_parse_short_term_ref_pic_sets() argument
793 READ_UINT8 (nr, stRPS->inter_ref_pic_set_prediction_flag, 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
799 READ_UE_MAX (nr, stRPS->delta_idx_minus1, stRpsIdx - 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
801 READ_UINT8 (nr, stRPS->delta_rps_sign, 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
802 READ_UE_MAX (nr, stRPS->abs_delta_rps_minus1, 32767); in gst_h265_parser_parse_short_term_ref_pic_sets()
811 READ_UINT8 (nr, used_by_curr_pic_flag[j], 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
813 READ_UINT8 (nr, use_delta_flag[j], 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
864 READ_UE_MAX (nr, stRPS->NumNegativePics, in gst_h265_parser_parse_short_term_ref_pic_sets()
868 READ_UE_MAX (nr, stRPS->NumPositivePics, in gst_h265_parser_parse_short_term_ref_pic_sets()
873 READ_UE_MAX (nr, delta_poc_s0_minus1[i], 32767); in gst_h265_parser_parse_short_term_ref_pic_sets()
875 READ_UINT8 (nr, stRPS->UsedByCurrPicS0[i], 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
888 READ_UE_MAX (nr, delta_poc_s1_minus1[j], 32767); in gst_h265_parser_parse_short_term_ref_pic_sets()
891 READ_UINT8 (nr, stRPS->UsedByCurrPicS1[j], 1); in gst_h265_parser_parse_short_term_ref_pic_sets()
917 NalReader * nr, gint NumPocTotalCurr) in gst_h265_slice_parse_ref_pic_list_modification() argument
923 READ_UINT8 (nr, rpl_mod->ref_pic_list_modification_flag_l0, 1); in gst_h265_slice_parse_ref_pic_list_modification()
927 READ_UINT32 (nr, rpl_mod->list_entry_l0[i], n); in gst_h265_slice_parse_ref_pic_list_modification()
932 READ_UINT8 (nr, rpl_mod->ref_pic_list_modification_flag_l1, 1); in gst_h265_slice_parse_ref_pic_list_modification()
935 READ_UINT32 (nr, rpl_mod->list_entry_l1[i], n); in gst_h265_slice_parse_ref_pic_list_modification()
948 gst_h265_slice_parse_pred_weight_table (GstH265SliceHdr * slice, NalReader * nr) in gst_h265_slice_parse_pred_weight_table() argument
959 READ_UE_MAX (nr, p->luma_log2_weight_denom, 7); in gst_h265_slice_parse_pred_weight_table()
962 READ_SE_ALLOWED (nr, p->delta_chroma_log2_weight_denom, in gst_h265_slice_parse_pred_weight_table()
967 READ_UINT8 (nr, p->luma_weight_l0_flag[i], 1); in gst_h265_slice_parse_pred_weight_table()
971 READ_UINT8 (nr, p->chroma_weight_l0_flag[i], 1); in gst_h265_slice_parse_pred_weight_table()
975 READ_SE_ALLOWED (nr, p->delta_luma_weight_l0[i], -128, 127); in gst_h265_slice_parse_pred_weight_table()
976 READ_SE_ALLOWED (nr, p->luma_offset_l0[i], -128, 127); in gst_h265_slice_parse_pred_weight_table()
980 READ_SE_ALLOWED (nr, p->delta_chroma_weight_l0[i][j], -128, 127); in gst_h265_slice_parse_pred_weight_table()
981 READ_SE_ALLOWED (nr, p->delta_chroma_offset_l0[i][j], -512, 511); in gst_h265_slice_parse_pred_weight_table()
987 READ_UINT8 (nr, p->luma_weight_l1_flag[i], 1); in gst_h265_slice_parse_pred_weight_table()
990 READ_UINT8 (nr, p->chroma_weight_l1_flag[i], 1); in gst_h265_slice_parse_pred_weight_table()
994 READ_SE_ALLOWED (nr, p->delta_luma_weight_l1[i], -128, 127); in gst_h265_slice_parse_pred_weight_table()
995 READ_SE_ALLOWED (nr, p->luma_offset_l1[i], -128, 127); in gst_h265_slice_parse_pred_weight_table()
999 READ_SE_ALLOWED (nr, p->delta_chroma_weight_l1[i][j], -128, 127); in gst_h265_slice_parse_pred_weight_table()
1000 READ_SE_ALLOWED (nr, p->delta_chroma_offset_l1[i][j], -512, 511); in gst_h265_slice_parse_pred_weight_table()
1014 GstH265BufferingPeriod * per, NalReader * nr) in gst_h265_parser_parse_buffering_period() argument
1023 READ_UE_MAX (nr, sps_id, GST_H265_MAX_SPS_COUNT - 1); in gst_h265_parser_parse_buffering_period()
1037 READ_UINT8 (nr, per->irap_cpb_params_present_flag, 1); in gst_h265_parser_parse_buffering_period()
1040 READ_UINT8 (nr, per->cpb_delay_offset, in gst_h265_parser_parse_buffering_period()
1042 READ_UINT8 (nr, per->dpb_delay_offset, in gst_h265_parser_parse_buffering_period()
1048 READ_UINT8 (nr, per->concatenation_flag, 1); in gst_h265_parser_parse_buffering_period()
1049 READ_UINT8 (nr, per->au_cpb_removal_delay_delta_minus1, in gst_h265_parser_parse_buffering_period()
1054 READ_UINT8 (nr, per->nal_initial_cpb_removal_delay[i], n); in gst_h265_parser_parse_buffering_period()
1055 READ_UINT8 (nr, per->nal_initial_cpb_removal_offset[i], n); in gst_h265_parser_parse_buffering_period()
1058 READ_UINT8 (nr, per->nal_initial_alt_cpb_removal_delay[i], n); in gst_h265_parser_parse_buffering_period()
1059 READ_UINT8 (nr, per->nal_initial_alt_cpb_removal_offset[i], n); in gst_h265_parser_parse_buffering_period()
1066 READ_UINT8 (nr, per->vcl_initial_cpb_removal_delay[i], n); in gst_h265_parser_parse_buffering_period()
1067 READ_UINT8 (nr, per->vcl_initial_cpb_removal_offset[i], n); in gst_h265_parser_parse_buffering_period()
1070 READ_UINT8 (nr, per->vcl_initial_alt_cpb_removal_delay[i], n); in gst_h265_parser_parse_buffering_period()
1071 READ_UINT8 (nr, per->vcl_initial_alt_cpb_removal_offset[i], n); in gst_h265_parser_parse_buffering_period()
1086 GstH265PicTiming * tim, NalReader * nr) in gst_h265_parser_parse_pic_timing() argument
1114 READ_UINT8 (nr, tim->pic_struct, 4); in gst_h265_parser_parse_pic_timing()
1115 READ_UINT8 (nr, tim->source_scan_type, 2); in gst_h265_parser_parse_pic_timing()
1116 READ_UINT8 (nr, tim->duplicate_flag, 1); in gst_h265_parser_parse_pic_timing()
1125 READ_UINT8 (nr, tim->au_cpb_removal_delay_minus1, in gst_h265_parser_parse_pic_timing()
1127 READ_UINT8 (nr, tim->pic_dpb_output_delay, in gst_h265_parser_parse_pic_timing()
1131 READ_UINT8 (nr, tim->pic_dpb_output_du_delay, in gst_h265_parser_parse_pic_timing()
1136 READ_UE (nr, tim->num_decoding_units_minus1); in gst_h265_parser_parse_pic_timing()
1138 READ_UINT8 (nr, tim->du_common_cpb_removal_delay_flag, 1); in gst_h265_parser_parse_pic_timing()
1140 READ_UINT8 (nr, tim->du_common_cpb_removal_delay_increment_minus1, in gst_h265_parser_parse_pic_timing()
1149 READ_UE (nr, tim->num_nalus_in_du_minus1[i]); in gst_h265_parser_parse_pic_timing()
1153 READ_UINT8 (nr, tim->du_cpb_removal_delay_increment_minus1[i], in gst_h265_parser_parse_pic_timing()
1168 GstH265RecoveryPoint * rp, NalReader * nr) in gst_h265_parser_parse_recovery_point() argument
1181 READ_SE_ALLOWED (nr, rp->recovery_poc_cnt, -max_pic_order_cnt_lsb / 2, in gst_h265_parser_parse_recovery_point()
1183 READ_UINT8 (nr, rp->exact_match_flag, 1); in gst_h265_parser_parse_recovery_point()
1184 READ_UINT8 (nr, rp->broken_link_flag, 1); in gst_h265_parser_parse_recovery_point()
1196 GstH265RegisteredUserData * rud, NalReader * nr, guint payload_size) in gst_h265_parser_parse_registered_user_data() argument
1209 READ_UINT8 (nr, rud->country_code, 8); in gst_h265_parser_parse_registered_user_data()
1213 READ_UINT8 (nr, rud->country_code_extension, 8); in gst_h265_parser_parse_registered_user_data()
1226 READ_UINT8 (nr, data[i], 8); in gst_h265_parser_parse_registered_user_data()
1246 GstH265TimeCode * tc, NalReader * nr) in gst_h265_parser_parse_time_code() argument
1252 READ_UINT8 (nr, tc->num_clock_ts, 2); in gst_h265_parser_parse_time_code()
1255 READ_UINT8 (nr, tc->clock_timestamp_flag[i], 1); in gst_h265_parser_parse_time_code()
1257 READ_UINT8 (nr, tc->units_field_based_flag[i], 1); in gst_h265_parser_parse_time_code()
1258 READ_UINT8 (nr, tc->counting_type[i], 5); in gst_h265_parser_parse_time_code()
1259 READ_UINT8 (nr, tc->full_timestamp_flag[i], 1); in gst_h265_parser_parse_time_code()
1260 READ_UINT8 (nr, tc->discontinuity_flag[i], 1); in gst_h265_parser_parse_time_code()
1261 READ_UINT8 (nr, tc->cnt_dropped_flag[i], 1); in gst_h265_parser_parse_time_code()
1262 READ_UINT16 (nr, tc->n_frames[i], 9); in gst_h265_parser_parse_time_code()
1266 READ_UINT8 (nr, tc->seconds_value[i], 6); in gst_h265_parser_parse_time_code()
1269 READ_UINT8 (nr, tc->minutes_value[i], 6); in gst_h265_parser_parse_time_code()
1272 READ_UINT8 (nr, tc->hours_value[i], 5); in gst_h265_parser_parse_time_code()
1274 READ_UINT8 (nr, tc->seconds_flag[i], 1); in gst_h265_parser_parse_time_code()
1276 READ_UINT8 (nr, tc->seconds_value[i], 6); in gst_h265_parser_parse_time_code()
1277 READ_UINT8 (nr, tc->minutes_flag[i], 1); in gst_h265_parser_parse_time_code()
1279 READ_UINT8 (nr, tc->minutes_value[i], 6); in gst_h265_parser_parse_time_code()
1280 READ_UINT8 (nr, tc->hours_flag[i], 1); in gst_h265_parser_parse_time_code()
1282 READ_UINT8 (nr, tc->hours_value[i], 5); in gst_h265_parser_parse_time_code()
1289 READ_UINT8 (nr, tc->time_offset_length[i], 5); in gst_h265_parser_parse_time_code()
1292 READ_UINT32 (nr, tc->time_offset_value[i], tc->time_offset_length[i]); in gst_h265_parser_parse_time_code()
1304 GstH265MasteringDisplayColourVolume * mdcv, NalReader * nr) in gst_h265_parser_parse_mastering_display_colour_volume() argument
1311 READ_UINT16 (nr, mdcv->display_primaries_x[i], 16); in gst_h265_parser_parse_mastering_display_colour_volume()
1312 READ_UINT16 (nr, mdcv->display_primaries_y[i], 16); in gst_h265_parser_parse_mastering_display_colour_volume()
1315 READ_UINT16 (nr, mdcv->white_point_x, 16); in gst_h265_parser_parse_mastering_display_colour_volume()
1316 READ_UINT16 (nr, mdcv->white_point_y, 16); in gst_h265_parser_parse_mastering_display_colour_volume()
1317 READ_UINT32 (nr, mdcv->max_display_mastering_luminance, 32); in gst_h265_parser_parse_mastering_display_colour_volume()
1318 READ_UINT32 (nr, mdcv->min_display_mastering_luminance, 32); in gst_h265_parser_parse_mastering_display_colour_volume()
1329 GstH265ContentLightLevel * cll, NalReader * nr) in gst_h265_parser_parse_content_light_level_info() argument
1333 READ_UINT16 (nr, cll->max_content_light_level, 16); in gst_h265_parser_parse_content_light_level_info()
1334 READ_UINT16 (nr, cll->max_pic_average_light_level, 16); in gst_h265_parser_parse_content_light_level_info()
1654 NalReader nr; in gst_h265_parse_vps() local
1659 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h265_parse_vps()
1666 READ_UINT8 (&nr, vps->id, 4); in gst_h265_parse_vps()
1668 READ_UINT8 (&nr, vps->base_layer_internal_flag, 1); in gst_h265_parse_vps()
1669 READ_UINT8 (&nr, vps->base_layer_available_flag, 1); in gst_h265_parse_vps()
1671 READ_UINT8 (&nr, vps->max_layers_minus1, 6); in gst_h265_parse_vps()
1672 READ_UINT8 (&nr, vps->max_sub_layers_minus1, 3); in gst_h265_parse_vps()
1674 READ_UINT8 (&nr, vps->temporal_id_nesting_flag, 1); in gst_h265_parse_vps()
1677 if (!nal_reader_skip (&nr, 16)) in gst_h265_parse_vps()
1680 if (!gst_h265_parse_profile_tier_level (&vps->profile_tier_level, &nr, in gst_h265_parse_vps()
1684 READ_UINT8 (&nr, vps->sub_layer_ordering_info_present_flag, 1); in gst_h265_parse_vps()
1689 READ_UE_MAX (&nr, vps->max_dec_pic_buffering_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_vps()
1690 READ_UE_MAX (&nr, vps->max_num_reorder_pics[i], in gst_h265_parse_vps()
1692 READ_UE_MAX (&nr, vps->max_latency_increase_plus1[i], G_MAXUINT32 - 1); in gst_h265_parse_vps()
1706 READ_UINT8 (&nr, vps->max_layer_id, 6); in gst_h265_parse_vps()
1710 READ_UE_MAX (&nr, vps->num_layer_sets_minus1, 1023); in gst_h265_parse_vps()
1718 nal_reader_skip (&nr, 1); in gst_h265_parse_vps()
1722 READ_UINT8 (&nr, vps->timing_info_present_flag, 1); in gst_h265_parse_vps()
1725 READ_UINT32 (&nr, vps->num_units_in_tick, 32); in gst_h265_parse_vps()
1726 READ_UINT32 (&nr, vps->time_scale, 32); in gst_h265_parse_vps()
1727 READ_UINT8 (&nr, vps->poc_proportional_to_timing_flag, 1); in gst_h265_parse_vps()
1730 READ_UE_MAX (&nr, vps->num_ticks_poc_diff_one_minus1, G_MAXUINT32 - 1); in gst_h265_parse_vps()
1732 READ_UE_MAX (&nr, vps->num_hrd_parameters, 1024); in gst_h265_parse_vps()
1738 READ_UE_MAX (&nr, vps->hrd_layer_set_idx, 1023); in gst_h265_parse_vps()
1744 if (!gst_h265_parse_hrd_parameters (&vps->hrd_params, &nr, in gst_h265_parse_vps()
1763 READ_UE_MAX (&nr, hrd_layer_set_idx, 1023); in gst_h265_parse_vps()
1767 READ_UINT8 (&nr, cprms_present_flag, 1); in gst_h265_parse_vps()
1769 if (!gst_h265_parse_hrd_parameters (&hrd_params, &nr, in gst_h265_parse_vps()
1774 READ_UINT8 (&nr, vps->vps_extension, 1); in gst_h265_parse_vps()
1828 NalReader nr; in gst_h265_parse_sps() local
1838 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h265_parse_sps()
1843 READ_UINT8 (&nr, vps_id, 4); in gst_h265_parse_sps()
1851 READ_UINT8 (&nr, sps->max_sub_layers_minus1, 3); in gst_h265_parse_sps()
1853 READ_UINT8 (&nr, sps->temporal_id_nesting_flag, 1); in gst_h265_parse_sps()
1855 if (!gst_h265_parse_profile_tier_level (&sps->profile_tier_level, &nr, in gst_h265_parse_sps()
1859 READ_UE_MAX (&nr, sps->id, GST_H265_MAX_SPS_COUNT - 1); in gst_h265_parse_sps()
1861 READ_UE_MAX (&nr, sps->chroma_format_idc, 3); in gst_h265_parse_sps()
1863 READ_UINT8 (&nr, sps->separate_colour_plane_flag, 1); in gst_h265_parse_sps()
1865 READ_UE_ALLOWED (&nr, sps->pic_width_in_luma_samples, 1, 16888); in gst_h265_parse_sps()
1866 READ_UE_ALLOWED (&nr, sps->pic_height_in_luma_samples, 1, 16888); in gst_h265_parse_sps()
1868 READ_UINT8 (&nr, sps->conformance_window_flag, 1); in gst_h265_parse_sps()
1870 READ_UE (&nr, sps->conf_win_left_offset); in gst_h265_parse_sps()
1871 READ_UE (&nr, sps->conf_win_right_offset); in gst_h265_parse_sps()
1872 READ_UE (&nr, sps->conf_win_top_offset); in gst_h265_parse_sps()
1873 READ_UE (&nr, sps->conf_win_bottom_offset); in gst_h265_parse_sps()
1876 READ_UE_MAX (&nr, sps->bit_depth_luma_minus8, 6); in gst_h265_parse_sps()
1877 READ_UE_MAX (&nr, sps->bit_depth_chroma_minus8, 6); in gst_h265_parse_sps()
1878 READ_UE_MAX (&nr, sps->log2_max_pic_order_cnt_lsb_minus4, 12); in gst_h265_parse_sps()
1880 READ_UINT8 (&nr, sps->sub_layer_ordering_info_present_flag, 1); in gst_h265_parse_sps()
1884 READ_UE_MAX (&nr, sps->max_dec_pic_buffering_minus1[i], 16); in gst_h265_parse_sps()
1885 READ_UE_MAX (&nr, sps->max_num_reorder_pics[i], in gst_h265_parse_sps()
1887 READ_UE_MAX (&nr, sps->max_latency_increase_plus1[i], G_MAXUINT32 - 1); in gst_h265_parse_sps()
1903 READ_UE_MAX (&nr, sps->log2_min_luma_coding_block_size_minus3, 3); in gst_h265_parse_sps()
1904 READ_UE_MAX (&nr, sps->log2_diff_max_min_luma_coding_block_size, 6); in gst_h265_parse_sps()
1905 READ_UE_MAX (&nr, sps->log2_min_transform_block_size_minus2, 3); in gst_h265_parse_sps()
1906 READ_UE_MAX (&nr, sps->log2_diff_max_min_transform_block_size, 3); in gst_h265_parse_sps()
1907 READ_UE_MAX (&nr, sps->max_transform_hierarchy_depth_inter, 4); in gst_h265_parse_sps()
1908 READ_UE_MAX (&nr, sps->max_transform_hierarchy_depth_intra, 4); in gst_h265_parse_sps()
1910 READ_UINT8 (&nr, sps->scaling_list_enabled_flag, 1); in gst_h265_parse_sps()
1912 READ_UINT8 (&nr, sps->scaling_list_data_present_flag, 1); in gst_h265_parse_sps()
1915 if (!gst_h265_parser_parse_scaling_lists (&nr, &sps->scaling_list, FALSE)) in gst_h265_parse_sps()
1919 READ_UINT8 (&nr, sps->amp_enabled_flag, 1); in gst_h265_parse_sps()
1920 READ_UINT8 (&nr, sps->sample_adaptive_offset_enabled_flag, 1); in gst_h265_parse_sps()
1921 READ_UINT8 (&nr, sps->pcm_enabled_flag, 1); in gst_h265_parse_sps()
1924 READ_UINT8 (&nr, sps->pcm_sample_bit_depth_luma_minus1, 4); in gst_h265_parse_sps()
1925 READ_UINT8 (&nr, sps->pcm_sample_bit_depth_chroma_minus1, 4); in gst_h265_parse_sps()
1926 READ_UE_MAX (&nr, sps->log2_min_pcm_luma_coding_block_size_minus3, 2); in gst_h265_parse_sps()
1927 READ_UE_MAX (&nr, sps->log2_diff_max_min_pcm_luma_coding_block_size, 2); in gst_h265_parse_sps()
1928 READ_UINT8 (&nr, sps->pcm_loop_filter_disabled_flag, 1); in gst_h265_parse_sps()
1931 READ_UE_MAX (&nr, sps->num_short_term_ref_pic_sets, 64); in gst_h265_parse_sps()
1934 (&sps->short_term_ref_pic_set[i], &nr, i, sps)) in gst_h265_parse_sps()
1937 READ_UINT8 (&nr, sps->long_term_ref_pics_present_flag, 1); in gst_h265_parse_sps()
1939 READ_UE_MAX (&nr, sps->num_long_term_ref_pics_sps, 32); in gst_h265_parse_sps()
1941 READ_UINT16 (&nr, sps->lt_ref_pic_poc_lsb_sps[i], in gst_h265_parse_sps()
1943 READ_UINT8 (&nr, sps->used_by_curr_pic_lt_sps_flag[i], 1); in gst_h265_parse_sps()
1947 READ_UINT8 (&nr, sps->temporal_mvp_enabled_flag, 1); in gst_h265_parse_sps()
1948 READ_UINT8 (&nr, sps->strong_intra_smoothing_enabled_flag, 1); in gst_h265_parse_sps()
1949 READ_UINT8 (&nr, sps->vui_parameters_present_flag, 1); in gst_h265_parse_sps()
1952 if (!gst_h265_parse_vui_parameters (sps, &nr)) in gst_h265_parse_sps()
1957 READ_UINT8 (&nr, sps->sps_extension_flag, 1); in gst_h265_parse_sps()
1960 READ_UINT8 (&nr, sps->sps_range_extension_flag, 1); in gst_h265_parse_sps()
1961 READ_UINT8 (&nr, sps->sps_multilayer_extension_flag, 1); in gst_h265_parse_sps()
1962 READ_UINT8 (&nr, sps->sps_3d_extension_flag, 1); in gst_h265_parse_sps()
1963 READ_UINT8 (&nr, sps->sps_scc_extension_flag, 1); in gst_h265_parse_sps()
1964 READ_UINT8 (&nr, sps->sps_extension_4bits, 4); in gst_h265_parse_sps()
1968 READ_UINT8 (&nr, in gst_h265_parse_sps()
1970 READ_UINT8 (&nr, in gst_h265_parse_sps()
1972 READ_UINT8 (&nr, sps->sps_extnsion_params.implicit_rdpcm_enabled_flag, 1); in gst_h265_parse_sps()
1973 READ_UINT8 (&nr, sps->sps_extnsion_params.explicit_rdpcm_enabled_flag, 1); in gst_h265_parse_sps()
1974 READ_UINT8 (&nr, in gst_h265_parse_sps()
1976 READ_UINT8 (&nr, sps->sps_extnsion_params.intra_smoothing_disabled_flag, 1); in gst_h265_parse_sps()
1977 READ_UINT8 (&nr, in gst_h265_parse_sps()
1979 READ_UINT8 (&nr, in gst_h265_parse_sps()
1981 READ_UINT8 (&nr, in gst_h265_parse_sps()
1996 READ_UINT8 (&nr, in gst_h265_parse_sps()
1998 READ_UINT8 (&nr, sps->sps_scc_extension_params.palette_mode_enabled_flag, in gst_h265_parse_sps()
2001 READ_UE_MAX (&nr, sps->sps_scc_extension_params.palette_max_size, 64); in gst_h265_parse_sps()
2002 READ_UE_MAX (&nr, in gst_h265_parse_sps()
2006 READ_UINT8 (&nr, in gst_h265_parse_sps()
2012 READ_UE_MAX (&nr, in gst_h265_parse_sps()
2027 READ_UINT32 (&nr, in gst_h265_parse_sps()
2035 READ_UINT8 (&nr, in gst_h265_parse_sps()
2037 READ_UINT8 (&nr, in gst_h265_parse_sps()
2115 NalReader nr; in gst_h265_parse_pps() local
2124 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h265_parse_pps()
2129 READ_UE_MAX (&nr, pps->id, GST_H265_MAX_PPS_COUNT - 1); in gst_h265_parse_pps()
2130 READ_UE_MAX (&nr, sps_id, GST_H265_MAX_SPS_COUNT - 1); in gst_h265_parse_pps()
2154 READ_UINT8 (&nr, pps->dependent_slice_segments_enabled_flag, 1); in gst_h265_parse_pps()
2155 READ_UINT8 (&nr, pps->output_flag_present_flag, 1); in gst_h265_parse_pps()
2156 READ_UINT8 (&nr, pps->num_extra_slice_header_bits, 3); in gst_h265_parse_pps()
2157 READ_UINT8 (&nr, pps->sign_data_hiding_enabled_flag, 1); in gst_h265_parse_pps()
2158 READ_UINT8 (&nr, pps->cabac_init_present_flag, 1); in gst_h265_parse_pps()
2160 READ_UE_MAX (&nr, pps->num_ref_idx_l0_default_active_minus1, 14); in gst_h265_parse_pps()
2161 READ_UE_MAX (&nr, pps->num_ref_idx_l1_default_active_minus1, 14); in gst_h265_parse_pps()
2162 READ_SE_ALLOWED (&nr, pps->init_qp_minus26, -(26 + qp_bd_offset), 25); in gst_h265_parse_pps()
2164 READ_UINT8 (&nr, pps->constrained_intra_pred_flag, 1); in gst_h265_parse_pps()
2165 READ_UINT8 (&nr, pps->transform_skip_enabled_flag, 1); in gst_h265_parse_pps()
2167 READ_UINT8 (&nr, pps->cu_qp_delta_enabled_flag, 1); in gst_h265_parse_pps()
2169 READ_UE_MAX (&nr, pps->diff_cu_qp_delta_depth, in gst_h265_parse_pps()
2172 READ_SE_ALLOWED (&nr, pps->cb_qp_offset, -12, 12); in gst_h265_parse_pps()
2173 READ_SE_ALLOWED (&nr, pps->cr_qp_offset, -12, 12); in gst_h265_parse_pps()
2175 READ_UINT8 (&nr, pps->slice_chroma_qp_offsets_present_flag, 1); in gst_h265_parse_pps()
2176 READ_UINT8 (&nr, pps->weighted_pred_flag, 1); in gst_h265_parse_pps()
2177 READ_UINT8 (&nr, pps->weighted_bipred_flag, 1); in gst_h265_parse_pps()
2178 READ_UINT8 (&nr, pps->transquant_bypass_enabled_flag, 1); in gst_h265_parse_pps()
2179 READ_UINT8 (&nr, pps->tiles_enabled_flag, 1); in gst_h265_parse_pps()
2180 READ_UINT8 (&nr, pps->entropy_coding_sync_enabled_flag, 1); in gst_h265_parse_pps()
2183 READ_UE_ALLOWED (&nr, in gst_h265_parse_pps()
2185 READ_UE_ALLOWED (&nr, in gst_h265_parse_pps()
2201 READ_UINT8 (&nr, pps->uniform_spacing_flag, 1); in gst_h265_parse_pps()
2220 READ_UE (&nr, pps->column_width_minus1[i]); in gst_h265_parse_pps()
2228 READ_UE (&nr, pps->row_height_minus1[i]); in gst_h265_parse_pps()
2233 READ_UINT8 (&nr, pps->loop_filter_across_tiles_enabled_flag, 1); in gst_h265_parse_pps()
2236 READ_UINT8 (&nr, pps->loop_filter_across_slices_enabled_flag, 1); in gst_h265_parse_pps()
2238 READ_UINT8 (&nr, pps->deblocking_filter_control_present_flag, 1); in gst_h265_parse_pps()
2240 READ_UINT8 (&nr, pps->deblocking_filter_override_enabled_flag, 1); in gst_h265_parse_pps()
2242 READ_UINT8 (&nr, pps->deblocking_filter_disabled_flag, 1); in gst_h265_parse_pps()
2244 READ_SE_ALLOWED (&nr, pps->beta_offset_div2, -6, 6); in gst_h265_parse_pps()
2245 READ_SE_ALLOWED (&nr, pps->tc_offset_div2, -6, +6); in gst_h265_parse_pps()
2249 READ_UINT8 (&nr, pps->scaling_list_data_present_flag, 1); in gst_h265_parse_pps()
2251 if (!gst_h265_parser_parse_scaling_lists (&nr, &pps->scaling_list, FALSE)) in gst_h265_parse_pps()
2255 if (!gst_h265_parser_parse_scaling_lists (&nr, &pps->scaling_list, TRUE)) in gst_h265_parse_pps()
2258 READ_UINT8 (&nr, pps->lists_modification_present_flag, 1); in gst_h265_parse_pps()
2259 READ_UE_MAX (&nr, pps->log2_parallel_merge_level_minus2, 4); in gst_h265_parse_pps()
2260 READ_UINT8 (&nr, pps->slice_segment_header_extension_present_flag, 1); in gst_h265_parse_pps()
2261 READ_UINT8 (&nr, pps->pps_extension_flag, 1); in gst_h265_parse_pps()
2264 READ_UINT8 (&nr, pps->pps_range_extension_flag, 1); in gst_h265_parse_pps()
2265 READ_UINT8 (&nr, pps->pps_multilayer_extension_flag, 1); in gst_h265_parse_pps()
2266 READ_UINT8 (&nr, pps->pps_3d_extension_flag, 1); in gst_h265_parse_pps()
2267 READ_UINT8 (&nr, pps->pps_scc_extension_flag, 1); in gst_h265_parse_pps()
2268 READ_UINT8 (&nr, pps->pps_extension_4bits, 4); in gst_h265_parse_pps()
2273 READ_UE (&nr, in gst_h265_parse_pps()
2275 READ_UINT8 (&nr, in gst_h265_parse_pps()
2277 READ_UINT8 (&nr, in gst_h265_parse_pps()
2280 READ_UE_MAX (&nr, in gst_h265_parse_pps()
2283 READ_UE_MAX (&nr, in gst_h265_parse_pps()
2288 READ_SE_ALLOWED (&nr, pps->pps_extension_params.cb_qp_offset_list[i], in gst_h265_parse_pps()
2290 READ_SE_ALLOWED (&nr, pps->pps_extension_params.cr_qp_offset_list[i], in gst_h265_parse_pps()
2298 READ_UE_ALLOWED (&nr, pps->pps_extension_params.log2_sao_offset_scale_luma, in gst_h265_parse_pps()
2300 READ_UE_ALLOWED (&nr, in gst_h265_parse_pps()
2316 READ_UINT8 (&nr, in gst_h265_parse_pps()
2318 READ_UINT8 (&nr, in gst_h265_parse_pps()
2323 READ_UINT8 (&nr, in gst_h265_parse_pps()
2326 READ_SE_ALLOWED (&nr, in gst_h265_parse_pps()
2328 READ_SE_ALLOWED (&nr, in gst_h265_parse_pps()
2330 READ_SE_ALLOWED (&nr, in gst_h265_parse_pps()
2334 READ_UINT8 (&nr, in gst_h265_parse_pps()
2339 READ_UE_MAX (&nr, in gst_h265_parse_pps()
2347 READ_UINT8 (&nr, pps->pps_scc_extension_params.monochrome_palette_flag, in gst_h265_parse_pps()
2352 READ_UE_ALLOWED (&nr, in gst_h265_parse_pps()
2359 READ_UE_ALLOWED (&nr, in gst_h265_parse_pps()
2376 READ_UINT32 (&nr, in gst_h265_parse_pps()
2435 NalReader nr; in gst_h265_parser_parse_slice_hdr() local
2452 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h265_parser_parse_slice_hdr()
2457 READ_UINT8 (&nr, slice->first_slice_segment_in_pic_flag, 1); in gst_h265_parser_parse_slice_hdr()
2460 READ_UINT8 (&nr, slice->no_output_of_prior_pics_flag, 1); in gst_h265_parser_parse_slice_hdr()
2462 READ_UE_MAX (&nr, pps_id, GST_H265_MAX_PPS_COUNT - 1); in gst_h265_parser_parse_slice_hdr()
2494 READ_UINT8 (&nr, slice->dependent_slice_segment_flag, 1); in gst_h265_parser_parse_slice_hdr()
2496 READ_UINT32 (&nr, slice->segment_address, n); in gst_h265_parser_parse_slice_hdr()
2501 nal_reader_skip (&nr, 1); in gst_h265_parser_parse_slice_hdr()
2502 READ_UE_MAX (&nr, slice->type, 63); in gst_h265_parser_parse_slice_hdr()
2506 READ_UINT8 (&nr, slice->pic_output_flag, 1); in gst_h265_parser_parse_slice_hdr()
2508 READ_UINT8 (&nr, slice->colour_plane_id, 2); in gst_h265_parser_parse_slice_hdr()
2511 READ_UINT16 (&nr, slice->pic_order_cnt_lsb, in gst_h265_parser_parse_slice_hdr()
2514 READ_UINT8 (&nr, slice->short_term_ref_pic_set_sps_flag, 1); in gst_h265_parser_parse_slice_hdr()
2516 guint pos = nal_reader_get_pos (&nr); in gst_h265_parser_parse_slice_hdr()
2518 (&slice->short_term_ref_pic_sets, &nr, in gst_h265_parser_parse_slice_hdr()
2522 slice->short_term_ref_pic_set_size = nal_reader_get_pos (&nr) - pos; in gst_h265_parser_parse_slice_hdr()
2525 READ_UINT8 (&nr, slice->short_term_ref_pic_set_idx, n); in gst_h265_parser_parse_slice_hdr()
2534 READ_UE_MAX (&nr, slice->num_long_term_sps, in gst_h265_parser_parse_slice_hdr()
2537 READ_UE_MAX (&nr, slice->num_long_term_pics, 16); in gst_h265_parser_parse_slice_hdr()
2543 READ_UINT8 (&nr, slice->lt_idx_sps[i], n); in gst_h265_parser_parse_slice_hdr()
2546 READ_UINT32 (&nr, slice->poc_lsb_lt[i], in gst_h265_parser_parse_slice_hdr()
2548 READ_UINT8 (&nr, slice->used_by_curr_pic_lt_flag[i], 1); in gst_h265_parser_parse_slice_hdr()
2557 READ_UINT8 (&nr, slice->delta_poc_msb_present_flag[i], 1); in gst_h265_parser_parse_slice_hdr()
2559 READ_UE (&nr, slice->delta_poc_msb_cycle_lt[i]); in gst_h265_parser_parse_slice_hdr()
2563 READ_UINT8 (&nr, slice->temporal_mvp_enabled_flag, 1); in gst_h265_parser_parse_slice_hdr()
2567 READ_UINT8 (&nr, slice->sao_luma_flag, 1); in gst_h265_parser_parse_slice_hdr()
2569 READ_UINT8 (&nr, slice->sao_chroma_flag, 1); in gst_h265_parser_parse_slice_hdr()
2573 READ_UINT8 (&nr, slice->num_ref_idx_active_override_flag, 1); in gst_h265_parser_parse_slice_hdr()
2576 READ_UE_MAX (&nr, slice->num_ref_idx_l0_active_minus1, 14); in gst_h265_parser_parse_slice_hdr()
2578 READ_UE_MAX (&nr, slice->num_ref_idx_l1_active_minus1, 14); in gst_h265_parser_parse_slice_hdr()
2607 if (!gst_h265_slice_parse_ref_pic_list_modification (slice, &nr, in gst_h265_parser_parse_slice_hdr()
2613 READ_UINT8 (&nr, slice->mvd_l1_zero_flag, 1); in gst_h265_parser_parse_slice_hdr()
2615 READ_UINT8 (&nr, slice->cabac_init_flag, 1); in gst_h265_parser_parse_slice_hdr()
2618 READ_UINT8 (&nr, slice->collocated_from_l0_flag, 1); in gst_h265_parser_parse_slice_hdr()
2629 READ_UE_MAX (&nr, slice->collocated_ref_idx, in gst_h265_parser_parse_slice_hdr()
2633 READ_UE_MAX (&nr, slice->collocated_ref_idx, in gst_h265_parser_parse_slice_hdr()
2640 if (!gst_h265_slice_parse_pred_weight_table (slice, &nr)) in gst_h265_parser_parse_slice_hdr()
2642 READ_UE_MAX (&nr, slice->five_minus_max_num_merge_cand, 4); in gst_h265_parser_parse_slice_hdr()
2646 READ_UINT8 (&nr, slice->use_integer_mv_flag, 1); in gst_h265_parser_parse_slice_hdr()
2649 READ_SE_ALLOWED (&nr, slice->qp_delta, -87, 77); in gst_h265_parser_parse_slice_hdr()
2651 READ_SE_ALLOWED (&nr, slice->cb_qp_offset, -12, 12); in gst_h265_parser_parse_slice_hdr()
2652 READ_SE_ALLOWED (&nr, slice->cr_qp_offset, -12, 12); in gst_h265_parser_parse_slice_hdr()
2656 READ_SE_ALLOWED (&nr, slice->slice_act_y_qp_offset, -12, 12); in gst_h265_parser_parse_slice_hdr()
2657 READ_SE_ALLOWED (&nr, slice->slice_act_cb_qp_offset, -12, 12); in gst_h265_parser_parse_slice_hdr()
2658 READ_SE_ALLOWED (&nr, slice->slice_act_cr_qp_offset, -12, 12); in gst_h265_parser_parse_slice_hdr()
2662 READ_UINT8 (&nr, slice->cu_chroma_qp_offset_enabled_flag, 1); in gst_h265_parser_parse_slice_hdr()
2665 READ_UINT8 (&nr, slice->deblocking_filter_override_flag, 1); in gst_h265_parser_parse_slice_hdr()
2667 READ_UINT8 (&nr, slice->deblocking_filter_disabled_flag, 1); in gst_h265_parser_parse_slice_hdr()
2669 READ_SE_ALLOWED (&nr, slice->beta_offset_div2, -6, 6); in gst_h265_parser_parse_slice_hdr()
2670 READ_SE_ALLOWED (&nr, slice->tc_offset_div2, -6, 6); in gst_h265_parser_parse_slice_hdr()
2677 READ_UINT8 (&nr, slice->loop_filter_across_slices_enabled_flag, 1); in gst_h265_parser_parse_slice_hdr()
2693 READ_UE_MAX (&nr, slice->num_entry_point_offsets, offset_max); in gst_h265_parser_parse_slice_hdr()
2695 READ_UE_MAX (&nr, slice->offset_len_minus1, 31); in gst_h265_parser_parse_slice_hdr()
2699 READ_UINT32 (&nr, slice->entry_point_offset_minus1[i], in gst_h265_parser_parse_slice_hdr()
2706 READ_UE_MAX (&nr, slice_segment_header_extension_length, 256); in gst_h265_parser_parse_slice_hdr()
2708 if (!nal_reader_skip (&nr, 8)) in gst_h265_parser_parse_slice_hdr()
2713 if (!nal_reader_skip (&nr, 1)) in gst_h265_parser_parse_slice_hdr()
2715 while (!nal_reader_is_byte_aligned (&nr)) { in gst_h265_parser_parse_slice_hdr()
2716 if (!nal_reader_skip (&nr, 1)) in gst_h265_parser_parse_slice_hdr()
2720 slice->header_size = nal_reader_get_pos (&nr); in gst_h265_parser_parse_slice_hdr()
2721 slice->n_emulation_prevention_bytes = nal_reader_get_epb_count (&nr); in gst_h265_parser_parse_slice_hdr()
2734 nal_reader_has_more_data_in_payload (NalReader * nr, in nal_reader_has_more_data_in_payload() argument
2737 if (nal_reader_is_byte_aligned (nr) && in nal_reader_has_more_data_in_payload()
2738 (nal_reader_get_pos (nr) >= (payload_start_pos_bit + 8 * payloadSize))) in nal_reader_has_more_data_in_payload()
2746 guint8 nal_type, NalReader * nr, GstH265SEIMessage * sei) in gst_h265_parser_parse_sei_message() argument
2759 READ_UINT8 (nr, payload_type_byte, 8); in gst_h265_parser_parse_sei_message()
2764 READ_UINT8 (nr, payload_size_byte, 8); in gst_h265_parser_parse_sei_message()
2769 remaining = nal_reader_get_remaining (nr); in gst_h265_parser_parse_sei_message()
2772 payload_start_pos_bit = nal_reader_get_pos (nr); in gst_h265_parser_parse_sei_message()
2782 &sei->payload.buffering_period, nr); in gst_h265_parser_parse_sei_message()
2787 &sei->payload.pic_timing, nr); in gst_h265_parser_parse_sei_message()
2791 &sei->payload.registered_user_data, nr, payload_size >> 3); in gst_h265_parser_parse_sei_message()
2795 &sei->payload.recovery_point, nr); in gst_h265_parser_parse_sei_message()
2799 &sei->payload.time_code, nr); in gst_h265_parser_parse_sei_message()
2803 &sei->payload.mastering_display_colour_volume, nr); in gst_h265_parser_parse_sei_message()
2807 &sei->payload.content_light_level, nr); in gst_h265_parser_parse_sei_message()
2812 if (!nal_reader_skip_long (nr, payload_size)) in gst_h265_parser_parse_sei_message()
2822 if (!nal_reader_skip_long (nr, payload_size)) in gst_h265_parser_parse_sei_message()
2839 while (nal_reader_has_more_data_in_payload (nr, payload_start_pos_bit, in gst_h265_parser_parse_sei_message()
2842 if (!nal_reader_skip (nr, 1)) in gst_h265_parser_parse_sei_message()
2844 while (!nal_reader_is_byte_aligned (nr)) { in gst_h265_parser_parse_sei_message()
2845 if (!nal_reader_skip (nr, 1)) in gst_h265_parser_parse_sei_message()
2999 NalReader nr; in gst_h265_parser_parse_sei() local
3004 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h265_parser_parse_sei()
3010 res = gst_h265_parser_parse_sei_message (nalparser, nalu->type, &nr, &sei); in gst_h265_parser_parse_sei()
3015 } while (nal_reader_has_more_data (&nr)); in gst_h265_parser_parse_sei()