public abstract class AbstractH26XTrack extends AbstractTrack
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractH26XTrack.LookAhead |
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER |
protected List<CompositionTimeToSample.Entry> |
ctts |
protected long[] |
decodingTimes |
protected List<SampleDependencyTypeBox.Entry> |
sdtp |
protected List<Integer> |
stss |
protected TrackMetaData |
trackMetaData |
| Constructor and Description |
|---|
AbstractH26XTrack(DataSource dataSource) |
AbstractH26XTrack(DataSource dataSource,
boolean tripleZeroIsEndOfSequence) |
| Modifier and Type | Method and Description |
|---|---|
protected static InputStream |
cleanBuffer(InputStream is) |
void |
close() |
protected Sample |
createSampleObject(List<? extends ByteBuffer> nals)
Builds an MP4 sample from a list of NALs.
|
protected ByteBuffer |
findNextNal(AbstractH26XTrack.LookAhead la) |
List<CompositionTimeToSample.Entry> |
getCompositionTimeEntries() |
List<SampleDependencyTypeBox.Entry> |
getSampleDependencies() |
long[] |
getSampleDurations()
Each samples is covers a small time span in a video.
|
long[] |
getSyncSamples() |
TrackMetaData |
getTrackMetaData() |
protected static byte[] |
toArray(ByteBuffer buf) |
getDuration, getEdits, getName, getSampleGroups, getSubsampleInformationBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandler, getSampleDescriptionBox, getSamplespublic static int BUFFER
protected long[] decodingTimes
protected List<CompositionTimeToSample.Entry> ctts
protected List<SampleDependencyTypeBox.Entry> sdtp
protected TrackMetaData trackMetaData
public AbstractH26XTrack(DataSource dataSource, boolean tripleZeroIsEndOfSequence)
public AbstractH26XTrack(DataSource dataSource)
public TrackMetaData getTrackMetaData()
protected ByteBuffer findNextNal(AbstractH26XTrack.LookAhead la) throws IOException
IOExceptionprotected Sample createSampleObject(List<? extends ByteBuffer> nals)
nals - a list of NALs that form the samplepublic long[] getSampleDurations()
TrackTrack.getSamples() contains.public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
getCompositionTimeEntries in interface TrackgetCompositionTimeEntries in class AbstractTrackpublic long[] getSyncSamples()
getSyncSamples in interface TrackgetSyncSamples in class AbstractTrackpublic List<SampleDependencyTypeBox.Entry> getSampleDependencies()
getSampleDependencies in interface TrackgetSampleDependencies in class AbstractTrackprotected static InputStream cleanBuffer(InputStream is)
protected static byte[] toArray(ByteBuffer buf)
public void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.