|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.SystemHeader
public class SystemHeader
Represents the system header in program streams.
Nested Class Summary | |
---|---|
private static class |
SystemHeader.StreamInfo
|
Field Summary | |
---|---|
private int |
audioBound
|
private boolean |
audioLocked
|
private boolean |
fixedRate
|
private int |
rateBound
|
private java.util.HashMap<StreamID,SystemHeader.StreamInfo> |
streams
|
private int |
videoBound
|
private boolean |
videoLocked
|
Constructor Summary | |
---|---|
SystemHeader(int rateBound,
int audioBound,
int videoBound)
Creates a new instance of class SystemHeader . |
|
SystemHeader(int rateBound,
int audioBound,
int videoBound,
boolean fixedRate,
boolean audioLocked,
boolean videoLocked)
Creates a new instance of class SystemHeader . |
Method Summary | |
---|---|
void |
addStream(StreamID sid,
boolean pstdScale,
int pstdBufBound)
|
void |
addStream(StreamID sid,
int bufSize)
|
int |
getAudioBound()
Gets the maximum number of simultaneously decoding audio streams. |
int |
getHeaderLength()
Returns the length of this SystemHeader , in bytes. |
int |
getRateBound()
Gets the value of the rate bound. |
int |
getStreamBufferSize(StreamID sid)
|
int |
getVideoBound()
Gets the maximum number of simultaneously decoding video streams. |
boolean |
isAudioLocked()
Gets the value of the audio locked flag. |
boolean |
isFixedRate()
Gets the value of the fixed rate flag. |
boolean |
isVideoLocked()
Gets the value of the video locked flag. |
void |
removeStream(StreamID sid)
|
void |
setAudioBound(int audioBound)
Sets the maximum number of audio streams for which the decoding processes are simultaneously active. |
void |
setAudioLocked(boolean audioLocked)
Sets the audio locked flag. |
void |
setFixedRate(boolean fixedRate)
Sets the fixed rate flag. |
void |
setRateBound(int rateBound)
Sets the maximum expected value of program mux rate. |
void |
setVideoBound(int videoBound)
Sets the maximum number of video streams for which the decoding processes are simultaneously active. |
void |
setVideoLocked(boolean videoLocked)
Sets the video locked flag. |
void |
writeTo(BitOutputStream stream)
Writes this System Header to stream stream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int rateBound
private int videoBound
private int audioBound
private boolean fixedRate
private boolean audioLocked
private boolean videoLocked
private java.util.HashMap<StreamID,SystemHeader.StreamInfo> streams
Constructor Detail |
---|
public SystemHeader(int rateBound, int audioBound, int videoBound, boolean fixedRate, boolean audioLocked, boolean videoLocked)
SystemHeader
.
rateBound
- Rate boundaudioBound
- Audio boundvideoBound
- Video boundsetRateBound(int)
,
setAudioBound(int)
,
setVideoBound(int)
,
setFixedRate(boolean)
,
setAudioLocked(boolean)
,
setVideoLocked(boolean)
public SystemHeader(int rateBound, int audioBound, int videoBound)
SystemHeader
.
The fixed rate, audio locked and video locked flags are
not set.
SystemHeader(int, int, int, boolean, boolean, boolean)
Method Detail |
---|
public int getRateBound()
public int getAudioBound()
public int getVideoBound()
public boolean isFixedRate()
public boolean isAudioLocked()
public boolean isVideoLocked()
public void setFixedRate(boolean fixedRate)
fixedRate
- true
if the rate is fixed;
false
otherwisepublic void setAudioLocked(boolean audioLocked)
audioLocked
- true
if the audio sampling rate
is locked to the system clock;
false
otherwisepublic void setVideoLocked(boolean videoLocked)
videoLocked
- true
if the video frame rate
is locked to the system clock;
false
otherwisepublic void setRateBound(int rateBound)
rateBound
- Rate bound, in the range from 0 to 2**22 - 1public void setAudioBound(int audioBound)
audioBound
- Audio bound, in the range from 0 to 32public void setVideoBound(int videoBound)
videoBound
- Video bound, in the range from 0 to 16public void addStream(StreamID sid, boolean pstdScale, int pstdBufBound)
public void addStream(StreamID sid, int bufSize)
public void removeStream(StreamID sid)
public int getStreamBufferSize(StreamID sid)
public void writeTo(BitOutputStream stream) throws java.io.IOException
stream
.
stream
- Stream to write this header to
java.io.IOException
public int getHeaderLength()
SystemHeader
, in bytes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |