|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSMovieObject
com.flagstone.transform.FSVideoFrame
public class FSVideoFrame
FSVideoFrame contains the video data displayed in a single frame of a Flash movie.
Attributes | |
---|---|
type | Identifies the data structure when it is encoded. Read-only. |
identifier | The identifier of the FSDefineVideo object that defines the size of the images displayed. |
frameNumber | The number of the frame that the data is for. |
data | The encoded video data. Encoded using either the modified Sorenson H263 or Macromedia's Screen Video formats. |
Each frame of video is displayed whenever display list is updated using the FSShowFrame object - any timing information stored within the video data is ignored. Since the video is updated at the same time as the display list the frame rate of the video may be the same or less than the frame rate of the Flash movie but not higher.
The FSVideoFrame class represents the VideoFrame data structure in the Macromedia Flash (SWF) File Format Specification. It was added in Flash 6 with support for the Sorenson modified H263 format. Support for Macromedia's Screen Video format was added in Flash 7.
Field Summary |
---|
Constructor Summary | |
---|---|
FSVideoFrame(FSCoder coder)
Construct an FSVideoFrame object, initialising it with values decoded from an encoded object. |
|
FSVideoFrame(FSVideoFrame obj)
Constructs an FSVideoFrame object by copying values from an existing object. |
|
FSVideoFrame(int anIdentifier,
int frameNumber,
byte[] data)
Constructs a new FSVideoFrame object which will display the specified frame of video data in the FSDefineVideo object that matches the identifier. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
byte[] |
getData()
Gets the encoded video data. |
int |
getFrameNumber()
Gets the number of the frame. |
int |
getIdentifier()
Get the identifier of the FSDefineVideo object where the frame will be displayed. |
int |
length(FSCoder coder)
|
void |
setData(byte[] data)
Sets the encoded video data. |
void |
setFrameNumber(int number)
Sets the number of the frame. |
void |
setIdentifier(int anIdentifier)
Sets the identifier of the FSDefineVideo object where the frame will be displayed. |
Methods inherited from class com.flagstone.transform.FSMovieObject |
---|
getType |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSVideoFrame(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSVideoFrame(int anIdentifier, int frameNumber, byte[] data)
anIdentifier
- the unique identifier of the FSDefineVideo object.frameNumber
- the number of the frame.data
- the encoded video data. For Flash 6 this is encoded in the
H263 format. In Flash 7 H263 and ScreenVideo is supported.public FSVideoFrame(FSVideoFrame obj)
obj
- an FSVideoFrame object.Method Detail |
---|
public int getIdentifier()
public void setIdentifier(int anIdentifier)
anIdentifier
- the unique identifier of the FSDefineVideo object.public int getFrameNumber()
public void setFrameNumber(int number)
number
- the frame number.public byte[] getData()
public void setData(byte[] data)
data
- the encoded video data.public java.lang.Object clone()
FSTransformObject
clone
in class FSTransformObject
public boolean equals(java.lang.Object anObject)
FSMovieObject
equals
in class FSMovieObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSMovieObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSMovieObject
public void encode(FSCoder coder)
encode
in class FSMovieObject
public void decode(FSCoder coder)
decode
in class FSMovieObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |