|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.util.StartCode
public class StartCode
Represents a MPEG start code. Start codes are well-defined bit sequences that uniquely identify structures in the bitstream. Their purpose is to aid seeking, as they can be used to find the next desired structure, such as a group of pictures.
Field Summary | |
---|---|
private int |
encodedValue
|
static StartCode |
EXTENSION
An extension not included in those specified in the MPEG-1 standard begins. |
static StartCode |
GROUP_HEADER
The header for a group of pictures begins. |
static StartCode |
PACK
The header for a program stream pack begins. |
static StartCode |
PICTURE
A picture header begins. |
static StartCode |
PS_END
A program stream ends. |
static StartCode |
PS_SYSTEM_HEADER
The header for a program stream system header begins. |
static StartCode |
SEQUENCE_END
A video sequence ends. |
static StartCode |
SEQUENCE_ERROR
An uncorrectable error has been detected. |
static StartCode |
SEQUENCE_HEADER
The header of a video sequence begins. |
static StartCode |
USER_DATA
User-defined data begins. |
Constructor Summary | |
---|---|
private |
StartCode(int encodedValue)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object a)
|
int |
hashCode()
|
static StartCode |
slice(int verticalPosition)
A slice header begins. |
void |
writeTo(BitOutputStream stream)
Writes the header 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 StartCode PICTURE
public static final StartCode USER_DATA
public static final StartCode SEQUENCE_HEADER
public static final StartCode SEQUENCE_ERROR
public static final StartCode EXTENSION
public static final StartCode SEQUENCE_END
public static final StartCode GROUP_HEADER
public static final StartCode PS_END
public static final StartCode PACK
public static final StartCode PS_SYSTEM_HEADER
private int encodedValue
Constructor Detail |
---|
private StartCode(int encodedValue)
Method Detail |
---|
public static StartCode slice(int verticalPosition)
verticalPosition
- The vertical position for the slice's start code.
public 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 |