Class SegmentIndexBox.Entry

java.lang.Object
org.mp4parser.boxes.iso14496.part12.SegmentIndexBox.Entry
Enclosing class:
SegmentIndexBox

public static class SegmentIndexBox.Entry extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Entry(int referenceType, int referencedSize, long subsegmentDuration, boolean startsWithSap, int sapType, int sapDeltaTime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    byte
    When set to 1 indicates that the reference is to a segment index ('sidx') box; otherwise the reference is to media content (e.g., in the case of files based on this specification, to a movie fragment box); if a separate index segment is used, then entries with reference t
    int
     
    byte
     
    byte
     
    long
     
    int
     
    void
    setReferencedSize(int referencedSize)
     
    void
    setReferenceType(byte referenceType)
    When set to 1 indicates that the reference is to a segment index ('sidx') box; otherwise the reference is to media content (e.g., in the case of files based on this specification, to a movie fragment box); if a separate index segment is used, then entries with reference t
    void
    setSapDeltaTime(int sapDeltaTime)
     
    void
    setSapType(byte sapType)
     
    void
    setStartsWithSap(byte startsWithSap)
     
    void
    setSubsegmentDuration(long subsegmentDuration)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entry

      public Entry()
    • Entry

      public Entry(int referenceType, int referencedSize, long subsegmentDuration, boolean startsWithSap, int sapType, int sapDeltaTime)
  • Method Details

    • getReferenceType

      public byte getReferenceType()
      When set to 1 indicates that the reference is to a segment index ('sidx') box; otherwise the reference is to media content (e.g., in the case of files based on this specification, to a movie fragment box); if a separate index segment is used, then entries with reference t
      Returns:
      the reference type
    • setReferenceType

      public void setReferenceType(byte referenceType)
      When set to 1 indicates that the reference is to a segment index ('sidx') box; otherwise the reference is to media content (e.g., in the case of files based on this specification, to a movie fragment box); if a separate index segment is used, then entries with reference t
      Parameters:
      referenceType - the new reference type
    • getReferencedSize

      public int getReferencedSize()
    • setReferencedSize

      public void setReferencedSize(int referencedSize)
    • getSubsegmentDuration

      public long getSubsegmentDuration()
    • setSubsegmentDuration

      public void setSubsegmentDuration(long subsegmentDuration)
    • getStartsWithSap

      public byte getStartsWithSap()
    • setStartsWithSap

      public void setStartsWithSap(byte startsWithSap)
    • getSapType

      public byte getSapType()
    • setSapType

      public void setSapType(byte sapType)
    • getSapDeltaTime

      public int getSapDeltaTime()
    • setSapDeltaTime

      public void setSapDeltaTime(int sapDeltaTime)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object