Lines Matching refs:rtp
147 rtp_ulpfec_buffer_get_fechdr (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_fechdr() argument
149 return (RtpUlpFecHeader *) gst_rtp_buffer_get_payload (rtp); in rtp_ulpfec_buffer_get_fechdr()
153 rtp_ulpfec_buffer_get_mask (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_mask() argument
155 return fec_hdr_get_mask (rtp_ulpfec_buffer_get_fechdr (rtp)); in rtp_ulpfec_buffer_get_mask()
159 rtp_ulpfec_buffer_get_seq_base (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_seq_base() argument
161 return g_ntohs (rtp_ulpfec_buffer_get_fechdr (rtp)->seq); in rtp_ulpfec_buffer_get_seq_base()
191 rtp_ulpfec_buffer_is_valid (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_is_valid() argument
193 guint payload_len = gst_rtp_buffer_get_payload_len (rtp); in rtp_ulpfec_buffer_is_valid()
201 fec_hdr = rtp_ulpfec_buffer_get_fechdr (rtp); in rtp_ulpfec_buffer_is_valid()
230 rtp_buffer_to_ulpfec_bitstring (GstRTPBuffer * rtp, GArray * dst_arr, in rtp_buffer_to_ulpfec_bitstring() argument
234 guint payload_len = gst_rtp_buffer_get_payload_len (rtp); in rtp_buffer_to_ulpfec_bitstring()
236 memcpy (dst_arr->data, gst_rtp_buffer_get_payload (rtp), payload_len); in rtp_buffer_to_ulpfec_bitstring()
238 const guint8 *src = rtp->data[0]; in rtp_buffer_to_ulpfec_bitstring()
239 guint len = gst_rtp_buffer_get_packet_len (rtp) - MIN_RTP_HEADER_LEN; in rtp_buffer_to_ulpfec_bitstring()
290 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in rtp_ulpfec_bitstring_to_fec_rtp_buffer() local
309 if (!gst_rtp_buffer_map (ret, GST_MAP_READWRITE, &rtp)) in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
312 gst_rtp_buffer_set_marker (&rtp, marker); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
313 gst_rtp_buffer_set_payload_type (&rtp, pt); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
314 gst_rtp_buffer_set_seq (&rtp, seq); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
315 gst_rtp_buffer_set_timestamp (&rtp, timestamp); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
316 gst_rtp_buffer_set_ssrc (&rtp, ssrc); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
318 memcpy (gst_rtp_buffer_get_payload (&rtp), arr->data, arr->len); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
320 gst_rtp_buffer_unmap (&rtp); in rtp_ulpfec_bitstring_to_fec_rtp_buffer()
352 GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &info->rtp)) { in rtp_ulpfec_map_info_map()
355 g_assert (NULL == info->rtp.buffer); in rtp_ulpfec_map_info_map()
373 GstBuffer *buffer = info->rtp.buffer; in rtp_ulpfec_map_info_unmap()
376 gst_rtp_buffer_unmap (&info->rtp); in rtp_ulpfec_map_info_unmap()
384 gpointer object, const gchar * name, GstRTPBuffer * rtp) in rtp_ulpfec_log_rtppacket() argument
394 seq = gst_rtp_buffer_get_seq (rtp); in rtp_ulpfec_log_rtppacket()
395 ssrc = gst_rtp_buffer_get_ssrc (rtp); in rtp_ulpfec_log_rtppacket()
396 timestamp = gst_rtp_buffer_get_timestamp (rtp); in rtp_ulpfec_log_rtppacket()
397 pt = gst_rtp_buffer_get_payload_type (rtp); in rtp_ulpfec_log_rtppacket()
402 gst_rtp_buffer_get_marker (rtp) ? 'M' : ' ', in rtp_ulpfec_log_rtppacket()
403 gst_rtp_buffer_get_extension (rtp) ? 'X' : ' ', in rtp_ulpfec_log_rtppacket()
404 gst_rtp_buffer_get_padding (rtp) ? 'P' : ' ', in rtp_ulpfec_log_rtppacket()
405 gst_rtp_buffer_get_csrc_count (rtp) > 0 ? 'C' : ' ', in rtp_ulpfec_log_rtppacket()
407 gst_rtp_buffer_get_packet_len (rtp), in rtp_ulpfec_log_rtppacket()
408 gst_rtp_buffer_get_packet_len (rtp) - MIN_RTP_HEADER_LEN, in rtp_ulpfec_log_rtppacket()
409 gst_rtp_buffer_get_payload_len (rtp)); in rtp_ulpfec_log_rtppacket()