Documentation ¶
Overview ¶
Package util implements utilities to better support Fec decoding / encoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitArray ¶
BitArray provides support for bitmask manipulations.
type MediaPacketIterator ¶
type MediaPacketIterator struct {
// contains filtered or unexported fields
}
MediaPacketIterator supports iterating through a list of media packets protected by a specific Fec packet.
func NewMediaPacketIterator ¶
func NewMediaPacketIterator(mediaPackets []rtp.Packet, coveredIndices []uint32) *MediaPacketIterator
NewMediaPacketIterator returns a new MediaPacketIterator.
func (*MediaPacketIterator) First ¶
func (m *MediaPacketIterator) First() *rtp.Packet
First returns the first media packet to iterate through.
func (*MediaPacketIterator) HasNext ¶
func (m *MediaPacketIterator) HasNext() bool
HasNext indicates whether or not there are more media packets that can be iterated through.
func (*MediaPacketIterator) Next ¶
func (m *MediaPacketIterator) Next() *rtp.Packet
Next returns the next media packet to iterate through.
func (*MediaPacketIterator) Reset ¶
func (m *MediaPacketIterator) Reset() *MediaPacketIterator
Reset sets the starting iterating index back to 0.
Click to show internal directories.
Click to hide internal directories.