Class DePacketizer.VP9PayloadDescriptor
- java.lang.Object
-
- org.jitsi.impl.neomedia.codec.video.vp9.DePacketizer.VP9PayloadDescriptor
-
- Enclosing class:
- DePacketizer
public static class DePacketizer.VP9PayloadDescriptor extends Object
A class that represents the VP9 Payload Descriptor structure defined in draft-ietf-payload-vp9-02
-
-
Constructor Summary
Constructors Constructor Description VP9PayloadDescriptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetSpatialLayerIndex(byte[] buf, int off, int len)Gets the spatial layer index (SID), if that's set.static intgetTemporalLayerIndex(byte[] buf, int off, int len)Gets the temporal layer index (TID), if that's set.static booleanisEndOfFrame(byte[] buf, int off, int len)Returns true if the E bit from the first byte of the payload descriptor has value 0.static booleanisStartOfFrame(byte[] buf, int off, int len)Returns true if the B bit from the first byte of the payload descriptor has value 0.
-
-
-
Method Detail
-
isStartOfFrame
public static boolean isStartOfFrame(byte[] buf, int off, int len)Returns true if the B bit from the first byte of the payload descriptor has value 0.- Parameters:
buf- the byte buffer that holds the VP9 payload.off- the offset in the byte buffer where the VP9 payload starts.len- the length of the VP9 payload.- Returns:
- true if the B bit from the first byte of the payload descriptor has value 0, false otherwise.
-
isEndOfFrame
public static boolean isEndOfFrame(byte[] buf, int off, int len)Returns true if the E bit from the first byte of the payload descriptor has value 0.- Parameters:
buf- the byte buffer that holds the VP9 payload.off- the offset in the byte buffer where the VP9 payload starts.len- the length of the VP9 payload.- Returns:
- true if the E bit from the first byte of the payload descriptor has value 0, false otherwise.
-
getTemporalLayerIndex
public static int getTemporalLayerIndex(byte[] buf, int off, int len)Gets the temporal layer index (TID), if that's set.- Parameters:
buf- the byte buffer that holds the VP9 payload.off- the offset in the byte buffer where the VP9 payload starts.len- the length of the VP9 payload.- Returns:
- the temporal layer index (TID), if that's set, -1 otherwise.
-
getSpatialLayerIndex
public static int getSpatialLayerIndex(byte[] buf, int off, int len)Gets the spatial layer index (SID), if that's set.- Parameters:
buf- the byte buffer that holds the VP9 payload.off- the offset in the byte buffer where the VP9 payload starts.len- the length of the VP9 payload.- Returns:
- the spatial layer index (SID), if that's set, -1 otherwise.
-
-