Lines Matching refs:rtp
161 GST_LOG_RTP_PACKET (ctx->parent, "rtp header (incoming)", &info->rtp); in gst_rtp_ulpfec_enc_stream_ctx_start()
200 guint16 seq = gst_rtp_buffer_get_seq (&info->rtp); in gst_rtp_ulpfec_enc_stream_ctx_get_protection_parameters()
246 rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp), in gst_rtp_ulpfec_enc_stream_ctx_protect()
252 rtp_buffer_to_ulpfec_bitstring (&info->rtp, ctx->scratch_buf, FALSE, in gst_rtp_ulpfec_enc_stream_ctx_protect()
326 ctx, GstRTPBuffer * rtp, guint buf_max_size) in gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer() argument
335 gst_buffer_replace ((GstBuffer **) & new_head->data, rtp->buffer); in gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer()
374 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets() local
377 if (!gst_rtp_buffer_map (fec, GST_MAP_READWRITE, &rtp)) in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets()
381 gst_rtp_buffer_add_extension_onebyte_header (&rtp, twcc_ext_id, in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets()
384 gst_rtp_buffer_add_extension_twobytes_header (&rtp, twcc_appbits, in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets()
388 gst_rtp_buffer_unmap (&rtp); in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets()
416 GstRTPBuffer * rtp, gboolean * dst_empty_packet_buffer, in gst_rtp_ulpfec_enc_stream_ctx_cache_packet() argument
420 gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer (ctx, rtp, in gst_rtp_ulpfec_enc_stream_ctx_cache_packet()
422 gst_rtp_ulpfec_enc_stream_ctx_increment_budget (ctx, rtp->buffer); in gst_rtp_ulpfec_enc_stream_ctx_cache_packet()
424 *dst_empty_packet_buffer = gst_rtp_buffer_get_marker (rtp); in gst_rtp_ulpfec_enc_stream_ctx_cache_packet()
431 gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer (ctx, rtp, 1); in gst_rtp_ulpfec_enc_stream_ctx_cache_packet()
518 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rtp_ulpfec_enc_stream_ctx_process() local
530 GST_MAP_READWRITE | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp)) in gst_rtp_ulpfec_enc_stream_ctx_process()
532 gst_rtp_buffer_set_seq (&rtp, in gst_rtp_ulpfec_enc_stream_ctx_process()
533 gst_rtp_buffer_get_seq (&rtp) + ctx->seqnum_offset); in gst_rtp_ulpfec_enc_stream_ctx_process()
536 GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp)) in gst_rtp_ulpfec_enc_stream_ctx_process()
544 if (gst_rtp_buffer_get_extension_onebyte_header (&rtp, twcc_ext_id, 0, in gst_rtp_ulpfec_enc_stream_ctx_process()
547 } else if (gst_rtp_buffer_get_extension_twobytes_header (&rtp, in gst_rtp_ulpfec_enc_stream_ctx_process()
555 gst_rtp_ulpfec_enc_stream_ctx_cache_packet (ctx, &rtp, &empty_packet_buffer, in gst_rtp_ulpfec_enc_stream_ctx_process()
559 guint32 fec_timestamp = gst_rtp_buffer_get_timestamp (&rtp); in gst_rtp_ulpfec_enc_stream_ctx_process()
560 guint32 fec_ssrc = gst_rtp_buffer_get_ssrc (&rtp); in gst_rtp_ulpfec_enc_stream_ctx_process()
561 guint16 fec_seq = gst_rtp_buffer_get_seq (&rtp) + 1; in gst_rtp_ulpfec_enc_stream_ctx_process()
563 gst_rtp_buffer_unmap (&rtp); in gst_rtp_ulpfec_enc_stream_ctx_process()
571 gst_rtp_buffer_unmap (&rtp); in gst_rtp_ulpfec_enc_stream_ctx_process()
604 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rtp_ulpfec_enc_chain() local
615 GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp)) { in gst_rtp_ulpfec_enc_chain()
618 ssrc = gst_rtp_buffer_get_ssrc (&rtp); in gst_rtp_ulpfec_enc_chain()
619 gst_rtp_buffer_unmap (&rtp); in gst_rtp_ulpfec_enc_chain()