Class DePacketizer.VP9PayloadDescriptor

    • Constructor Detail

      • VP9PayloadDescriptor

        public VP9PayloadDescriptor()
    • 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.