• Home
  • Raw
  • Download

Lines Matching refs:br

246   GstByteReader br;  in gst_mpeg_video_parse()  local
254 gst_byte_reader_init (&br, &data[offset], size); in gst_mpeg_video_parse()
256 off = scan_for_start_codes (&br, 0, size); in gst_mpeg_video_parse()
263 if (gst_byte_reader_skip (&br, off + 3) == FALSE) in gst_mpeg_video_parse()
266 if (gst_byte_reader_get_uint8 (&br, &packet->type) == FALSE) in gst_mpeg_video_parse()
275 off = scan_for_start_codes (&br, 0, size); in gst_mpeg_video_parse()
305 GstBitReader br; in gst_mpeg_video_packet_parse_sequence_header() local
313 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_sequence_header()
316 READ_UINT16 (&br, seqhdr->width, 12); in gst_mpeg_video_packet_parse_sequence_header()
317 READ_UINT16 (&br, seqhdr->height, 12); in gst_mpeg_video_packet_parse_sequence_header()
319 READ_UINT8 (&br, seqhdr->aspect_ratio_info, 4); in gst_mpeg_video_packet_parse_sequence_header()
324 READ_UINT8 (&br, seqhdr->frame_rate_code, 4); in gst_mpeg_video_packet_parse_sequence_header()
327 READ_UINT32 (&br, seqhdr->bitrate_value, 18); in gst_mpeg_video_packet_parse_sequence_header()
336 READ_UINT8 (&br, bits, 1); in gst_mpeg_video_packet_parse_sequence_header()
341 READ_UINT16 (&br, seqhdr->vbv_buffer_size_value, 10); in gst_mpeg_video_packet_parse_sequence_header()
344 READ_UINT8 (&br, seqhdr->constrained_parameters_flag, 1); in gst_mpeg_video_packet_parse_sequence_header()
347 READ_UINT8 (&br, seqhdr->load_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_sequence_header()
351 READ_UINT8 (&br, seqhdr->intra_quantizer_matrix[i], 8); in gst_mpeg_video_packet_parse_sequence_header()
356 READ_UINT8 (&br, seqhdr->load_non_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_sequence_header()
360 READ_UINT8 (&br, seqhdr->non_intra_quantizer_matrix[i], 8); in gst_mpeg_video_packet_parse_sequence_header()
398 GstBitReader br; in gst_mpeg_video_packet_parse_sequence_extension() local
407 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_sequence_extension()
409 if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) != in gst_mpeg_video_packet_parse_sequence_extension()
417 gst_bit_reader_get_bits_uint8_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_extension()
419 seqext->profile = gst_bit_reader_get_bits_uint8_unchecked (&br, 3); in gst_mpeg_video_packet_parse_sequence_extension()
420 seqext->level = gst_bit_reader_get_bits_uint8_unchecked (&br, 4); in gst_mpeg_video_packet_parse_sequence_extension()
423 seqext->progressive = gst_bit_reader_get_bits_uint8_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_extension()
426 seqext->chroma_format = gst_bit_reader_get_bits_uint8_unchecked (&br, 2); in gst_mpeg_video_packet_parse_sequence_extension()
429 seqext->horiz_size_ext = gst_bit_reader_get_bits_uint8_unchecked (&br, 2); in gst_mpeg_video_packet_parse_sequence_extension()
430 seqext->vert_size_ext = gst_bit_reader_get_bits_uint8_unchecked (&br, 2); in gst_mpeg_video_packet_parse_sequence_extension()
432 seqext->bitrate_ext = gst_bit_reader_get_bits_uint16_unchecked (&br, 12); in gst_mpeg_video_packet_parse_sequence_extension()
435 gst_bit_reader_skip_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_extension()
438 gst_bit_reader_get_bits_uint8_unchecked (&br, 8); in gst_mpeg_video_packet_parse_sequence_extension()
439 seqext->low_delay = gst_bit_reader_get_bits_uint8_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_extension()
442 seqext->fps_n_ext = gst_bit_reader_get_bits_uint8_unchecked (&br, 2); in gst_mpeg_video_packet_parse_sequence_extension()
443 seqext->fps_d_ext = gst_bit_reader_get_bits_uint8_unchecked (&br, 2); in gst_mpeg_video_packet_parse_sequence_extension()
465 GstBitReader br; in gst_mpeg_video_packet_parse_sequence_display_extension() local
474 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_sequence_display_extension()
476 if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) != in gst_mpeg_video_packet_parse_sequence_display_extension()
483 gst_bit_reader_get_bits_uint8_unchecked (&br, 3); in gst_mpeg_video_packet_parse_sequence_display_extension()
485 gst_bit_reader_get_bits_uint8_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_display_extension()
489 gst_bit_reader_get_bits_uint8_unchecked (&br, 8); in gst_mpeg_video_packet_parse_sequence_display_extension()
491 gst_bit_reader_get_bits_uint8_unchecked (&br, 8); in gst_mpeg_video_packet_parse_sequence_display_extension()
493 gst_bit_reader_get_bits_uint8_unchecked (&br, 8); in gst_mpeg_video_packet_parse_sequence_display_extension()
496 if (gst_bit_reader_get_remaining (&br) < 29) { in gst_mpeg_video_packet_parse_sequence_display_extension()
502 gst_bit_reader_get_bits_uint16_unchecked (&br, 14); in gst_mpeg_video_packet_parse_sequence_display_extension()
504 gst_bit_reader_skip_unchecked (&br, 1); in gst_mpeg_video_packet_parse_sequence_display_extension()
506 gst_bit_reader_get_bits_uint16_unchecked (&br, 14); in gst_mpeg_video_packet_parse_sequence_display_extension()
527 GstBitReader br; in gst_mpeg_video_packet_parse_sequence_scalable_extension() local
536 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
538 if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) != in gst_mpeg_video_packet_parse_sequence_scalable_extension()
544 READ_UINT8 (&br, seqscaleext->scalable_mode, 2); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
545 READ_UINT8 (&br, seqscaleext->layer_id, 4); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
548 READ_UINT16 (&br, seqscaleext->lower_layer_prediction_horizontal_size, 14); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
550 SKIP (&br, 1); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
552 READ_UINT16 (&br, seqscaleext->lower_layer_prediction_vertical_size, 14); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
554 READ_UINT8 (&br, seqscaleext->horizontal_subsampling_factor_m, 5); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
555 READ_UINT8 (&br, seqscaleext->horizontal_subsampling_factor_n, 5); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
556 READ_UINT8 (&br, seqscaleext->vertical_subsampling_factor_m, 5); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
557 READ_UINT8 (&br, seqscaleext->vertical_subsampling_factor_n, 5); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
561 READ_UINT8 (&br, seqscaleext->picture_mux_enable, 1); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
563 READ_UINT8 (&br, seqscaleext->mux_to_progressive_sequence, 1); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
564 READ_UINT8 (&br, seqscaleext->picture_mux_order, 3); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
565 READ_UINT8 (&br, seqscaleext->picture_mux_factor, 3); in gst_mpeg_video_packet_parse_sequence_scalable_extension()
650 GstBitReader br; in gst_mpeg_video_packet_parse_quant_matrix_extension() local
659 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_quant_matrix_extension()
661 if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) != in gst_mpeg_video_packet_parse_quant_matrix_extension()
667 READ_UINT8 (&br, quant->load_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_quant_matrix_extension()
670 READ_UINT8 (&br, quant->intra_quantiser_matrix[i], 8); in gst_mpeg_video_packet_parse_quant_matrix_extension()
674 READ_UINT8 (&br, quant->load_non_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_quant_matrix_extension()
677 READ_UINT8 (&br, quant->non_intra_quantiser_matrix[i], 8); in gst_mpeg_video_packet_parse_quant_matrix_extension()
681 READ_UINT8 (&br, quant->load_chroma_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_quant_matrix_extension()
684 READ_UINT8 (&br, quant->chroma_intra_quantiser_matrix[i], 8); in gst_mpeg_video_packet_parse_quant_matrix_extension()
688 READ_UINT8 (&br, quant->load_chroma_non_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_quant_matrix_extension()
691 READ_UINT8 (&br, quant->chroma_non_intra_quantiser_matrix[i], 8); in gst_mpeg_video_packet_parse_quant_matrix_extension()
719 GstBitReader br; in gst_mpeg_video_packet_parse_picture_extension() local
726 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_picture_extension()
728 if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) != in gst_mpeg_video_packet_parse_picture_extension()
735 READ_UINT8 (&br, ext->f_code[0][0], 4); in gst_mpeg_video_packet_parse_picture_extension()
736 READ_UINT8 (&br, ext->f_code[0][1], 4); in gst_mpeg_video_packet_parse_picture_extension()
737 READ_UINT8 (&br, ext->f_code[1][0], 4); in gst_mpeg_video_packet_parse_picture_extension()
738 READ_UINT8 (&br, ext->f_code[1][1], 4); in gst_mpeg_video_packet_parse_picture_extension()
741 READ_UINT8 (&br, ext->intra_dc_precision, 2); in gst_mpeg_video_packet_parse_picture_extension()
744 READ_UINT8 (&br, ext->picture_structure, 2); in gst_mpeg_video_packet_parse_picture_extension()
747 READ_UINT8 (&br, ext->top_field_first, 1); in gst_mpeg_video_packet_parse_picture_extension()
750 READ_UINT8 (&br, ext->frame_pred_frame_dct, 1); in gst_mpeg_video_packet_parse_picture_extension()
753 READ_UINT8 (&br, ext->concealment_motion_vectors, 1); in gst_mpeg_video_packet_parse_picture_extension()
756 READ_UINT8 (&br, ext->q_scale_type, 1); in gst_mpeg_video_packet_parse_picture_extension()
759 READ_UINT8 (&br, ext->intra_vlc_format, 1); in gst_mpeg_video_packet_parse_picture_extension()
762 READ_UINT8 (&br, ext->alternate_scan, 1); in gst_mpeg_video_packet_parse_picture_extension()
765 READ_UINT8 (&br, ext->repeat_first_field, 1); in gst_mpeg_video_packet_parse_picture_extension()
768 READ_UINT8 (&br, ext->chroma_420_type, 1); in gst_mpeg_video_packet_parse_picture_extension()
771 READ_UINT8 (&br, ext->progressive_frame, 1); in gst_mpeg_video_packet_parse_picture_extension()
774 READ_UINT8 (&br, ext->composite_display, 1); in gst_mpeg_video_packet_parse_picture_extension()
779 READ_UINT8 (&br, ext->v_axis, 1); in gst_mpeg_video_packet_parse_picture_extension()
782 READ_UINT8 (&br, ext->field_sequence, 3); in gst_mpeg_video_packet_parse_picture_extension()
785 READ_UINT8 (&br, ext->sub_carrier, 1); in gst_mpeg_video_packet_parse_picture_extension()
788 READ_UINT8 (&br, ext->burst_amplitude, 7); in gst_mpeg_video_packet_parse_picture_extension()
791 READ_UINT8 (&br, ext->sub_carrier_phase, 8); in gst_mpeg_video_packet_parse_picture_extension()
819 GstBitReader br; in gst_mpeg_video_packet_parse_picture_header() local
824 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_picture_header()
827 if (!gst_bit_reader_get_bits_uint16 (&br, &hdr->tsn, 10)) in gst_mpeg_video_packet_parse_picture_header()
832 if (!gst_bit_reader_get_bits_uint8 (&br, (guint8 *) & hdr->pic_type, 3)) in gst_mpeg_video_packet_parse_picture_header()
840 if (!gst_bit_reader_get_bits_uint16 (&br, &hdr->vbv_delay, 16)) in gst_mpeg_video_packet_parse_picture_header()
846 READ_UINT8 (&br, hdr->full_pel_forward_vector, 1); in gst_mpeg_video_packet_parse_picture_header()
848 READ_UINT8 (&br, hdr->f_code[0][0], 3); in gst_mpeg_video_packet_parse_picture_header()
856 READ_UINT8 (&br, hdr->full_pel_backward_vector, 1); in gst_mpeg_video_packet_parse_picture_header()
858 READ_UINT8 (&br, hdr->f_code[1][0], 3); in gst_mpeg_video_packet_parse_picture_header()
896 GstBitReader br; in gst_mpeg_video_packet_parse_gop() local
903 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_gop()
905 READ_UINT8 (&br, gop->drop_frame_flag, 1); in gst_mpeg_video_packet_parse_gop()
907 READ_UINT8 (&br, gop->hour, 5); in gst_mpeg_video_packet_parse_gop()
909 READ_UINT8 (&br, gop->minute, 6); in gst_mpeg_video_packet_parse_gop()
912 if (!gst_bit_reader_skip (&br, 1)) in gst_mpeg_video_packet_parse_gop()
915 READ_UINT8 (&br, gop->second, 6); in gst_mpeg_video_packet_parse_gop()
917 READ_UINT8 (&br, gop->frame, 6); in gst_mpeg_video_packet_parse_gop()
919 READ_UINT8 (&br, gop->closed_gop, 1); in gst_mpeg_video_packet_parse_gop()
921 READ_UINT8 (&br, gop->broken_link, 1); in gst_mpeg_video_packet_parse_gop()
948 GstBitReader br; in gst_mpeg_video_packet_parse_slice_header() local
959 gst_bit_reader_init (&br, &packet->data[packet->offset], packet->size); in gst_mpeg_video_packet_parse_slice_header()
970 READ_UINT8 (&br, vertical_position_extension, 3); in gst_mpeg_video_packet_parse_slice_header()
978 READ_UINT8 (&br, slice_hdr->priority_breakpoint, 7); in gst_mpeg_video_packet_parse_slice_header()
980 READ_UINT8 (&br, slice_hdr->quantiser_scale_code, 5); in gst_mpeg_video_packet_parse_slice_header()
982 READ_UINT8 (&br, slice_hdr->slice_ext_flag, 1); in gst_mpeg_video_packet_parse_slice_header()
986 READ_UINT8 (&br, slice_hdr->intra_slice, 1); in gst_mpeg_video_packet_parse_slice_header()
987 READ_UINT8 (&br, slice_hdr->slice_picture_id_enable, 1); in gst_mpeg_video_packet_parse_slice_header()
988 READ_UINT8 (&br, slice_hdr->slice_picture_id, 6); in gst_mpeg_video_packet_parse_slice_header()
990 READ_UINT8 (&br, bits, 1); in gst_mpeg_video_packet_parse_slice_header()
992 READ_UINT8 (&br, extra_bits, 8); in gst_mpeg_video_packet_parse_slice_header()
993 READ_UINT8 (&br, bits, 1); in gst_mpeg_video_packet_parse_slice_header()
997 slice_hdr->header_size = gst_bit_reader_get_pos (&br); in gst_mpeg_video_packet_parse_slice_header()
1006 if (!decode_vlc (&br, &mb_inc, mpeg2_mbaddr_vlc_table, in gst_mpeg_video_packet_parse_slice_header()