Class 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
    
      0                   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|
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     
    Scalable
    
      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 Detail

      • FrameMarkingHeaderExtension

        public FrameMarkingHeaderExtension()
    • 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 array
        encoding - 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