Class VisualRandomAccessEntry

java.lang.Object
org.mp4parser.boxes.samplegrouping.GroupEntry
org.mp4parser.boxes.samplegrouping.VisualRandomAccessEntry

public class VisualRandomAccessEntry extends GroupEntry

4cc = ""rap ""

For some coding systems a sync sample is specified to be a random access point after which all samples in decoding order can be correctly decoded. However, it may be possible to encode an “open” random access point, after which all samples in output order can be correctly decoded, but some samples following the random access point in decoding order and preceding the random access point in output order need not be correctly decodable. For example, an intra picture starting an open group of pictures can be followed in decoding order by (bi-)predicted pictures that however precede the intra picture in output order; though they possibly cannot be correctly decoded if the decoding starts from the intra picture, they are not needed.

Such "open" random-access samples can be marked by being a member of this group. Samples marked by this group must be random access points, and may also be sync points (i.e. it is not required that samples marked by the sync sample table be excluded).

  • Field Details

  • Constructor Details

    • VisualRandomAccessEntry

      public VisualRandomAccessEntry()
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in class GroupEntry
    • isNumLeadingSamplesKnown

      public boolean isNumLeadingSamplesKnown()
    • setNumLeadingSamplesKnown

      public void setNumLeadingSamplesKnown(boolean numLeadingSamplesKnown)
    • getNumLeadingSamples

      public short getNumLeadingSamples()
    • setNumLeadingSamples

      public void setNumLeadingSamples(short numLeadingSamples)
    • parse

      public void parse(ByteBuffer byteBuffer)
      Specified by:
      parse in class GroupEntry
    • get

      public ByteBuffer get()
      Specified by:
      get in class GroupEntry
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object