|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSVideoObject
com.flagstone.transform.FSVideoData
public final class FSVideoData
The FSVideoData class is used to store the data for a single video frame.
Attributes | |
---|---|
timestamp | The time in milliseconds at which the sound will be played. The timestamp is used exclusively for determining when sound or video will be played. Any internal timing information in the audio or video data is ignored. |
codec | Identifies the format of the video data. FSVideo.H263 represents data encoded using the Sorenson modified H263 format. |
frameType | The type of frame being displayed, either FSVideo.KeyFrame, FSVideo.Frame or FSVideo.Optional. |
data | The encoded video data. |
Field Summary |
---|
Fields inherited from class com.flagstone.transform.FSVideoObject |
---|
AudioData, length, MetaData, timestamp, type, VideoData |
Constructor Summary | |
---|---|
FSVideoData(int timestamp,
int format,
int type,
byte[] data)
Constructs a new FSVideoData object specifying the time which the video should be displayed, the video data and the format used to encode it and the type of frame that the video represents - either a key frame, regular frame or an optional frame which can be discarded (H263 format only). |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
|
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
boolean |
equals(java.lang.Object anObject)
|
int |
getCodec()
Gets the scheme used to encode the video data, either FSVideo.H263 for data that was encoded using the modified Sorenson H263 format or FSVideo.ScreenVideo for video that was encoded using Macromedia's ScreenVideo format. |
byte[] |
getData()
Get the encoded video data. |
int |
getFrameType()
Gets the type of frame that will be displayed, either FSVideo.KeyFrame, FSVideo.Frame or FSVideo.Optional. |
void |
setCodec(int format)
Sets the format used to encode the video data, either FSVideo.H263 for data that was encoded using the modified Sorenson H263 format or FSVideo.ScreenVideo for video that was encoded using Macromedia's ScreenVideo format. |
void |
setData(byte[] data)
Sets the encoded video data for the frame. |
void |
setFrameType(int type)
Sets the type of frame type indicating whether it is a key frame (FSVideo.KeyFrame), a normal frame (FSVideo.Frame) displayed between key frames other whether display of the frame is optional ( FSVideo.Optional). |
Methods inherited from class com.flagstone.transform.FSVideoObject |
---|
getTimestamp, getType, name, setTimestamp |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSVideoData(int timestamp, int format, int type, byte[] data)
timestamp
- the time in milliseconds at which the data should be played.format
- the format used to encode the video either FSVideo.H263 or
FSVideo.ScreenVideo.type
- the type of frame being displayed, either FSVideo.KeyFrame,
FSVideo.Frame or FSVideo.Optional.data
- an array of bytes containing the video encoded using the
format indicated in the codec attribute, either FSVideo.H263
or FSVideo.ScreenVideo.Method Detail |
---|
public int getCodec()
public void setCodec(int format)
format
- the format used to encode the video either FSVideo.H263 or
FSVideo.ScreenVideo.public int getFrameType()
public void setFrameType(int type)
type
- the type of frame being displayed, either FSVideo.KeyFrame,
FSVideo.Frame or FSVideo.Optional.public byte[] getData()
public void setData(byte[] data)
data
- an array of bytes containing the video encoded using the
format indicated in the codec attribute, either FSVideo.H263
or FSVideo.ScreenVideo.public java.lang.Object clone()
FSVideoObject
clone
in class FSVideoObject
public boolean equals(java.lang.Object anObject)
equals
in class FSVideoObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
appendDescription
in class FSVideoObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |