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 String |
TYPE |
type| Constructor and Description |
|---|
SegmentIndexBox() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
protected void |
getContent(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() |
List<SegmentIndexBox.Entry> |
getEntries() |
long |
getFirstOffset() |
long |
getReferenceId() |
int |
getReserved() |
long |
getTimeScale() |
void |
setEarliestPresentationTime(long earliestPresentationTime) |
void |
setEntries(List<SegmentIndexBox.Entry> entries) |
void |
setFirstOffset(long firstOffset) |
void |
setReferenceId(long referenceId) |
void |
setReserved(int reserved) |
void |
setTimeScale(long timeScale) |
String |
toString() |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlagsgetBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setParentpublic static final String TYPE
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)protected void getContent(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(ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.public List<SegmentIndexBox.Entry> getEntries()
public void setEntries(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)
Copyright © 2016. All rights reserved.