Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pion/rtp
/ functions
Functions
125 in github.com/pion/rtp
⨍
Functions
125
◇
Types & classes
27
↓ 19 callers
Method
GetExtension
GetExtension returns an RTP header extension
packet.go:424
↓ 15 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the Packet.
packet.go:208
↓ 12 callers
Method
SetExtension
SetExtension sets an RTP header extension
packet.go:356
↓ 12 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the VP8Packet this method is called upon
codecs/vp8_packet.go:127
↓ 10 callers
Method
Marshal
Marshal serializes the packet into bytes.
packet.go:451
↓ 10 callers
Method
Payload
Payload fragments a H264 packet across one or more byte arrays
codecs/h264_packet.go:64
↓ 10 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the H264Packet this method is called upon
codecs/h264_packet.go:175
↓ 9 callers
Function
min
(a, b int)
codecs/common.go:3
↓ 8 callers
Method
IsPartitionHead
IsPartitionHead checks if this is the head of a packetized nalu stream.
codecs/h264_packet.go:236
↓ 7 callers
Method
Payload
Payload fragments an G722 packet across one or more byte arrays
codecs/g722_packet.go:7
↓ 7 callers
Method
Payload
Payload fragments an G711 packet across one or more byte arrays
codecs/g711_packet.go:7
↓ 5 callers
Function
toTime
(t uint64)
abssendtimeextension.go:69
↓ 4 callers
Method
MarshalSize
MarshalSize returns the size of the header once marshaled.
packet.go:326
↓ 4 callers
Method
Payload
Payload fragments a VP8 packet across one or more byte arrays
codecs/vp8_packet.go:14
↓ 4 callers
Method
Payload
Payload fragments an Opus packet across one or more byte arrays
codecs/opus_packet.go:7
↓ 4 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the OpusPacket this method is called upon
codecs/opus_packet.go:29
↓ 3 callers
Method
DelExtension
DelExtension Removes an RTP Header extension
packet.go:437
↓ 3 callers
Method
IsPartitionHead
IsPartitionHead checks whether if this is a head of the VP8 partition
codecs/vp8_packet.go:200
↓ 3 callers
Method
IsPartitionHead
IsPartitionHead checks whether if this is a head of the VP9 partition
codecs/vp9_packet.go:385
↓ 3 callers
Method
Marshal
Marshal serializes the members to buffer
audiolevelextension.go:39
↓ 3 callers
Method
MarshalTo
MarshalTo serializes the packet and writes to the buffer.
packet.go:463
↓ 3 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the members
transportccextension.go:33
↓ 3 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the members
audiolevelextension.go:53
↓ 3 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the VP9Packet this method is called upon
codecs/vp9_packet.go:159
↓ 3 callers
Method
doPackaging
(nalu []byte)
codecs/h264_packet.go:158
↓ 3 callers
Function
toNtpTime
(t time.Time)
abssendtimeextension.go:55
↓ 2 callers
Method
GetExtensionIDs
GetExtensionIDs returns an extension id array
packet.go:407
↓ 2 callers
Method
IsPartitionHead
IsPartitionHead checks whether if this is a head of the Opus partition
codecs/opus_packet.go:44
↓ 2 callers
Method
Marshal
Marshal serializes the members to buffer.
abssendtimeextension.go:18
↓ 2 callers
Method
MarshalSize
MarshalSize returns the size of the packet once marshaled.
packet.go:480
↓ 2 callers
Method
MarshalTo
MarshalTo serializes the header and writes to the buffer.
packet.go:229
↓ 2 callers
Function
NewPacketizer
NewPacketizer returns a new instance of a Packetizer for a specific payloader
packetizer.go:34
↓ 2 callers
Method
Packetize
(payload []byte, samples uint32)
packetizer.go:14
↓ 2 callers
Method
Payload
Payload fragments an VP9 packet across one or more byte arrays
codecs/vp9_packet.go:26
↓ 2 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the members.
abssendtimeextension.go:27
↓ 1 callers
Method
EnableAbsSendTime
(value int)
packetizer.go:15
↓ 1 callers
Method
Estimate
Estimate absolute send time according to the receive time. Note that if the transmission delay is larger than 64 seconds, estimated time will be wrong
abssendtimeextension.go:37
↓ 1 callers
Method
Marshal
Marshal serializes the header into bytes.
packet.go:218
↓ 1 callers
Method
Marshal
Marshal serializes the members to buffer
transportccextension.go:26
↓ 1 callers
Function
NewAbsSendTimeExtension
NewAbsSendTimeExtension makes new AbsSendTimeExtension from time.Time.
abssendtimeextension.go:49
↓ 1 callers
Function
NewFixedSequencer
NewFixedSequencer returns a new sequencer starting from a specific sequence number
sequencer.go:24
↓ 1 callers
Function
NewRandomSequencer
NewRandomSequencer returns a new sequencer starting from a random sequence number
sequencer.go:16
↓ 1 callers
Method
NextSequenceNumber
()
sequencer.go:10
↓ 1 callers
Method
Payload
(mtu int, payload []byte)
packetizer.go:9
↓ 1 callers
Method
Unmarshal
(packet []byte)
depacketizer.go:6
↓ 1 callers
Method
Unmarshal
Unmarshal parses the passed byte slice and stores the result in the Header. It returns the number of bytes read n and any error.
packet.go:78
↓ 1 callers
Function
annexbNALUStartCode
()
codecs/h264_packet.go:26
↓ 1 callers
Function
emitNalus
(nals []byte, emit func([]byte))
codecs/h264_packet.go:28
↓ 1 callers
Method
parseLayerInfo
(packet []byte, pos int)
codecs/vp9_packet.go:235
↓ 1 callers
Method
parseLayerInfoCommon
Layer indices (flexible mode): +-+-+-+-+-+-+-+-+ L: | T |U| S |D| +-+-+-+-+-+-+-+-+
codecs/vp9_packet.go:254
↓ 1 callers
Method
parseLayerInfoNonFlexibleMode
Layer indices (non-flexible mode): +-+-+-+-+-+-+-+-+ L: | T |U| S |D| +-+-+-+-+-+-+-+-+ | TL0PICIDX | +-+-+-+-+-+-+-+-+
codecs/vp9_packet.go:280
↓ 1 callers
Method
parsePictureID
Picture ID: +-+-+-+-+-+-+-+-+ I: |M| PICTURE ID | M:0 => picture id is 7 bits. +-+-+-+-+-+-+-+-+ M:1 => picture id is 15 bits. M: | EXTENDED
codecs/vp9_packet.go:218
↓ 1 callers
Method
parseRefIndices
Reference indices: +-+-+-+-+-+-+-+-+ P=1,F=1: At least one reference index P,F: | P_DIFF |N| up to 3 times has to be sp
codecs/vp9_packet.go:297
↓ 1 callers
Method
parseSSData
Scalability structure (SS): +-+-+-+-+-+-+-+-+ V: | N_S |Y|G|-|-|-| +-+-+-+-+-+-+-+-+ -| Y: | WIDTH | (OPTIONAL) . +
codecs/vp9_packet.go:336
Function
BenchmarkMarshal
(b *testing.B)
packet_test.go:1141
Function
BenchmarkMarshalTo
(b *testing.B)
packet_test.go:1163
Function
BenchmarkUnmarshal
(b *testing.B)
packet_test.go:1188
Method
EnableAbsSendTime
(value int)
packetizer.go:47
Method
IsDetectedFinalPacketInSequence
(rtpPacketMarketBit bool)
depacketizer.go:5
Method
IsDetectedFinalPacketInSequence
IsDetectedFinalPacketInSequence returns true of the packet passed in has the marker bit set indicated the end of a packet sequence
codecs/h264_packet.go:170
Method
IsDetectedFinalPacketInSequence
IsDetectedFinalPacketInSequence returns true of the packet passed in has the marker bit set indicated the end of a packet sequence
codecs/vp8_packet.go:122
Method
IsDetectedFinalPacketInSequence
IsDetectedFinalPacketInSequence returns true of the packet passed in has the marker bit set indicated the end of a packet sequence
codecs/vp9_packet.go:154
Method
IsDetectedFinalPacketInSequence
IsDetectedFinalPacketInSequence returns true as all opus packets are always final in a sequence
codecs/opus_packet.go:24
Method
IsPartitionHead
([]byte)
partitionheadchecker.go:5
Method
NextSequenceNumber
NextSequenceNumber increment and returns a new sequence number for building RTP packets
sequencer.go:38
Method
Packetize
Packetize packetizes the payload of an RTP packet and returns one or more RTP packets
packetizer.go:52
Method
RollOverCount
()
sequencer.go:11
Method
RollOverCount
RollOverCount returns the amount of times the 16bit sequence number has wrapped
sequencer.go:52
Method
SkipSamples
(skippedSamples uint32)
packetizer.go:16
Method
SkipSamples
SkipSamples causes a gap in sample count between Packetize requests so the RTP payloads produced have a gap in timestamps
packetizer.go:96
Method
String
String helps with debugging by printing packet information in a readable way
packet.go:62
Function
TestAbsSendTimeExtension_Estimate
(t *testing.T)
abssendtimeextension_test.go:65
Function
TestAbsSendTimeExtension_Roundtrip
(t *testing.T)
abssendtimeextension_test.go:41
Function
TestAudioLevelExtensionLevelOverflow
(t *testing.T)
audiolevelextension_test.go:71
Function
TestAudioLevelExtensionTooSmall
(t *testing.T)
audiolevelextension_test.go:9
Function
TestAudioLevelExtensionVoiceFalse
(t *testing.T)
audiolevelextension_test.go:45
Function
TestAudioLevelExtensionVoiceTrue
(t *testing.T)
audiolevelextension_test.go:19
Function
TestBasic
(t *testing.T)
packet_test.go:12
Function
TestCommon_Min
(t *testing.T)
codecs/common_test.go:7
Function
TestExtension
(t *testing.T)
packet_test.go:68
Function
TestG711Payloader
(t *testing.T)
codecs/g711_packet_test.go:10
Function
TestG722Payloader
(t *testing.T)
codecs/g722_packet_test.go:10
Function
TestH264Packet_Unmarshal
(t *testing.T)
codecs/h264_packet_test.go:91
Function
TestH264PartitionHeadChecker_IsPartitionHead
(t *testing.T)
codecs/h264_packet_test.go:183
Function
TestH264Payloader_Payload
(t *testing.T)
codecs/h264_packet_test.go:8
Function
TestNtpConversion
(t *testing.T)
abssendtimeextension_test.go:10
Function
TestOpusPacket_Unmarshal
(t *testing.T)
codecs/opus_packet_test.go:8
Function
TestOpusPartitionHeadChecker_IsPartitionHead
(t *testing.T)
codecs/opus_packet_test.go:68
Function
TestOpusPayloader_Payload
(t *testing.T)
codecs/opus_packet_test.go:39
Function
TestPacketizer
(t *testing.T)
packetizer_test.go:12
Function
TestPacketizer_AbsSendTime
(t *testing.T)
packetizer_test.go:27
Function
TestRFC3550SetExtensionShouldErrorWhenNonZero
(t *testing.T)
packet_test.go:987
Function
TestRFC3550SetExtensionShouldRaiseErrorWhenSettingNonzeroID
(t *testing.T)
packet_test.go:1023
Function
TestRFC8285DelExtension
(t *testing.T)
packet_test.go:495
Function
TestRFC8285DelExtensionReturnsErrorWhenExtensionsDisabled
(t *testing.T)
packet_test.go:610
Function
TestRFC8285GetExtensionIDs
(t *testing.T)
packet_test.go:541
Function
TestRFC8285GetExtensionIDsReturnsErrorWhenExtensionsDisabled
(t *testing.T)
packet_test.go:585
Function
TestRFC8285GetExtensionReturnsNilWhenExtensionsDisabled
(t *testing.T)
packet_test.go:470
Function
TestRFC8285OneByteExtension
(t *testing.T)
packet_test.go:104
Function
TestRFC8285OneByteExtensionTermianteProcessingWhenReservedIDEncountered
(t *testing.T)
packet_test.go:786
next →
1–100 of 125, ranked by callers