|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.renderer.common.input.movie.VideoRenderer
public class VideoRenderer
Implementation of the javax.media.renderer.VideoRenderer interface for use within the MovieTexture node. Captures the video frames and formats them as BufferedImages and delivers them to the VideoStreamHandler.
| Field Summary |
|---|
| Fields inherited from interface javax.media.PlugIn |
|---|
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
| Constructor Summary | |
|---|---|
VideoRenderer(VideoStreamHandler videoStreamHandler)
Create a new VideoRenderer. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the plug-in component and releases the resources it was using. |
void |
enableCallbacks(boolean enabled)
Enable or disable callbacks to the videoStreamHandler. |
java.awt.Rectangle |
getBounds()
Returns the region in the component where the video will be rendered to. |
java.awt.Component |
getComponent()
Returns the awt component. |
java.lang.Object |
getControl(java.lang.String controlType)
Obtain the object that implements the specified Class or Interface The full class or interface name must be used. |
java.lang.Object[] |
getControls()
Obtain the collection of objects that control the object that implements this interface. |
java.lang.String |
getName()
Gets the name of this plug-in as a human-readable string. |
javax.media.Format[] |
getSupportedInputFormats()
Lists the input formats supported by this Renderer. |
void |
open()
Opens the plug-in software or hardware component and acquires the resources that the plug-in needs to operate. |
int |
process(javax.media.Buffer buffer)
Processes the data and renders it to the output device represented by this Renderer. |
void |
reset()
Resets the state of the plug-in. |
void |
setBounds(java.awt.Rectangle rect)
Sets the region in the component where the video is to be rendered to. |
boolean |
setComponent(java.awt.Component comp)
Sets the awt component. |
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the Format of the input data. |
void |
start()
Called when the video stream is about to begin. |
void |
stop()
Called when the video stream is stopping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.PlugIn |
|---|
close, open, reset |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
public VideoRenderer(VideoStreamHandler videoStreamHandler)
videoStreamHandler - - will be called with each completed frame.| Method Detail |
|---|
public void enableCallbacks(boolean enabled)
enabled - - Callbacks will be enabled if true, disabled if false.public java.lang.String getName()
getName in interface javax.media.PlugInpublic java.awt.Component getComponent()
getComponent in interface javax.media.renderer.VideoRendererpublic boolean setComponent(java.awt.Component comp)
setComponent in interface javax.media.renderer.VideoRendererpublic void setBounds(java.awt.Rectangle rect)
setBounds in interface javax.media.renderer.VideoRendererrect - - the rect that defines the region to be rendered to.public java.awt.Rectangle getBounds()
getBounds in interface javax.media.renderer.VideoRendererpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.Rendererpublic javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats in interface javax.media.Rendererpublic int process(javax.media.Buffer buffer)
process in interface javax.media.Rendererpublic void stop()
stop in interface javax.media.Rendererpublic void start()
start in interface javax.media.Rendererpublic java.lang.Object[] getControls()
getControls in interface javax.media.Controlspublic java.lang.Object getControl(java.lang.String controlType)
getControl in interface javax.media.Controls
public void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInjavax.media.ResourceUnavailableException - - If all of the required
resources cannot be acquired.public void close()
close in interface javax.media.PlugInpublic void reset()
reset in interface javax.media.PlugIn
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||