public class SegmentIndexBox extends AbstractFullBox
aligned(8) class SegmentIndexBox extends FullBox(‘sidx’, version, 0) {
unsigned int(32) reference_ID;
unsigned int(32) timescale;
if (version==0)
{
unsigned int(32) earliest_presentation_time;
unsigned int(32) first_offset;
}
else
{
unsigned int(64) earliest_presentation_time;
unsigned int(64) first_offset;
}
unsigned int(16) reserved = 0;
unsigned int(16) reference_count;
for(i=1; i <= reference_count; i++)
{
bit (1) reference_type;
unsigned int(31) referenced_size;
unsigned int(32) subsegment_duration;
bit(1) starts_with_SAP;
unsigned int(3) SAP_type;
unsigned int(28) SAP_delta_time;
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
SegmentIndexBox.Entry |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
content, type| Constructor and Description |
|---|
SegmentIndexBox() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(java.nio.ByteBuffer content)
Parse the box's fields and child boxes if any.
|
protected void |
getContent(java.nio.ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer. |
protected long |
getContentSize()
Get the box's content size without its header.
|
long |
getEarliestPresentationTime() |
java.util.List<SegmentIndexBox.Entry> |
getEntries() |
long |
getFirstOffset() |
long |
getReferenceId() |
int |
getReserved() |
long |
getTimeScale() |
void |
setEarliestPresentationTime(long earliestPresentationTime) |
void |
setEntries(java.util.List<SegmentIndexBox.Entry> entries) |
void |
setFirstOffset(long firstOffset) |
void |
setReferenceId(long referenceId) |
void |
setReserved(int reserved) |
void |
setTimeScale(long timeScale) |
java.lang.String |
toString() |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlagsgetBox, getSize, getType, getUserType, isParsed, parse, parseDetailsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitparsepublic static final java.lang.String TYPE
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)protected void getContent(java.nio.ByteBuffer byteBuffer)
AbstractBoxByteBuffer. This must include flags
and version in case of a full box. byteBuffer has been initialized with
getSize() bytes.getContent in class AbstractBoxbyteBuffer - the sink for the box's contentprotected void _parseDetails(java.nio.ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.public java.util.List<SegmentIndexBox.Entry> getEntries()
public void setEntries(java.util.List<SegmentIndexBox.Entry> entries)
public long getReferenceId()
public void setReferenceId(long referenceId)
public long getTimeScale()
public void setTimeScale(long timeScale)
public long getEarliestPresentationTime()
public void setEarliestPresentationTime(long earliestPresentationTime)
public long getFirstOffset()
public void setFirstOffset(long firstOffset)
public int getReserved()
public void setReserved(int reserved)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All rights reserved.