• Home
  • Raw
  • Download

Lines Matching refs:nr

391 gst_h264_parse_hrd_parameters (GstH264HRDParams * hrd, NalReader * nr)  in gst_h264_parse_hrd_parameters()  argument
397 READ_UE_MAX (nr, hrd->cpb_cnt_minus1, 31); in gst_h264_parse_hrd_parameters()
398 READ_UINT8 (nr, hrd->bit_rate_scale, 4); in gst_h264_parse_hrd_parameters()
399 READ_UINT8 (nr, hrd->cpb_size_scale, 4); in gst_h264_parse_hrd_parameters()
402 READ_UE (nr, hrd->bit_rate_value_minus1[sched_sel_idx]); in gst_h264_parse_hrd_parameters()
403 READ_UE (nr, hrd->cpb_size_value_minus1[sched_sel_idx]); in gst_h264_parse_hrd_parameters()
404 READ_UINT8 (nr, hrd->cbr_flag[sched_sel_idx], 1); in gst_h264_parse_hrd_parameters()
407 READ_UINT8 (nr, hrd->initial_cpb_removal_delay_length_minus1, 5); in gst_h264_parse_hrd_parameters()
408 READ_UINT8 (nr, hrd->cpb_removal_delay_length_minus1, 5); in gst_h264_parse_hrd_parameters()
409 READ_UINT8 (nr, hrd->dpb_output_delay_length_minus1, 5); in gst_h264_parse_hrd_parameters()
410 READ_UINT8 (nr, hrd->time_offset_length, 5); in gst_h264_parse_hrd_parameters()
420 gst_h264_parse_vui_parameters (GstH264SPS * sps, NalReader * nr) in gst_h264_parse_vui_parameters() argument
433 READ_UINT8 (nr, vui->aspect_ratio_info_present_flag, 1); in gst_h264_parse_vui_parameters()
435 READ_UINT8 (nr, vui->aspect_ratio_idc, 8); in gst_h264_parse_vui_parameters()
437 READ_UINT16 (nr, vui->sar_width, 16); in gst_h264_parse_vui_parameters()
438 READ_UINT16 (nr, vui->sar_height, 16); in gst_h264_parse_vui_parameters()
447 READ_UINT8 (nr, vui->overscan_info_present_flag, 1); in gst_h264_parse_vui_parameters()
449 READ_UINT8 (nr, vui->overscan_appropriate_flag, 1); in gst_h264_parse_vui_parameters()
451 READ_UINT8 (nr, vui->video_signal_type_present_flag, 1); in gst_h264_parse_vui_parameters()
454 READ_UINT8 (nr, vui->video_format, 3); in gst_h264_parse_vui_parameters()
455 READ_UINT8 (nr, vui->video_full_range_flag, 1); in gst_h264_parse_vui_parameters()
456 READ_UINT8 (nr, vui->colour_description_present_flag, 1); in gst_h264_parse_vui_parameters()
458 READ_UINT8 (nr, vui->colour_primaries, 8); in gst_h264_parse_vui_parameters()
459 READ_UINT8 (nr, vui->transfer_characteristics, 8); in gst_h264_parse_vui_parameters()
460 READ_UINT8 (nr, vui->matrix_coefficients, 8); in gst_h264_parse_vui_parameters()
464 READ_UINT8 (nr, vui->chroma_loc_info_present_flag, 1); in gst_h264_parse_vui_parameters()
466 READ_UE_MAX (nr, vui->chroma_sample_loc_type_top_field, 5); in gst_h264_parse_vui_parameters()
467 READ_UE_MAX (nr, vui->chroma_sample_loc_type_bottom_field, 5); in gst_h264_parse_vui_parameters()
470 READ_UINT8 (nr, vui->timing_info_present_flag, 1); in gst_h264_parse_vui_parameters()
472 READ_UINT32 (nr, vui->num_units_in_tick, 32); in gst_h264_parse_vui_parameters()
477 READ_UINT32 (nr, vui->time_scale, 32); in gst_h264_parse_vui_parameters()
482 READ_UINT8 (nr, vui->fixed_frame_rate_flag, 1); in gst_h264_parse_vui_parameters()
485 READ_UINT8 (nr, vui->nal_hrd_parameters_present_flag, 1); in gst_h264_parse_vui_parameters()
487 if (!gst_h264_parse_hrd_parameters (&vui->nal_hrd_parameters, nr)) in gst_h264_parse_vui_parameters()
491 READ_UINT8 (nr, vui->vcl_hrd_parameters_present_flag, 1); in gst_h264_parse_vui_parameters()
493 if (!gst_h264_parse_hrd_parameters (&vui->vcl_hrd_parameters, nr)) in gst_h264_parse_vui_parameters()
499 READ_UINT8 (nr, vui->low_delay_hrd_flag, 1); in gst_h264_parse_vui_parameters()
501 READ_UINT8 (nr, vui->pic_struct_present_flag, 1); in gst_h264_parse_vui_parameters()
502 READ_UINT8 (nr, vui->bitstream_restriction_flag, 1); in gst_h264_parse_vui_parameters()
504 READ_UINT8 (nr, vui->motion_vectors_over_pic_boundaries_flag, 1); in gst_h264_parse_vui_parameters()
505 READ_UE (nr, vui->max_bytes_per_pic_denom); in gst_h264_parse_vui_parameters()
506 READ_UE_MAX (nr, vui->max_bits_per_mb_denom, 16); in gst_h264_parse_vui_parameters()
507 READ_UE_MAX (nr, vui->log2_max_mv_length_horizontal, 16); in gst_h264_parse_vui_parameters()
508 READ_UE_MAX (nr, vui->log2_max_mv_length_vertical, 16); in gst_h264_parse_vui_parameters()
509 READ_UE (nr, vui->num_reorder_frames); in gst_h264_parse_vui_parameters()
510 READ_UE (nr, vui->max_dec_frame_buffering); in gst_h264_parse_vui_parameters()
521 gst_h264_parser_parse_scaling_list (NalReader * nr, in gst_h264_parser_parse_scaling_list() argument
545 READ_UINT8 (nr, scaling_list_present_flag, 1); in gst_h264_parser_parse_scaling_list()
566 READ_SE (nr, delta_scale); in gst_h264_parser_parse_scaling_list()
636 NalReader * nr, guint list, gboolean is_mvc) in slice_parse_ref_pic_list_modification_1() argument
656 READ_UINT8 (nr, *ref_pic_list_modification_flag, 1); in slice_parse_ref_pic_list_modification_1()
659 READ_UE (nr, modification_of_pic_nums_idc); in slice_parse_ref_pic_list_modification_1()
662 READ_UE_MAX (nr, entries[i].value.abs_diff_pic_num_minus1, in slice_parse_ref_pic_list_modification_1()
665 READ_UE (nr, entries[i].value.long_term_pic_num); in slice_parse_ref_pic_list_modification_1()
668 READ_UE (nr, entries[i].value.abs_diff_view_idx_minus1); in slice_parse_ref_pic_list_modification_1()
687 slice_parse_ref_pic_list_modification (GstH264SliceHdr * slice, NalReader * nr, in slice_parse_ref_pic_list_modification() argument
691 if (!slice_parse_ref_pic_list_modification_1 (slice, nr, 0, is_mvc)) in slice_parse_ref_pic_list_modification()
696 if (!slice_parse_ref_pic_list_modification_1 (slice, nr, 1, is_mvc)) in slice_parse_ref_pic_list_modification()
704 GstH264NalUnit * nalu, NalReader * nr) in gst_h264_slice_parse_dec_ref_pic_marking() argument
711 start_pos = nal_reader_get_pos (nr); in gst_h264_slice_parse_dec_ref_pic_marking()
712 start_epb = nal_reader_get_epb_count (nr); in gst_h264_slice_parse_dec_ref_pic_marking()
717 READ_UINT8 (nr, dec_ref_pic_m->no_output_of_prior_pics_flag, 1); in gst_h264_slice_parse_dec_ref_pic_marking()
718 READ_UINT8 (nr, dec_ref_pic_m->long_term_reference_flag, 1); in gst_h264_slice_parse_dec_ref_pic_marking()
720 READ_UINT8 (nr, dec_ref_pic_m->adaptive_ref_pic_marking_mode_flag, 1); in gst_h264_slice_parse_dec_ref_pic_marking()
727 READ_UE_MAX (nr, mem_mgmt_ctrl_op, 6); in gst_h264_slice_parse_dec_ref_pic_marking()
741 READ_UE (nr, refpicmarking->difference_of_pic_nums_minus1); in gst_h264_slice_parse_dec_ref_pic_marking()
744 READ_UE (nr, refpicmarking->long_term_pic_num); in gst_h264_slice_parse_dec_ref_pic_marking()
747 READ_UE (nr, refpicmarking->long_term_frame_idx); in gst_h264_slice_parse_dec_ref_pic_marking()
750 READ_UE (nr, refpicmarking->max_long_term_frame_idx_plus1); in gst_h264_slice_parse_dec_ref_pic_marking()
757 dec_ref_pic_m->bit_size = (nal_reader_get_pos (nr) - start_pos) - in gst_h264_slice_parse_dec_ref_pic_marking()
758 (8 * (nal_reader_get_epb_count (nr) - start_epb)); in gst_h264_slice_parse_dec_ref_pic_marking()
769 NalReader * nr, guint8 chroma_array_type) in gst_h264_slice_parse_pred_weight_table() argument
779 READ_UE_MAX (nr, p->luma_log2_weight_denom, 7); in gst_h264_slice_parse_pred_weight_table()
790 READ_UE_MAX (nr, p->chroma_log2_weight_denom, 7); in gst_h264_slice_parse_pred_weight_table()
808 READ_UINT8 (nr, luma_weight_l0_flag, 1); in gst_h264_slice_parse_pred_weight_table()
810 READ_SE_ALLOWED (nr, p->luma_weight_l0[i], -128, 127); in gst_h264_slice_parse_pred_weight_table()
811 READ_SE_ALLOWED (nr, p->luma_offset_l0[i], -128, 127); in gst_h264_slice_parse_pred_weight_table()
817 READ_UINT8 (nr, chroma_weight_l0_flag, 1); in gst_h264_slice_parse_pred_weight_table()
820 READ_SE_ALLOWED (nr, p->chroma_weight_l0[i][j], -128, 127); in gst_h264_slice_parse_pred_weight_table()
821 READ_SE_ALLOWED (nr, p->chroma_offset_l0[i][j], -128, 127); in gst_h264_slice_parse_pred_weight_table()
831 READ_UINT8 (nr, luma_weight_l1_flag, 1); in gst_h264_slice_parse_pred_weight_table()
833 READ_SE_ALLOWED (nr, p->luma_weight_l1[i], -128, 127); in gst_h264_slice_parse_pred_weight_table()
834 READ_SE_ALLOWED (nr, p->luma_offset_l1[i], -128, 127); in gst_h264_slice_parse_pred_weight_table()
840 READ_UINT8 (nr, chroma_weight_l1_flag, 1); in gst_h264_slice_parse_pred_weight_table()
843 READ_SE_ALLOWED (nr, p->chroma_weight_l1[i][j], -128, 127); in gst_h264_slice_parse_pred_weight_table()
844 READ_SE_ALLOWED (nr, p->chroma_offset_l1[i][j], -128, 127); in gst_h264_slice_parse_pred_weight_table()
860 GstH264BufferingPeriod * per, NalReader * nr) in gst_h264_parser_parse_buffering_period() argument
867 READ_UE_MAX (nr, sps_id, GST_H264_MAX_SPS_COUNT - 1); in gst_h264_parser_parse_buffering_period()
886 READ_UINT32 (nr, per->nal_initial_cpb_removal_delay[sched_sel_idx], in gst_h264_parser_parse_buffering_period()
888 READ_UINT32 (nr, in gst_h264_parser_parse_buffering_period()
900 READ_UINT32 (nr, per->vcl_initial_cpb_removal_delay[sched_sel_idx], in gst_h264_parser_parse_buffering_period()
902 READ_UINT32 (nr, in gst_h264_parser_parse_buffering_period()
917 guint8 time_offset_length, NalReader * nr) in gst_h264_parse_clock_timestamp() argument
924 READ_UINT8 (nr, tim->ct_type, 2); in gst_h264_parse_clock_timestamp()
925 READ_UINT8 (nr, tim->nuit_field_based_flag, 1); in gst_h264_parse_clock_timestamp()
926 READ_UINT8 (nr, tim->counting_type, 5); in gst_h264_parse_clock_timestamp()
927 READ_UINT8 (nr, tim->full_timestamp_flag, 1); in gst_h264_parse_clock_timestamp()
928 READ_UINT8 (nr, tim->discontinuity_flag, 1); in gst_h264_parse_clock_timestamp()
929 READ_UINT8 (nr, tim->cnt_dropped_flag, 1); in gst_h264_parse_clock_timestamp()
930 READ_UINT8 (nr, tim->n_frames, 8); in gst_h264_parse_clock_timestamp()
934 READ_UINT8 (nr, tim->seconds_value, 6); in gst_h264_parse_clock_timestamp()
937 READ_UINT8 (nr, tim->minutes_value, 6); in gst_h264_parse_clock_timestamp()
940 READ_UINT8 (nr, tim->hours_value, 5); in gst_h264_parse_clock_timestamp()
942 READ_UINT8 (nr, tim->seconds_flag, 1); in gst_h264_parse_clock_timestamp()
944 READ_UINT8 (nr, tim->seconds_value, 6); in gst_h264_parse_clock_timestamp()
945 READ_UINT8 (nr, tim->minutes_flag, 1); in gst_h264_parse_clock_timestamp()
947 READ_UINT8 (nr, tim->minutes_value, 6); in gst_h264_parse_clock_timestamp()
948 READ_UINT8 (nr, tim->hours_flag, 1); in gst_h264_parse_clock_timestamp()
950 READ_UINT8 (nr, tim->hours_value, 5); in gst_h264_parse_clock_timestamp()
956 READ_UINT32 (nr, tim->time_offset, time_offset_length); in gst_h264_parse_clock_timestamp()
967 GstH264PicTiming * tim, NalReader * nr) in gst_h264_parser_parse_pic_timing() argument
997 READ_UINT32 (nr, tim->cpb_removal_delay, in gst_h264_parser_parse_pic_timing()
999 READ_UINT32 (nr, tim->dpb_output_delay, in gst_h264_parser_parse_pic_timing()
1010 READ_UINT8 (nr, tim->pic_struct, 4); in gst_h264_parser_parse_pic_timing()
1019 READ_UINT8 (nr, tim->clock_timestamp_flag[i], 1); in gst_h264_parser_parse_pic_timing()
1022 tim->time_offset_length, nr)) in gst_h264_parser_parse_pic_timing()
1044 GstH264RegisteredUserData * rud, NalReader * nr, guint payload_size) in gst_h264_parser_parse_registered_user_data() argument
1057 READ_UINT8 (nr, rud->country_code, 8); in gst_h264_parser_parse_registered_user_data()
1061 READ_UINT8 (nr, rud->country_code_extension, 8); in gst_h264_parser_parse_registered_user_data()
1074 READ_UINT8 (nr, data[i], 8); in gst_h264_parser_parse_registered_user_data()
1093 GstH264RecoveryPoint * rp, NalReader * nr) in gst_h264_parser_parse_recovery_point() argument
1104 READ_UE_MAX (nr, rp->recovery_frame_cnt, sps->max_frame_num - 1); in gst_h264_parser_parse_recovery_point()
1105 READ_UINT8 (nr, rp->exact_match_flag, 1); in gst_h264_parser_parse_recovery_point()
1106 READ_UINT8 (nr, rp->broken_link_flag, 1); in gst_h264_parser_parse_recovery_point()
1107 READ_UINT8 (nr, rp->changing_slice_group_idc, 2); in gst_h264_parser_parse_recovery_point()
1119 GstH264StereoVideoInfo * info, NalReader * nr) in gst_h264_parser_parse_stereo_video_info() argument
1123 READ_UINT8 (nr, info->field_views_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1125 READ_UINT8 (nr, info->top_field_is_left_view_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1127 READ_UINT8 (nr, info->current_frame_is_left_view_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1128 READ_UINT8 (nr, info->next_frame_is_second_view_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1130 READ_UINT8 (nr, info->left_view_self_contained_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1131 READ_UINT8 (nr, info->right_view_self_contained_flag, 1); in gst_h264_parser_parse_stereo_video_info()
1143 GstH264FramePacking * frame_packing, NalReader * nr, guint payload_size) in gst_h264_parser_parse_frame_packing() argument
1150 start_pos = nal_reader_get_pos (nr); in gst_h264_parser_parse_frame_packing()
1151 READ_UE (nr, frame_packing->frame_packing_id); in gst_h264_parser_parse_frame_packing()
1152 READ_UINT8 (nr, frame_packing->frame_packing_cancel_flag, 1); in gst_h264_parser_parse_frame_packing()
1155 READ_UINT8 (nr, frame_packing->frame_packing_type, 7); in gst_h264_parser_parse_frame_packing()
1156 READ_UINT8 (nr, frame_packing->quincunx_sampling_flag, 1); in gst_h264_parser_parse_frame_packing()
1157 READ_UINT8 (nr, frame_packing->content_interpretation_type, 6); in gst_h264_parser_parse_frame_packing()
1158 READ_UINT8 (nr, frame_packing->spatial_flipping_flag, 1); in gst_h264_parser_parse_frame_packing()
1159 READ_UINT8 (nr, frame_packing->frame0_flipped_flag, 1); in gst_h264_parser_parse_frame_packing()
1160 READ_UINT8 (nr, frame_packing->field_views_flag, 1); in gst_h264_parser_parse_frame_packing()
1161 READ_UINT8 (nr, frame_packing->current_frame_is_frame0_flag, 1); in gst_h264_parser_parse_frame_packing()
1162 READ_UINT8 (nr, frame_packing->frame0_self_contained_flag, 1); in gst_h264_parser_parse_frame_packing()
1163 READ_UINT8 (nr, frame_packing->frame1_self_contained_flag, 1); in gst_h264_parser_parse_frame_packing()
1168 READ_UINT8 (nr, frame_packing->frame0_grid_position_x, 4); in gst_h264_parser_parse_frame_packing()
1169 READ_UINT8 (nr, frame_packing->frame0_grid_position_y, 4); in gst_h264_parser_parse_frame_packing()
1170 READ_UINT8 (nr, frame_packing->frame1_grid_position_x, 4); in gst_h264_parser_parse_frame_packing()
1171 READ_UINT8 (nr, frame_packing->frame1_grid_position_y, 4); in gst_h264_parser_parse_frame_packing()
1175 if (!nal_reader_skip (nr, 8)) in gst_h264_parser_parse_frame_packing()
1178 READ_UE_MAX (nr, frame_packing->frame_packing_repetition_period, 16384); in gst_h264_parser_parse_frame_packing()
1181 READ_UINT8 (nr, frame_packing_extension_flag, 1); in gst_h264_parser_parse_frame_packing()
1187 nal_reader_skip_long (nr, in gst_h264_parser_parse_frame_packing()
1188 payload_size - (nal_reader_get_pos (nr) - start_pos)); in gst_h264_parser_parse_frame_packing()
1200 parser, GstH264MasteringDisplayColourVolume * mdcv, NalReader * nr) in gst_h264_parser_parse_mastering_display_colour_volume() argument
1207 READ_UINT16 (nr, mdcv->display_primaries_x[i], 16); in gst_h264_parser_parse_mastering_display_colour_volume()
1208 READ_UINT16 (nr, mdcv->display_primaries_y[i], 16); in gst_h264_parser_parse_mastering_display_colour_volume()
1211 READ_UINT16 (nr, mdcv->white_point_x, 16); in gst_h264_parser_parse_mastering_display_colour_volume()
1212 READ_UINT16 (nr, mdcv->white_point_y, 16); in gst_h264_parser_parse_mastering_display_colour_volume()
1213 READ_UINT32 (nr, mdcv->max_display_mastering_luminance, 32); in gst_h264_parser_parse_mastering_display_colour_volume()
1214 READ_UINT32 (nr, mdcv->min_display_mastering_luminance, 32); in gst_h264_parser_parse_mastering_display_colour_volume()
1225 GstH264ContentLightLevel * cll, NalReader * nr) in gst_h264_parser_parse_content_light_level_info() argument
1229 READ_UINT16 (nr, cll->max_content_light_level, 16); in gst_h264_parser_parse_content_light_level_info()
1230 READ_UINT16 (nr, cll->max_pic_average_light_level, 16); in gst_h264_parser_parse_content_light_level_info()
1241 GstH264SEIUnhandledPayload * payload, NalReader * nr, guint payload_type, in gst_h264_parser_parse_sei_unhandled_payload() argument
1251 READ_UINT8 (nr, data[i], 8); in gst_h264_parser_parse_sei_unhandled_payload()
1268 NalReader * nr, GstH264SEIMessage * sei) in gst_h264_parser_parse_sei_message() argument
1280 READ_UINT8 (nr, payload_type_byte, 8); in gst_h264_parser_parse_sei_message()
1286 READ_UINT8 (nr, payload_size_byte, 8); in gst_h264_parser_parse_sei_message()
1291 remaining = nal_reader_get_remaining (nr); in gst_h264_parser_parse_sei_message()
1293 next = nal_reader_get_pos (nr) + payload_size; in gst_h264_parser_parse_sei_message()
1302 &sei->payload.buffering_period, nr); in gst_h264_parser_parse_sei_message()
1307 &sei->payload.pic_timing, nr); in gst_h264_parser_parse_sei_message()
1311 &sei->payload.registered_user_data, nr, payload_size >> 3); in gst_h264_parser_parse_sei_message()
1315 &sei->payload.recovery_point, nr); in gst_h264_parser_parse_sei_message()
1319 &sei->payload.stereo_video_info, nr); in gst_h264_parser_parse_sei_message()
1323 &sei->payload.frame_packing, nr, payload_size); in gst_h264_parser_parse_sei_message()
1327 &sei->payload.mastering_display_colour_volume, nr); in gst_h264_parser_parse_sei_message()
1331 &sei->payload.content_light_level, nr); in gst_h264_parser_parse_sei_message()
1335 &sei->payload.unhandled_payload, nr, sei->payloadType, in gst_h264_parser_parse_sei_message()
1344 if (!nal_reader_is_byte_aligned (nr)) { in gst_h264_parser_parse_sei_message()
1346 READ_UINT8 (nr, bit_equal_to_one, 1); in gst_h264_parser_parse_sei_message()
1350 while (!nal_reader_is_byte_aligned (nr)) { in gst_h264_parser_parse_sei_message()
1352 READ_UINT8 (nr, bit_equal_to_zero, 1); in gst_h264_parser_parse_sei_message()
1360 if (next > nal_reader_get_pos (nr)) { in gst_h264_parser_parse_sei_message()
1361 GST_LOG ("Skipping %u unused SEI bits", next - nal_reader_get_pos (nr)); in gst_h264_parser_parse_sei_message()
1363 if (!nal_reader_skip_long (nr, next - nal_reader_get_pos (nr))) in gst_h264_parser_parse_sei_message()
1664 gst_h264_parse_sps_data (NalReader * nr, GstH264SPS * sps) in gst_h264_parse_sps_data() argument
1679 READ_UINT8 (nr, sps->profile_idc, 8); in gst_h264_parse_sps_data()
1680 READ_UINT8 (nr, sps->constraint_set0_flag, 1); in gst_h264_parse_sps_data()
1681 READ_UINT8 (nr, sps->constraint_set1_flag, 1); in gst_h264_parse_sps_data()
1682 READ_UINT8 (nr, sps->constraint_set2_flag, 1); in gst_h264_parse_sps_data()
1683 READ_UINT8 (nr, sps->constraint_set3_flag, 1); in gst_h264_parse_sps_data()
1684 READ_UINT8 (nr, sps->constraint_set4_flag, 1); in gst_h264_parse_sps_data()
1685 READ_UINT8 (nr, sps->constraint_set5_flag, 1); in gst_h264_parse_sps_data()
1688 if (!nal_reader_skip (nr, 2)) in gst_h264_parse_sps_data()
1691 READ_UINT8 (nr, sps->level_idc, 8); in gst_h264_parse_sps_data()
1693 READ_UE_MAX (nr, sps->id, GST_H264_MAX_SPS_COUNT - 1); in gst_h264_parse_sps_data()
1702 READ_UE_MAX (nr, sps->chroma_format_idc, 3); in gst_h264_parse_sps_data()
1704 READ_UINT8 (nr, sps->separate_colour_plane_flag, 1); in gst_h264_parse_sps_data()
1706 READ_UE_MAX (nr, sps->bit_depth_luma_minus8, 6); in gst_h264_parse_sps_data()
1707 READ_UE_MAX (nr, sps->bit_depth_chroma_minus8, 6); in gst_h264_parse_sps_data()
1708 READ_UINT8 (nr, sps->qpprime_y_zero_transform_bypass_flag, 1); in gst_h264_parse_sps_data()
1710 READ_UINT8 (nr, sps->scaling_matrix_present_flag, 1); in gst_h264_parse_sps_data()
1715 if (!gst_h264_parser_parse_scaling_list (nr, in gst_h264_parse_sps_data()
1723 READ_UE_MAX (nr, sps->log2_max_frame_num_minus4, 12); in gst_h264_parse_sps_data()
1727 READ_UE_MAX (nr, sps->pic_order_cnt_type, 2); in gst_h264_parse_sps_data()
1729 READ_UE_MAX (nr, sps->log2_max_pic_order_cnt_lsb_minus4, 12); in gst_h264_parse_sps_data()
1733 READ_UINT8 (nr, sps->delta_pic_order_always_zero_flag, 1); in gst_h264_parse_sps_data()
1734 READ_SE (nr, sps->offset_for_non_ref_pic); in gst_h264_parse_sps_data()
1735 READ_SE (nr, sps->offset_for_top_to_bottom_field); in gst_h264_parse_sps_data()
1736 READ_UE_MAX (nr, sps->num_ref_frames_in_pic_order_cnt_cycle, 255); in gst_h264_parse_sps_data()
1739 READ_SE (nr, sps->offset_for_ref_frame[i]); in gst_h264_parse_sps_data()
1742 READ_UE (nr, sps->num_ref_frames); in gst_h264_parse_sps_data()
1743 READ_UINT8 (nr, sps->gaps_in_frame_num_value_allowed_flag, 1); in gst_h264_parse_sps_data()
1744 READ_UE (nr, sps->pic_width_in_mbs_minus1); in gst_h264_parse_sps_data()
1745 READ_UE (nr, sps->pic_height_in_map_units_minus1); in gst_h264_parse_sps_data()
1746 READ_UINT8 (nr, sps->frame_mbs_only_flag, 1); in gst_h264_parse_sps_data()
1749 READ_UINT8 (nr, sps->mb_adaptive_frame_field_flag, 1); in gst_h264_parse_sps_data()
1751 READ_UINT8 (nr, sps->direct_8x8_inference_flag, 1); in gst_h264_parse_sps_data()
1752 READ_UINT8 (nr, sps->frame_cropping_flag, 1); in gst_h264_parse_sps_data()
1754 READ_UE (nr, sps->frame_crop_left_offset); in gst_h264_parse_sps_data()
1755 READ_UE (nr, sps->frame_crop_right_offset); in gst_h264_parse_sps_data()
1756 READ_UE (nr, sps->frame_crop_top_offset); in gst_h264_parse_sps_data()
1757 READ_UE (nr, sps->frame_crop_bottom_offset); in gst_h264_parse_sps_data()
1760 READ_UINT8 (nr, sps->vui_parameters_present_flag, 1); in gst_h264_parse_sps_data()
1762 if (!gst_h264_parse_vui_parameters (sps, nr)) in gst_h264_parse_sps_data()
1813 gst_h264_parse_sps_mvc_data (NalReader * nr, GstH264SPS * sps) in gst_h264_parse_sps_mvc_data() argument
1819 READ_UINT8 (nr, bit_equal_to_one, 1); in gst_h264_parse_sps_mvc_data()
1825 READ_UE_MAX (nr, mvc->num_views_minus1, GST_H264_MAX_VIEW_COUNT - 1); in gst_h264_parse_sps_mvc_data()
1832 READ_UE_MAX (nr, mvc->view[i].view_id, GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1836 READ_UE_MAX (nr, mvc->view[i].num_anchor_refs_l0, 15); in gst_h264_parse_sps_mvc_data()
1838 READ_UE_MAX (nr, mvc->view[i].anchor_ref_l0[j], GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1842 READ_UE_MAX (nr, mvc->view[i].num_anchor_refs_l1, 15); in gst_h264_parse_sps_mvc_data()
1844 READ_UE_MAX (nr, mvc->view[i].anchor_ref_l1[j], GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1850 READ_UE_MAX (nr, mvc->view[i].num_non_anchor_refs_l0, 15); in gst_h264_parse_sps_mvc_data()
1852 READ_UE_MAX (nr, mvc->view[i].non_anchor_ref_l0[j], GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1856 READ_UE_MAX (nr, mvc->view[i].num_non_anchor_refs_l1, 15); in gst_h264_parse_sps_mvc_data()
1858 READ_UE_MAX (nr, mvc->view[i].non_anchor_ref_l1[j], GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1862 READ_UE_MAX (nr, mvc->num_level_values_signalled_minus1, 63); in gst_h264_parse_sps_mvc_data()
1873 READ_UINT8 (nr, level_value->level_idc, 8); in gst_h264_parse_sps_mvc_data()
1875 READ_UE_MAX (nr, level_value->num_applicable_ops_minus1, 1023); in gst_h264_parse_sps_mvc_data()
1885 READ_UINT8 (nr, op->temporal_id, 3); in gst_h264_parse_sps_mvc_data()
1887 READ_UE_MAX (nr, op->num_target_views_minus1, 1023); in gst_h264_parse_sps_mvc_data()
1893 READ_UE_MAX (nr, op->target_view_id[k], GST_H264_MAX_VIEW_ID); in gst_h264_parse_sps_mvc_data()
1894 READ_UE_MAX (nr, op->num_views_minus1, 1023); in gst_h264_parse_sps_mvc_data()
1921 NalReader nr; in gst_h264_parse_sps() local
1925 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h264_parse_sps()
1928 if (!gst_h264_parse_sps_data (&nr, sps)) in gst_h264_parse_sps()
2004 NalReader nr; in gst_h264_parse_subset_sps() local
2008 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h264_parse_subset_sps()
2011 if (!gst_h264_parse_sps_data (&nr, sps)) in gst_h264_parse_subset_sps()
2016 if (!gst_h264_parse_sps_mvc_data (&nr, sps)) in gst_h264_parse_subset_sps()
2048 NalReader nr; in gst_h264_parse_pps() local
2055 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h264_parse_pps()
2060 READ_UE_MAX (&nr, pps->id, GST_H264_MAX_PPS_COUNT - 1); in gst_h264_parse_pps()
2061 READ_UE_MAX (&nr, sps_id, GST_H264_MAX_SPS_COUNT - 1); in gst_h264_parse_pps()
2078 READ_UINT8 (&nr, pps->entropy_coding_mode_flag, 1); in gst_h264_parse_pps()
2079 READ_UINT8 (&nr, pps->pic_order_present_flag, 1); in gst_h264_parse_pps()
2080 READ_UE_MAX (&nr, pps->num_slice_groups_minus1, 7); in gst_h264_parse_pps()
2082 READ_UE_MAX (&nr, pps->slice_group_map_type, 6); in gst_h264_parse_pps()
2088 READ_UE (&nr, pps->run_length_minus1[i]); in gst_h264_parse_pps()
2093 READ_UE (&nr, pps->top_left[i]); in gst_h264_parse_pps()
2094 READ_UE (&nr, pps->bottom_right[i]); in gst_h264_parse_pps()
2097 READ_UINT8 (&nr, pps->slice_group_change_direction_flag, 1); in gst_h264_parse_pps()
2098 READ_UE (&nr, pps->slice_group_change_rate_minus1); in gst_h264_parse_pps()
2103 READ_UE (&nr, pps->pic_size_in_map_units_minus1); in gst_h264_parse_pps()
2109 READ_UINT8 (&nr, pps->slice_group_id[i], bits); in gst_h264_parse_pps()
2113 READ_UE_MAX (&nr, pps->num_ref_idx_l0_active_minus1, 31); in gst_h264_parse_pps()
2114 READ_UE_MAX (&nr, pps->num_ref_idx_l1_active_minus1, 31); in gst_h264_parse_pps()
2115 READ_UINT8 (&nr, pps->weighted_pred_flag, 1); in gst_h264_parse_pps()
2116 READ_UINT8 (&nr, pps->weighted_bipred_idc, 2); in gst_h264_parse_pps()
2117 READ_SE_ALLOWED (&nr, pps->pic_init_qp_minus26, -(26 + qp_bd_offset), 25); in gst_h264_parse_pps()
2118 READ_SE_ALLOWED (&nr, pps->pic_init_qs_minus26, -26, 25); in gst_h264_parse_pps()
2119 READ_SE_ALLOWED (&nr, pps->chroma_qp_index_offset, -12, 12); in gst_h264_parse_pps()
2121 READ_UINT8 (&nr, pps->deblocking_filter_control_present_flag, 1); in gst_h264_parse_pps()
2122 READ_UINT8 (&nr, pps->constrained_intra_pred_flag, 1); in gst_h264_parse_pps()
2123 READ_UINT8 (&nr, pps->redundant_pic_cnt_present_flag, 1); in gst_h264_parse_pps()
2125 if (!nal_reader_has_more_data (&nr)) in gst_h264_parse_pps()
2128 READ_UINT8 (&nr, pps->transform_8x8_mode_flag, 1); in gst_h264_parse_pps()
2130 READ_UINT8 (&nr, pps->pic_scaling_matrix_present_flag, 1); in gst_h264_parse_pps()
2138 if (!gst_h264_parser_parse_scaling_list (&nr, in gst_h264_parse_pps()
2144 if (!gst_h264_parser_parse_scaling_list (&nr, in gst_h264_parse_pps()
2152 READ_SE_ALLOWED (&nr, pps->second_chroma_qp_index_offset, -12, 12); in gst_h264_parse_pps()
2229 NalReader nr; in gst_h264_parser_parse_slice_hdr() local
2242 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h264_parser_parse_slice_hdr()
2245 READ_UE (&nr, slice->first_mb_in_slice); in gst_h264_parser_parse_slice_hdr()
2246 READ_UE (&nr, slice->type); in gst_h264_parser_parse_slice_hdr()
2250 READ_UE_MAX (&nr, pps_id, GST_H264_MAX_PPS_COUNT - 1); in gst_h264_parser_parse_slice_hdr()
2289 READ_UINT8 (&nr, slice->colour_plane_id, 2); in gst_h264_parser_parse_slice_hdr()
2291 READ_UINT16 (&nr, slice->frame_num, sps->log2_max_frame_num_minus4 + 4); in gst_h264_parser_parse_slice_hdr()
2294 READ_UINT8 (&nr, slice->field_pic_flag, 1); in gst_h264_parser_parse_slice_hdr()
2296 READ_UINT8 (&nr, slice->bottom_field_flag, 1); in gst_h264_parser_parse_slice_hdr()
2306 READ_UE_MAX (&nr, slice->idr_pic_id, G_MAXUINT16); in gst_h264_parser_parse_slice_hdr()
2308 start_pos = nal_reader_get_pos (&nr); in gst_h264_parser_parse_slice_hdr()
2309 start_epb = nal_reader_get_epb_count (&nr); in gst_h264_parser_parse_slice_hdr()
2312 READ_UINT16 (&nr, slice->pic_order_cnt_lsb, in gst_h264_parser_parse_slice_hdr()
2316 READ_SE (&nr, slice->delta_pic_order_cnt_bottom); in gst_h264_parser_parse_slice_hdr()
2320 READ_SE (&nr, slice->delta_pic_order_cnt[0]); in gst_h264_parser_parse_slice_hdr()
2322 READ_SE (&nr, slice->delta_pic_order_cnt[1]); in gst_h264_parser_parse_slice_hdr()
2325 slice->pic_order_cnt_bit_size = (nal_reader_get_pos (&nr) - start_pos) - in gst_h264_parser_parse_slice_hdr()
2326 (8 * (nal_reader_get_epb_count (&nr) - start_epb)); in gst_h264_parser_parse_slice_hdr()
2329 READ_UE_MAX (&nr, slice->redundant_pic_cnt, G_MAXINT8); in gst_h264_parser_parse_slice_hdr()
2332 READ_UINT8 (&nr, slice->direct_spatial_mv_pred_flag, 1); in gst_h264_parser_parse_slice_hdr()
2336 READ_UINT8 (&nr, slice->num_ref_idx_active_override_flag, 1); in gst_h264_parser_parse_slice_hdr()
2338 READ_UE_MAX (&nr, slice->num_ref_idx_l0_active_minus1, 31); in gst_h264_parser_parse_slice_hdr()
2341 READ_UE_MAX (&nr, slice->num_ref_idx_l1_active_minus1, 31); in gst_h264_parser_parse_slice_hdr()
2345 if (!slice_parse_ref_pic_list_modification (slice, &nr, in gst_h264_parser_parse_slice_hdr()
2352 if (!gst_h264_slice_parse_pred_weight_table (slice, &nr, in gst_h264_parser_parse_slice_hdr()
2358 if (!gst_h264_slice_parse_dec_ref_pic_marking (slice, nalu, &nr)) in gst_h264_parser_parse_slice_hdr()
2364 READ_UE_MAX (&nr, slice->cabac_init_idc, 2); in gst_h264_parser_parse_slice_hdr()
2366 READ_SE_ALLOWED (&nr, slice->slice_qp_delta, -87, 77); in gst_h264_parser_parse_slice_hdr()
2370 READ_UINT8 (&nr, slice->sp_for_switch_flag, 1); in gst_h264_parser_parse_slice_hdr()
2371 READ_SE_ALLOWED (&nr, slice->slice_qs_delta, -51, 51); in gst_h264_parser_parse_slice_hdr()
2375 READ_UE_MAX (&nr, slice->disable_deblocking_filter_idc, 2); in gst_h264_parser_parse_slice_hdr()
2377 READ_SE_ALLOWED (&nr, slice->slice_alpha_c0_offset_div2, -6, 6); in gst_h264_parser_parse_slice_hdr()
2378 READ_SE_ALLOWED (&nr, slice->slice_beta_offset_div2, -6, 6); in gst_h264_parser_parse_slice_hdr()
2390 READ_UINT16 (&nr, slice->slice_group_change_cycle, n); in gst_h264_parser_parse_slice_hdr()
2393 slice->header_size = nal_reader_get_pos (&nr); in gst_h264_parser_parse_slice_hdr()
2394 slice->n_emulation_prevention_bytes = nal_reader_get_epb_count (&nr); in gst_h264_parser_parse_slice_hdr()
2500 NalReader nr; in gst_h264_parser_parse_sei() local
2505 nal_reader_init (&nr, nalu->data + nalu->offset + nalu->header_bytes, in gst_h264_parser_parse_sei()
2511 res = gst_h264_parser_parse_sei_message (nalparser, &nr, &sei); in gst_h264_parser_parse_sei()
2516 } while (nal_reader_has_more_data (&nr)); in gst_h264_parser_parse_sei()