Package org.jitsi.impl.neomedia.rtp
Class FrameMarkingHeaderExtension
- java.lang.Object
-
- org.jitsi.impl.neomedia.rtp.FrameMarkingHeaderExtension
-
public class FrameMarkingHeaderExtension extends Object
Provides utility functions for the frame marking RTP header extension described in https://tools.ietf.org/html/draft-ietf-avtext-framemarking-03 Non-Scalable
Scalable0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID=? | L=0 |S|E|I|D|0 0 0 0| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID=? | L=2 |S|E|I|D|B| TID | LID | TL0PICIDX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Author:
- Boris Grozev, Sergio Garcia Murillo
-
-
Constructor Summary
Constructors Constructor Description FrameMarkingHeaderExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static bytegetSpatialID(org.jitsi.utils.ByteArrayBuffer baf, String encoding)static bytegetTemporalID(org.jitsi.utils.ByteArrayBuffer baf)static booleanisEndOfFrame(org.jitsi.utils.ByteArrayBuffer baf)static booleanisKeyframe(org.jitsi.utils.ByteArrayBuffer baf)static booleanisStartOfFrame(org.jitsi.utils.ByteArrayBuffer baf)
-
-
-
Method Detail
-
isKeyframe
public static boolean isKeyframe(org.jitsi.utils.ByteArrayBuffer baf)
- Returns:
- true if the extension contained in the given buffer indicates that the corresponding RTP packet is the first packet of a keyframe (i.e. the S and I bits are set).
-
isStartOfFrame
public static boolean isStartOfFrame(org.jitsi.utils.ByteArrayBuffer baf)
- Returns:
- true if the extension contained in the given buffer indicates that the corresponding RTP packet is the first packet of a frame (i.e. the S bit is set).
-
isEndOfFrame
public static boolean isEndOfFrame(org.jitsi.utils.ByteArrayBuffer baf)
- Returns:
- true if the extension contained in the given buffer indicates that the corresponding RTP packet is the last packet of a frame (i.e. the E bit is set).
-
getSpatialID
public static byte getSpatialID(org.jitsi.utils.ByteArrayBuffer baf, String encoding)- Parameters:
baf- Header extension byte arrayencoding- Encoding type used to parse the LID field- Returns:
- the spatial layerd id present in the LID or 0 if not present.
-
getTemporalID
public static byte getTemporalID(org.jitsi.utils.ByteArrayBuffer baf)
- Parameters:
baf- Header extension byte array- Returns:
- The temporal layer id (the LID bits) or 0 if not present
-
-