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