|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.StreamID
public class StreamID
Represents a MPEG-2 stream ID. In program streams, the stream ID specifies the type and number of the elementary stream in a given PES packet.
Field Summary | |
---|---|
static StreamID |
ANCILLARY
Ancillary stream (program stream data in a transport stream). |
static StreamID |
DSM_CC
DSMCC stream. |
static StreamID |
ECM
ECM stream (unconstrained syntax). |
static StreamID |
EMM
EMM stream (unconstrained syntax). |
private int |
encodedValue
|
static StreamID |
EXTENDED
Extended syntax stream. |
static StreamID |
FLEX_MUX
ISO/IEC 14496-1 FlexMux stream. |
static StreamID |
H_222_1_TYPE_A
H.222.1 type A stream. |
static StreamID |
H_222_1_TYPE_B
H.222.1 type B stream. |
static StreamID |
H_222_1_TYPE_C
H.222.1 type C stream. |
static StreamID |
H_222_1_TYPE_D
H.222.1 type D stream. |
static StreamID |
H_222_1_TYPE_E
H.222.1 type E stream. |
static StreamID |
ISO_13522
ISO/IEC 13522 stream. |
static StreamID |
METADATA
Metadata stream. |
static StreamID |
PADDING
Padding stream. |
static StreamID |
PRIVATE_1
Private stream 1 (syntax common with audio/video packets). |
static StreamID |
PRIVATE_2
Private stream 2 (unconstrained syntax). |
static StreamID |
PROGRAM_DIRECTORY
Program stream directory meta-stream. |
static StreamID |
PROGRAM_MAP
Program stream map meta-stream. |
static StreamID |
SL_PACKETIZED
ISO/IEC 14496-1 SL-packetized stream. |
Constructor Summary | |
---|---|
private |
StreamID(int encodedValue)
|
Method Summary | |
---|---|
static StreamID |
audio(int number)
Audio stream with a given number. |
boolean |
equals(java.lang.Object a)
|
int |
hashCode()
|
boolean |
isAudioStream()
Returns whether this stream identifier represents an audio stream. |
boolean |
isVideoStream()
Returns whether this stream identifier represents a video stream. |
static StreamID |
video(int number)
Video stream with a given number. |
void |
writeTo(BitOutputStream stream)
Writes the code to a bit stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StreamID PROGRAM_MAP
public static final StreamID PRIVATE_1
public static final StreamID PRIVATE_2
public static final StreamID ECM
public static final StreamID EMM
public static final StreamID PADDING
public static final StreamID DSM_CC
public static final StreamID ISO_13522
public static final StreamID H_222_1_TYPE_A
public static final StreamID H_222_1_TYPE_B
public static final StreamID H_222_1_TYPE_C
public static final StreamID H_222_1_TYPE_D
public static final StreamID H_222_1_TYPE_E
public static final StreamID ANCILLARY
public static final StreamID SL_PACKETIZED
public static final StreamID FLEX_MUX
public static final StreamID METADATA
public static final StreamID EXTENDED
public static final StreamID PROGRAM_DIRECTORY
private final int encodedValue
Constructor Detail |
---|
private StreamID(int encodedValue)
Method Detail |
---|
public static StreamID audio(int number)
number
- The number of the stream. Must be in range [0..31].public static StreamID video(int number)
number
- The number of the stream. Must be in range [0..15].public boolean isAudioStream()
true
if this stream is an audio streampublic boolean isVideoStream()
true
if this stream is a video streampublic void writeTo(BitOutputStream stream) throws java.io.IOException
stream
- The stream to write to.
java.io.IOException
- Propagated from the stream write.public boolean equals(java.lang.Object a)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |