public class TrackFragmentHeaderBox extends FullBox
| Modifier and Type | Class and Description |
|---|---|
static class |
TrackFragmentHeaderBox.Factory |
Box.LeafBox| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_BASE_DATA_OFFSET |
static int |
FLAG_DEFAILT_SAMPLE_DURATION |
static int |
FLAG_DEFAILT_SAMPLE_FLAGS |
static int |
FLAG_DEFAULT_SAMPLE_SIZE |
static int |
FLAG_SAMPLE_DESCRIPTION_INDEX |
header, MAX_BOX_SIZE| Constructor and Description |
|---|
TrackFragmentHeaderBox(Header atom) |
getFlags, getVersion, setFlags, setVersionpublic static final int FLAG_BASE_DATA_OFFSET
public static final int FLAG_SAMPLE_DESCRIPTION_INDEX
public static final int FLAG_DEFAILT_SAMPLE_DURATION
public static final int FLAG_DEFAULT_SAMPLE_SIZE
public static final int FLAG_DEFAILT_SAMPLE_FLAGS
public TrackFragmentHeaderBox(Header atom)
public static String fourcc()
public static TrackFragmentHeaderBox tfhd(int trackId, long baseDataOffset, int sampleDescriptionIndex, int defaultSampleDuration, int defaultSampleSize, int defaultSampleFlags)
public static TrackFragmentHeaderBox.Factory create(int trackId)
public static TrackFragmentHeaderBox.Factory copy(TrackFragmentHeaderBox other)
public static TrackFragmentHeaderBox createTrackFragmentHeaderBoxWithId(int trackId)
public void parse(ByteBuffer input)
protected void doWrite(ByteBuffer out)
public int estimateSize()
estimateSize in class Boxpublic int getTrackId()
public long getBaseDataOffset()
public int getSampleDescriptionIndex()
public int getDefaultSampleDuration()
public int getDefaultSampleSize()
public int getDefaultSampleFlags()
public boolean isBaseDataOffsetAvailable()
public boolean isSampleDescriptionIndexAvailable()
public boolean isDefaultSampleDurationAvailable()
public boolean isDefaultSampleSizeAvailable()
public boolean isDefaultSampleFlagsAvailable()
public void setTrackId(int trackId)
public void setDefaultSampleFlags(int defaultSampleFlags)
public static TrackFragmentHeaderBox createTrackFragmentHeaderBox()
Copyright © 2019. All rights reserved.