Interface VideoStreamHandler
- All Known Implementing Classes:
BaseMovieTexture,NRMovieTexture,OGLMovieTexture
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
Modifier and TypeMethodDescriptionvoidvideoStreamDuration(double seconds) Called when the duration of the stream is known.voidvideoStreamFormat(int width, int height) Called when the format is known.voidvideoStreamFrame(NIOBufferImage image) Called when a frame is available for display.voidCalled once before the first frame is sent.voidCalled after the last frame is sent.
-
Method Details
-
videoStreamFrame
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 pixelsheight- - 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.
-