|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.video.VideoFrame
public final class VideoFrame
VideoFrame contains the video data displayed in a single frame of a Flash movie (.swf).
Each frame of video is displayed whenever display list is updated using the ShowFrame 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.
DefineVideo| Constructor Summary | |
|---|---|
VideoFrame(int uid,
int frame,
byte[] videoData)
Constructs a new VideoFrame object which will display the specified frame of video data in the DefineVideo object that matches the identifier. |
|
VideoFrame(SWFDecoder coder)
Creates and initialises a VideoFrame object using values encoded in the Flash binary format. |
|
VideoFrame(VideoFrame object)
Creates and initialises a VideoFrame object using the values copied from another VideoFrame object. |
|
| Method Summary | |
|---|---|
VideoFrame |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getData()
Get a copy of the encoded video data. |
int |
getFrameNumber()
Get the number of the frame. |
int |
getIdentifier()
Get the identifier of the DefineVideo object where the frame will be displayed. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setData(byte[] frameData)
Sets the encoded video data. |
void |
setFrameNumber(int number)
Sets the number of the frame. |
void |
setIdentifier(int uid)
Sets the identifier of the DefineVideo object where the frame will be displayed. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VideoFrame(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public VideoFrame(int uid,
int frame,
byte[] videoData)
uid - the unique identifier of the DefineVideo object. Must be in
the range 1..65535.frame - the number of the frame. Must be in the range 1..65535.videoData - the encoded video data. For Flash 6 this is encoded in the
H263 format. In Flash 7 H263 and ScreenVideo is supported.public VideoFrame(VideoFrame object)
object - a VideoFrame object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
public void setIdentifier(int uid)
uid - the unique identifier of the DefineVideo object. Must be in
the range 1..65535.public int getFrameNumber()
public void setFrameNumber(int number)
number - the frame number. Must be in the range 1..65535.public byte[] getData()
public void setData(byte[] frameData)
frameData - the encoded video data. Must not be null.public VideoFrame copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||