|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.video.DefineVideo
public final class DefineVideo
The DefineVideo class is used to define a video stream within a Flash file.
Video objects contain a unique identifier and are treated in the same way as shapes, buttons, images, etc. The video data displayed is define using the VideoFrame class. 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. The actual video data is encoded using the VideoFrame class.
| Constructor Summary | |
|---|---|
DefineVideo(DefineVideo object)
Creates and initialises an DefineVideo object using the values copied from another DefineVideo object. |
|
DefineVideo(int uid,
int count,
int frameWidth,
int frameHeight,
Deblocking deblock,
boolean smoothing,
VideoFormat videoCodec)
Creates a DefineVideo object with the specified parameters. |
|
DefineVideo(SWFDecoder coder)
Creates and initialises a DefineVideo object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
DefineVideo |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
VideoFormat |
getCodec()
Get the format used to encode the video data. |
Deblocking |
getDeblocking()
Get the method used to control the Flash Player's deblocking filter, either OFF, ON or USE_VIDEO. |
int |
getFrameCount()
Get the number of frames in the video. |
int |
getHeight()
Get the height of each frame in pixels. |
int |
getIdentifier()
Get the unique identifier assigned to this object. |
int |
getWidth()
Get the width of each frame in pixels. |
boolean |
isSmoothed()
Will the Flash Player will apply smoothing to the video when it is played. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setCodec(VideoFormat format)
Set the format used to encode the video data. |
void |
setDeblocking(Deblocking value)
Sets the method used to control the Flash Player's deblocking filter. |
void |
setFrameCount(int count)
Sets the number of frames in the video. |
void |
setHeight(int size)
Sets the height of each frame in pixels. |
void |
setIdentifier(int uid)
Sets the unique identifier for an object within a given Movie. |
void |
setSmoothed(boolean smoothing)
Sets whether Flash Player's smoothing filter is on or off when the video is played. |
void |
setWidth(int size)
Sets the width of each frame in pixels. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefineVideo(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public DefineVideo(int uid,
int count,
int frameWidth,
int frameHeight,
Deblocking deblock,
boolean smoothing,
VideoFormat videoCodec)
uid - the unique identifier for this object. Must be in the range
1..65535.count - the number of video frames. Must be in the range 0..65535.frameWidth - the width of each frame in pixels. Must be in the range
0..65535.frameHeight - the height of each frame in pixels. Must be in the range
0..65535.deblock - controls whether the Flash Player's deblocking filter is used,
either Off, On or UseVideo to allow the video data to specify
whether the deblocking filter is used.smoothing - turns smoothing on or off to improve the quality of the
displayed image.videoCodec - the format of the video data. Flash 6 supports H263. Support
for Macromedia's ScreenVideo format was added in Flash 7.public DefineVideo(DefineVideo object)
object - a DefineVideo object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
getIdentifier in interface DefineTagpublic void setIdentifier(int uid)
setIdentifier in interface DefineTaguid - a unique identifier for the object. Must be in the range
1..65535.public int getFrameCount()
public void setFrameCount(int count)
count - the number of video frames. Must be in the range 0..65535.public int getWidth()
public void setWidth(int size)
size - the width of the frame. Must be in the range 0..65535.public int getHeight()
public void setHeight(int size)
size - the height of the frame. Must be in the range 0..65535.public Deblocking getDeblocking()
public void setDeblocking(Deblocking value)
value - the deblocking filter control, either OFF, ON or USE_VIDEO to
allow the video data to specify whether the deblocking filter
is used.public boolean isSmoothed()
public void setSmoothed(boolean smoothing)
smoothing - true if smoothing is turned on, false if it is turned off.public VideoFormat getCodec()
public void setCodec(VideoFormat format)
format - the format used encode the video, either VideoFormat.H263,
VideoFormat.SCREEN, VideoFormat.VP6 or VideoFormat.VP6ALPHA.public DefineVideo 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 | |||||||||