-
public
bool rtcp_buffer_add_packet (Buffer buffer, RTCPType type, ref RTCPPacket packet)
Add a new packet of type to buffer.
-
public void rtcp_buffer_end (
Buffer buffer)
Finish buffer after being constructured.
-
public
bool rtcp_buffer_get_first_packet (Buffer buffer, ref RTCPPacket packet)
Initialize a new RTCPPacket pointer that points to the
first packet in
-
public
uint rtcp_buffer_get_packet_count (Buffer buffer)
Get the number of RTCP packets in buffer.
-
public unowned
Buffer rtcp_buffer_new (uint mtu)
Create a new buffer for constructing RTCP packets.
-
public unowned
Buffer rtcp_buffer_new_copy_data (void* data, uint len)
Create a new buffer and set the data to a copy of len bytes of data and the size
to len.
-
public unowned
Buffer rtcp_buffer_new_take_data (void* data, uint len)
Create a new buffer and set the data and size of the buffer to data and len
respectively.
-
public
bool rtcp_buffer_validate (Buffer buffer)
-
public
bool rtcp_buffer_validate_data (uchar data, uint len)
Check if the data and size point to the data of a valid RTCP (compound) packet.
-
public
uint64 rtcp_ntp_to_unix (uint64 ntptime)
Converts an NTP time to UNIX nanoseconds.
-
public RTCPSDESType rtcp_sdes_name_to_type (
string name)
Convert name into a GstRTCPSDESType.
-
public unowned
string rtcp_sdes_type_to_name (RTCPSDESType type)
Converts type to the string equivalent.
-
public
uint64 rtcp_unix_to_ntp (uint64 unixtime)
Converts a UNIX timestamp in nanoseconds to an NTP time.
-
public void rtp_buffer_allocate_data (
Buffer buffer, uint payload_len, uchar pad_len, uchar csrc_count)
Allocate enough data in buffer to hold an RTP packet with csrc_count CSRCs, a
payload length of payload_len and padding of pad_len.
-
public
uint rtp_buffer_calc_header_len (uchar csrc_count)
Calculate the header length of an RTP packet with csrc_count CSRC entries.
-
public
uint rtp_buffer_calc_packet_len (uint payload_len, uchar pad_len, uchar csrc_count)
Calculate the total length of an RTP packet with a payload size of payload_len, a padding of
pad_len and a csrc_count CSRC entries.
-
public
uint rtp_buffer_calc_payload_len (uint packet_len, uchar pad_len, uchar csrc_count)
Calculate the length of the payload of an RTP packet with size packet_len, a padding of
pad_len and a csrc_count CSRC entries.
-
public
int rtp_buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2)
Compare two sequence numbers, taking care of wraparounds.
-
public
uint32 rtp_buffer_default_clock_rate (uchar payload_type)
Get the default clock-rate for the static payload type payload_type.
-
public
uint64 rtp_buffer_ext_timestamp (uint64 exttimestamp, uint32 timestamp)
Update the exttimestamp field with timestamp.
-
public
uint32 rtp_buffer_get_csrc (Buffer buffer, uchar idx)
Get the CSRC at index idx in buffer.
-
public
uchar rtp_buffer_get_csrc_count (Buffer buffer)
Get the CSRC count of the RTP packet in buffer.
-
public
bool rtp_buffer_get_extension (Buffer buffer)
Check if the extension bit is set on the RTP packet in buffer.
-
public
bool rtp_buffer_get_extension_data (Buffer buffer, out uint16 bits, out void* data, out uint wordlen)
Get the extension data.
-
public
uint rtp_buffer_get_header_len (Buffer buffer)
Return the total length of the header in buffer.
-
public
bool rtp_buffer_get_marker (Buffer buffer)
Check if the marker bit is set on the RTP packet in buffer.
-
public
uint rtp_buffer_get_packet_len (Buffer buffer)
Return the total length of the packet in buffer.
-
public
bool rtp_buffer_get_padding (Buffer buffer)
Check if the padding bit is set on the RTP packet in buffer.
-
public void* rtp_buffer_get_payload (
Buffer buffer)
Get a pointer to the payload data in buffer.
-
public unowned
Buffer rtp_buffer_get_payload_buffer (Buffer buffer)
Create a buffer of the payload of the RTP packet in buffer.
-
public
uint rtp_buffer_get_payload_len (Buffer buffer)
Get the length of the payload of the RTP packet in buffer.
-
public unowned
Buffer rtp_buffer_get_payload_subbuffer (Buffer buffer, uint offset, uint len)
Create a subbuffer of the payload of the RTP packet in buffer.
-
public
uchar rtp_buffer_get_payload_type (Buffer buffer)
Get the payload type of the RTP packet in buffer.
-
public
uint16 rtp_buffer_get_seq (Buffer buffer)
Get the sequence number of the RTP packet in buffer.
-
public
uint32 rtp_buffer_get_ssrc (Buffer buffer)
Get the SSRC of the RTP packet in buffer.
-
public
uint32 rtp_buffer_get_timestamp (Buffer buffer)
Get the timestamp of the RTP packet in buffer.
-
public
uchar rtp_buffer_get_version (Buffer buffer)
Get the version number of the RTP packet in buffer.
-
public
uint rtp_buffer_list_get_payload_len (BufferList list)
Get the length of the payload of the RTP packet in list.
-
public
uchar rtp_buffer_list_get_payload_type (BufferList list)
Get the payload type of the first RTP packet in list.
-
public
uint16 rtp_buffer_list_get_seq (BufferList list)
Get the sequence number of the first RTP packet in list.
-
public
uint32 rtp_buffer_list_get_ssrc (BufferList list)
Get the SSRC of the first RTP packet in list.
-
public
uint32 rtp_buffer_list_get_timestamp (BufferList list)
Get the timestamp of the first RTP packet in list.
-
public void rtp_buffer_list_set_payload_type (
BufferList list, uchar payload_type)
Set the payload type of each RTP packet in list to payload_type.
-
public
uint16 rtp_buffer_list_set_seq (BufferList list, uint16 seq)
Set the sequence number of each RTP packet in list to seq.
-
public void rtp_buffer_list_set_ssrc (
BufferList list, uint32 ssrc)
Set the SSRC on each RTP packet in list to ssrc.
-
public void rtp_buffer_list_set_timestamp (
BufferList list, uint32 timestamp)
Set the timestamp of each RTP packet in list to timestamp.
-
public
bool rtp_buffer_list_validate (BufferList list)
Check if all RTP packets in the list are valid using validate_data.
-
public unowned
Buffer rtp_buffer_new_allocate (uint payload_len, uchar pad_len, uchar csrc_count)
Allocate a new GstBuffer with enough data to hold an RTP packet with All other RTP header
fields will be set to 0/FALSE.
-
public unowned
Buffer rtp_buffer_new_allocate_len (uint packet_len, uchar pad_len, uchar csrc_count)
Create a new GstBuffer that can hold an RTP packet that is exactly All RTP header fields will
be set to 0/FALSE.
-
public unowned
Buffer rtp_buffer_new_copy_data (void* data, uint len)
Create a new buffer and set the data to a copy of len bytes of data and the size
to len.
-
public unowned
Buffer rtp_buffer_new_take_data (void* data, uint len)
Create a new buffer and set the data and size of the buffer to data and len
respectively.
-
public void rtp_buffer_pad_to (
Buffer buffer, uint len)
Set the amount of padding in the RTP packet in buffer to
-
public void rtp_buffer_set_csrc (
Buffer buffer, uchar idx, uint32 csrc)
Modify the CSRC at index idx in buffer to csrc.
-
public void rtp_buffer_set_extension (
Buffer buffer, bool extension)
Set the extension bit on the RTP packet in buffer to extension.
-
public
bool rtp_buffer_set_extension_data (Buffer buffer, uint16 bits, uint16 length)
Set the extension bit of the rtp buffer and fill in the bits and length of the
extension header.
-
public void rtp_buffer_set_marker (
Buffer buffer, bool marker)
Set the marker bit on the RTP packet in buffer to marker.
-
public void rtp_buffer_set_packet_len (
Buffer buffer, uint len)
Set the total buffer size to len.
-
public void rtp_buffer_set_padding (
Buffer buffer, bool padding)
Set the padding bit on the RTP packet in buffer to padding.
-
public void rtp_buffer_set_payload_type (
Buffer buffer, uchar payload_type)
Set the payload type of the RTP packet in buffer to payload_type.
-
public void rtp_buffer_set_seq (
Buffer buffer, uint16 seq)
Set the sequence number of the RTP packet in buffer to seq.
-
public void rtp_buffer_set_ssrc (
Buffer buffer, uint32 ssrc)
Set the SSRC on the RTP packet in buffer to ssrc.
-
public void rtp_buffer_set_timestamp (
Buffer buffer, uint32 timestamp)
Set the timestamp of the RTP packet in buffer to timestamp.
-
public void rtp_buffer_set_version (
Buffer buffer, uchar version)
Set the version of the RTP packet in buffer to version.
-
public
bool rtp_buffer_validate (Buffer buffer)
Check if the data pointed to by buffer is a valid RTP packet using validate_data.
-
public
bool rtp_buffer_validate_data (uchar data, uint len)
Check if the data and size point to the data of a valid RTP packet.