Class FlexFec03Mask
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.fec.FlexFec03Mask
-
public class FlexFec03Mask extends Object
Models a FlexFec-03 mask field
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlexFec03Mask.MalformedMaskException
-
Constructor Summary
Constructors Constructor Description FlexFec03Mask(int baseSeqNum, List<Integer> protectedSeqNums)Create a mask from a base sequence number and a list of protected sequence numbers
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexFec03BitSetgetMaskWithKBits()List<Integer>getProtectedSeqNums()Get the list of media packet sequence numbers which are marked as protected in this maskintlengthBytes()Get the length of the mask, in bytes
-
-
-
Constructor Detail
-
FlexFec03Mask
public FlexFec03Mask(int baseSeqNum, List<Integer> protectedSeqNums) throws FlexFec03Mask.MalformedMaskExceptionCreate a mask from a base sequence number and a list of protected sequence numbers- Parameters:
baseSeqNum- the base sequence number to use for the maskprotectedSeqNums- the sequence numbers this mask should mark as protected- Throws:
FlexFec03Mask.MalformedMaskException- when the mask is invalid
-
-
Method Detail
-
getMaskWithKBits
public FlexFec03BitSet getMaskWithKBits()
-
lengthBytes
public int lengthBytes()
Get the length of the mask, in bytes- Returns:
- the length of the mask, in bytes
-
-