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).
-
-
Constructor Summary
Constructors Constructor Description VisualRandomAccessEntry()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
ByteBuffer
get()
short
getNumLeadingSamples()
String
getType()
int
hashCode()
boolean
isNumLeadingSamplesKnown()
void
parse(ByteBuffer byteBuffer)
void
setNumLeadingSamples(short numLeadingSamples)
void
setNumLeadingSamplesKnown(boolean numLeadingSamplesKnown)
String
toString()
-
Methods inherited from class org.mp4parser.boxes.samplegrouping.GroupEntry
size
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getType
in classGroupEntry
-
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 classGroupEntry
-
get
public ByteBuffer get()
- Specified by:
get
in classGroupEntry
-
-