java.io.Closeable, java.lang.AutoCloseable, StreamingTrackH264AnnexBTrackpublic abstract class H264NalConsumingTrack extends AbstractH264Track
sampleSink, tkhd, trackExtensions| Constructor | Description |
|---|---|
H264NalConsumingTrack() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
configure() |
|
protected void |
consumeNal(java.nio.ByteBuffer nal) |
|
protected org.mp4parser.streaming.input.h264.PictureOrderCountType0SampleExtension |
createPictureOrderCountType0SampleExtension(SliceHeader sliceHeader) |
|
protected StreamingSample |
createSample(java.util.List<java.nio.ByteBuffer> nals,
SliceHeader sliceHeader,
H264NalUnitHeader nu) |
|
protected SampleFlagsSampleExtension |
createSampleFlagsSampleExtension(H264NalUnitHeader nu,
SliceHeader sliceHeader) |
|
java.lang.String |
getHandler() |
|
java.lang.String |
getLanguage() |
|
static H264NalUnitHeader |
getNalUnitHeader(java.nio.ByteBuffer nal) |
|
org.mp4parser.boxes.iso14496.part12.SampleDescriptionBox |
getSampleDescriptionBox() |
|
long |
getTimescale() |
Gets the time scale of the track.
|
protected void |
handlePPS(java.nio.ByteBuffer nal) |
|
protected void |
handleSPS(java.nio.ByteBuffer data) |
|
protected void |
pushSample(StreamingSample ss,
boolean all,
boolean force) |
|
void |
setFrametick(int frametick) |
|
void |
setTimescale(int timescale) |
addTrackExtension, getTrackExtension, removeTrackExtension, setSampleSinkpublic static H264NalUnitHeader getNalUnitHeader(java.nio.ByteBuffer nal)
protected void consumeNal(java.nio.ByteBuffer nal)
throws java.io.IOException
java.io.IOExceptionprotected void pushSample(StreamingSample ss, boolean all, boolean force) throws java.io.IOException
java.io.IOExceptionprotected SampleFlagsSampleExtension createSampleFlagsSampleExtension(H264NalUnitHeader nu, SliceHeader sliceHeader)
protected org.mp4parser.streaming.input.h264.PictureOrderCountType0SampleExtension createPictureOrderCountType0SampleExtension(SliceHeader sliceHeader)
protected StreamingSample createSample(java.util.List<java.nio.ByteBuffer> nals, SliceHeader sliceHeader, H264NalUnitHeader nu) throws java.io.IOException
java.io.IOExceptionpublic void setFrametick(int frametick)
public void configure()
public long getTimescale()
StreamingTrackpublic void setTimescale(int timescale)
public org.mp4parser.boxes.iso14496.part12.SampleDescriptionBox getSampleDescriptionBox()
public java.lang.String getHandler()
public java.lang.String getLanguage()
protected void handlePPS(java.nio.ByteBuffer nal)
protected void handleSPS(java.nio.ByteBuffer data)
public void close()
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.