public class MP4Descriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected Vector<MP4Descriptor> |
children |
protected long |
decSpecificDataOffset |
protected int |
decSpecificDataSize |
static int |
MP4DecoderConfigDescriptorTag |
static int |
MP4DecSpecificInfoDescriptorTag |
static int |
MP4ES_DescriptorTag |
protected int |
readed |
protected int |
size |
protected int |
type |
Constructor and Description |
---|
MP4Descriptor(int type,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
createDecoderConfigDescriptor(MP4DataStream bitstream)
Loads the MP4DecoderConfigDescriptor from the input bitstream.
|
void |
createDecSpecificInfoDescriptor(MP4DataStream bitstream)
Loads the MP4DecSpecificInfoDescriptor from the input bitstream.
|
static MP4Descriptor |
createDescriptor(MP4DataStream bitstream) |
void |
createES_Descriptor(MP4DataStream bitstream)
Loads the MP4ES_Descriptor from the input bitstream.
|
Vector<MP4Descriptor> |
getChildren() |
long |
getDecSpecificDataOffset() |
int |
getDecSpecificDataSize() |
byte[] |
getDSID() |
int |
getReaded()
Gets the number of data bytes which were read from the stream;
|
int |
getType()
Returns the type of this descriptor.
|
MP4Descriptor |
lookup(int type,
int number)
Lookups for a child descriptor with the specified
type ,
skips the number children with the same type before
finding a result. |
public static final int MP4ES_DescriptorTag
public static final int MP4DecoderConfigDescriptorTag
public static final int MP4DecSpecificInfoDescriptorTag
protected int type
protected int size
protected int readed
protected Vector<MP4Descriptor> children
protected int decSpecificDataSize
protected long decSpecificDataOffset
public static MP4Descriptor createDescriptor(MP4DataStream bitstream) throws IOException
IOException
public void createES_Descriptor(MP4DataStream bitstream) throws IOException
bitstream
- the input bitstreamIOException
public void createDecoderConfigDescriptor(MP4DataStream bitstream) throws IOException
bitstream
- the input bitstreamIOException
public byte[] getDSID()
public void createDecSpecificInfoDescriptor(MP4DataStream bitstream) throws IOException
bitstream
- the input bitstreamIOException
public long getDecSpecificDataOffset()
public int getDecSpecificDataSize()
public MP4Descriptor lookup(int type, int number)
type
,
skips the number
children with the same type before
finding a result.type
- the type of the descriptor.number
- the number of child descriptors to skippublic int getType()
public int getReaded()
public Vector<MP4Descriptor> getChildren()
Copyright © 2006-2012 The Red5 Project