public final class DefaultStreamReaderFactory extends Object implements ElementaryStreamReader.Factory
ElementaryStreamReader.Factory
.Modifier and Type | Class and Description |
---|---|
static interface |
DefaultStreamReaderFactory.Flags
Flags controlling elementary stream readers behaviour.
|
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_ALLOW_NON_IDR_KEYFRAMES |
static int |
FLAG_DETECT_ACCESS_UNITS |
static int |
FLAG_IGNORE_AAC_STREAM |
static int |
FLAG_IGNORE_H264_STREAM |
Constructor and Description |
---|
DefaultStreamReaderFactory() |
DefaultStreamReaderFactory(int flags) |
Modifier and Type | Method and Description |
---|---|
ElementaryStreamReader |
createStreamReader(int streamType,
ElementaryStreamReader.EsInfo esInfo)
Returns an
ElementaryStreamReader for a given PMT entry. |
public static final int FLAG_ALLOW_NON_IDR_KEYFRAMES
public static final int FLAG_IGNORE_AAC_STREAM
public static final int FLAG_IGNORE_H264_STREAM
public static final int FLAG_DETECT_ACCESS_UNITS
public DefaultStreamReaderFactory()
public DefaultStreamReaderFactory(int flags)
public ElementaryStreamReader createStreamReader(int streamType, ElementaryStreamReader.EsInfo esInfo)
ElementaryStreamReader.Factory
ElementaryStreamReader
for a given PMT entry. May return null if the
stream type is not supported or if the stream already has a reader assigned to it.createStreamReader
in interface ElementaryStreamReader.Factory
streamType
- Stream type value as defined in the PMT entry or associated descriptors.esInfo
- Information associated to the elementary stream provided in the PMT.ElementaryStreamReader
for the elementary streams carried by the provided
pid. null
if the stream is not supported or if it should be ignored.