Interface OggPayload

All Known Implementing Classes:
KateDec, TheoraDec, VorbisDec

public interface OggPayload
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getFirstTs(Vector packets)
    Get the first timestamp of the list of packets
    Get mime type
    getMime(com.jcraft.jogg.Packet op)
    Get mime type from the given packet
    long
    granuleToTime(long gp)
    Convert the granule pos to a timestamp
    boolean
    Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)
    boolean
    isHeader(com.jcraft.jogg.Packet op)
    Check if the packet contains a header packet
    boolean
    isKeyFrame(com.jcraft.jogg.Packet op)
    Check if the packet contains a keyframe
    boolean
    isType(com.jcraft.jogg.Packet op)
    Check if the packet contains the signature of the payload.
    int
    takeHeader(com.jcraft.jogg.Packet op)
    Initialize the payload with a header packet.
  • Method Details

    • isType

      boolean isType(com.jcraft.jogg.Packet op)
      Check if the packet contains the signature of the payload.
    • takeHeader

      int takeHeader(com.jcraft.jogg.Packet op)
      Initialize the payload with a header packet. Returns a negative value for error, 0 if OK, 1 if OK and ready for decoding data.
    • isHeader

      boolean isHeader(com.jcraft.jogg.Packet op)
      Check if the packet contains a header packet
    • isKeyFrame

      boolean isKeyFrame(com.jcraft.jogg.Packet op)
      Check if the packet contains a keyframe
    • getFirstTs

      long getFirstTs(Vector packets)
      Get the first timestamp of the list of packets
    • granuleToTime

      long granuleToTime(long gp)
      Convert the granule pos to a timestamp
    • getMime

      String getMime()
      Get mime type
    • getMime

      String getMime(com.jcraft.jogg.Packet op)
      Get mime type from the given packet
    • isDiscontinuous

      boolean isDiscontinuous()
      Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)