Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.renderer.common.input.movie
Interface VideoStreamHandler


public interface VideoStreamHandler

Defines the interface used by the MovieDecoder to return a video stream to the caller.

Version:
$Revision: 1.4 $
Author:
Guy Carpenter

Method Summary
 void videoStreamDuration(double seconds)
          Called when the duration of the stream is known.
 void videoStreamFormat(int width, int height)
          Called when the format is known.
 void videoStreamFrame(NIOBufferImage image)
          Called when a frame is available for display.
 void videoStreamStart()
          Called once before the first frame is sent.
 void videoStreamStop()
          Called after the last frame is sent.
 

Method Detail

videoStreamFrame

void videoStreamFrame(NIOBufferImage image)
Called when a frame is available for display.

Parameters:
image - - the next image as an RGB format NIOBufferImage

videoStreamFormat

void videoStreamFormat(int width,
                       int height)
Called when the format is known.

Parameters:
width - - horizontal image size in pixels
height - - vertical image size in pixels

videoStreamDuration

void videoStreamDuration(double seconds)
Called when the duration of the stream is known.

Parameters:
seconds - - number of seconds the stream runs for, or -1 if unknown.

videoStreamStart

void videoStreamStart()
Called once before the first frame is sent.


videoStreamStop

void videoStreamStop()
Called after the last frame is sent.


Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium