|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.video.PictureCodingExtensionHeader
public class PictureCodingExtensionHeader
Represents the picture coding extension header. This header augments the picture coding type from PictureHeader with a lot of additional fields not relevant to MPEG-1. In MPEG-2 usage, this will always follow a PictureHeader.
Nested Class Summary | |
---|---|
static class |
PictureCodingExtensionHeader.Flag
Represents the different non-frame-structure flags possibly specified by this header. |
static class |
PictureCodingExtensionHeader.FrameStructure
Represents the allowed combinations of values for the picture structure, top field first, repeat first field and progressive frame fields. |
Field Summary | |
---|---|
(package private) boolean |
composite
|
(package private) UnsignedIntegerField[] |
fCodes
|
(package private) java.util.EnumSet<PictureCodingExtensionHeader.Flag> |
flags
|
(package private) PictureCodingExtensionHeader.FrameStructure |
frameStructure
|
(package private) UnsignedIntegerField |
intraDCPrecision
|
Constructor Summary | |
---|---|
PictureCodingExtensionHeader(int[] fCodes,
int intraDCPrecision,
PictureCodingExtensionHeader.FrameStructure frameStructure,
java.util.EnumSet<PictureCodingExtensionHeader.Flag> flags)
Constructs a new instance. |
Method Summary | |
---|---|
int[] |
getFCodes()
Gets the F codes. |
java.util.EnumSet<PictureCodingExtensionHeader.Flag> |
getFlags()
Gets the non-frame-structure-essential flags. |
PictureCodingExtensionHeader.FrameStructure |
getFrameStructure()
Gets the frame structure. |
int |
getIntraDCPrecision()
Gets the intra DC precision. |
void |
setFCodes(int[] newFCodes)
Sets the F codes. |
void |
setFlags(java.util.EnumSet<PictureCodingExtensionHeader.Flag> flags)
Sets the non-frame-structure-essential flags. |
void |
setFrameStructure(PictureCodingExtensionHeader.FrameStructure frameStructure)
Sets the frame structure. |
void |
setIntraDCPrecision(int precision)
Sets the intra DC precision. |
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 |
---|
UnsignedIntegerField[] fCodes
UnsignedIntegerField intraDCPrecision
PictureCodingExtensionHeader.FrameStructure frameStructure
java.util.EnumSet<PictureCodingExtensionHeader.Flag> flags
boolean composite
Constructor Detail |
---|
public PictureCodingExtensionHeader(int[] fCodes, int intraDCPrecision, PictureCodingExtensionHeader.FrameStructure frameStructure, java.util.EnumSet<PictureCodingExtensionHeader.Flag> flags)
fCodes
- The initial F codes. Same constraints as in setFCodes() apply.intraDCPrecision
- The initial intra DC precision. Same constraints as in setIntraDCPrecision() apply.frameStructure
- The initial frame structure.flags
- The initial non-frame-structure-essential flags.Method Detail |
---|
public int[] getFCodes()
public void setFCodes(int[] newFCodes)
newFCodes
- The new codes.public int getIntraDCPrecision()
public void setIntraDCPrecision(int precision)
precision
- The new precision, in bits. Must be in range [8..11].public PictureCodingExtensionHeader.FrameStructure getFrameStructure()
public void setFrameStructure(PictureCodingExtensionHeader.FrameStructure frameStructure)
frameStructure
- The new structure.public java.util.EnumSet<PictureCodingExtensionHeader.Flag> getFlags()
public void setFlags(java.util.EnumSet<PictureCodingExtensionHeader.Flag> flags)
flags
- The new flags.public void writeTo(BitOutputStream stream) throws java.io.IOException
stream
- The stream to write to.
java.io.IOException
- Propagated from the stream write.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |