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, writeVersionAndFlags
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setParent
public static final String TYPE
protected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
protected void getContent(ByteBuffer byteBuffer)
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.getContent
in class AbstractBox
byteBuffer
- the sink for the box's contentprotected void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- 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 © 2017. All rights reserved.