package util
Import Path
github.com/pion/interceptor/pkg/flexfec/util (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package util implements utilities to better support Fec decoding / encoding.
media_packet_iterator.go
Package-Level Type Names (total 2)
BitArray provides support for bitmask manipulations.
// rightmost 64 bits
// leftmost 64 bits
GetBit returns the bit value at a specified index of the bitmask.
Reset clears the bitmask.
SetBit sets a bit to the specified bit value on the bitmask.
MediaPacketIterator supports iterating through a list of media packets protected by
a specific Fec packet.
First returns the first media packet to iterate through.
HasNext indicates whether or not there are more media packets
that can be iterated through.
Next returns the next media packet to iterate through.
Reset sets the starting iterating index back to 0.
func NewMediaPacketIterator(mediaPackets []rtp.Packet, coveredIndices []uint32) *MediaPacketIterator
func (*MediaPacketIterator).Reset() *MediaPacketIterator
func github.com/pion/interceptor/pkg/flexfec.(*ProtectionCoverage).GetCoveredBy(fecPacketIndex uint32) *MediaPacketIterator
Package-Level Functions (only one)
NewMediaPacketIterator returns a new MediaPacketIterator.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |