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 ¶
type BitArray struct {
// contains filtered or unexported fields
}
BitArray provides support for bitmask manipulations.
func NewBitArray ¶
NewBitArray returns a new BitArray. It takes sizeBits as parameter which represents the size of the underlying bitmask.
func (*BitArray) GetBitValue ¶
GetBitValue returns a subsection of the bitmask.
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.