|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.PackHeader
public class PackHeader
Represents the program stream pack header.
Field Summary | |
---|---|
(package private) UnsignedIntegerField |
programMuxRate
|
(package private) long |
scrBase
|
(package private) UnsignedIntegerField |
scrExtension
|
(package private) UnsignedIntegerField |
stuffingLength
|
Constructor Summary | |
---|---|
PackHeader(long scrBase,
int scrExtension,
int programMuxRate,
int stuffingLength)
Class constructor. |
Method Summary | |
---|---|
int |
getHeaderLength()
Returns the size of this PackHeader , in bytes. |
long |
getProgramMuxRate()
Gets the program mux rate. |
long |
getSCRBase()
Gets the system clock reference base. |
long |
getSCRExtension()
Gets the system clock reference extension. |
int |
getStuffingLength()
Gets the stuffing length. |
void |
setProgramMuxRate(int muxRate)
Sets the program mux rate. |
void |
setSCRBase(long scrBase)
Sets the system clock reference base. |
void |
setSCRExtension(int scrExtension)
Sets the system clock reference extension. |
void |
setStuffingLength(int length)
Sets the stuffing length. |
void |
writeTo(BitOutputStream stream)
Writes the header to a bit stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
long scrBase
UnsignedIntegerField scrExtension
UnsignedIntegerField programMuxRate
UnsignedIntegerField stuffingLength
Constructor Detail |
---|
public PackHeader(long scrBase, int scrExtension, int programMuxRate, int stuffingLength)
scrBase
- Initial value for the system clock reference base. Same constraints as in setSCRBase() apply.scrExtension
- Initial value for the system clock reference extension. Same constraints as in
setSCRExtension() apply.programMuxRate
- Initial value for the program mux rate. Same constraints as in setProgramMuxRate() apply.stuffingLength
- Initial value for the stuffing length. Same constraints as in setStuffingLength() apply.Method Detail |
---|
public long getSCRBase()
public void setSCRBase(long scrBase)
scrBase
- The new base value. The value must fit into 33 bits as an unsigned integer.public long getSCRExtension()
public void setSCRExtension(int scrExtension)
scrExtension
- The new extension value. The value must be in range [0..299].public long getProgramMuxRate()
public void setProgramMuxRate(int muxRate)
muxRate
- The new rate. The value must be in the range [1..2^22-1].public int getStuffingLength()
public void setStuffingLength(int length)
length
- The new length. Must be in range [0..7].public void writeTo(BitOutputStream stream) throws java.io.IOException
stream
- The stream to write to.
java.io.IOException
- Propagated from the stream write.public int getHeaderLength()
PackHeader
, in bytes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |