Class H262Reader
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.ts.H262Reader
-
- All Implemented Interfaces:
ElementaryStreamReader
public final class H262Reader extends Object implements ElementaryStreamReader
Parses a continuous H262 byte stream and extracts individual frames.
-
-
Constructor Summary
Constructors Constructor Description H262Reader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(ParsableByteArray data)Consumes (possibly partial) data from the current packet.voidcreateTracks(ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)Initializes the reader by providing outputs and ids for the tracks.voidpacketFinished()Called when a packet ends.voidpacketStarted(long pesTimeUs, int flags)Called when a packet starts.voidseek()Notifies the reader that a seek has occurred.
-
-
-
Method Detail
-
seek
public void seek()
Description copied from interface:ElementaryStreamReaderNotifies the reader that a seek has occurred.- Specified by:
seekin interfaceElementaryStreamReader
-
createTracks
public void createTracks(ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)
Description copied from interface:ElementaryStreamReaderInitializes the reader by providing outputs and ids for the tracks.- Specified by:
createTracksin interfaceElementaryStreamReader- Parameters:
extractorOutput- TheExtractorOutputthat receives the extracted data.idGenerator- ATsPayloadReader.TrackIdGeneratorthat generates unique track ids for theTrackOutputs.
-
packetStarted
public void packetStarted(long pesTimeUs, @Flags int flags)Description copied from interface:ElementaryStreamReaderCalled when a packet starts.- Specified by:
packetStartedin interfaceElementaryStreamReader- Parameters:
pesTimeUs- The timestamp associated with the packet.flags- SeeTsPayloadReader.Flags.
-
consume
public void consume(ParsableByteArray data)
Description copied from interface:ElementaryStreamReaderConsumes (possibly partial) data from the current packet.- Specified by:
consumein interfaceElementaryStreamReader- Parameters:
data- The data to consume.
-
packetFinished
public void packetFinished()
Description copied from interface:ElementaryStreamReaderCalled when a packet ends.- Specified by:
packetFinishedin interfaceElementaryStreamReader
-
-