org.hfbk.vid.VideoTexture Class Reference

Inheritance diagram for org.hfbk.vid.VideoTexture:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vid.VideoTexture:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VideoTexture (AVStreamingThread streamer)
void render (float dt)
void render ()
void close ()

Public Attributes

AVStreamingThread streamer
long currenttime = -1

Protected Member Functions

void finalize () throws Throwable

Package Attributes

long time

Detailed Description

a movie texture. the underlying streamer advances one frame every time enough time has passed.

Definition at line 13 of file VideoTexture.java.


Constructor & Destructor Documentation

org.hfbk.vid.VideoTexture.VideoTexture ( AVStreamingThread  streamer  ) 

create texture from a movie.

this ensures the movie is ready to play, and costly opening is done.

Parameters:
streamer 

Definition at line 30 of file VideoTexture.java.

References org.hfbk.vid.AVVideoThread.height, org.hfbk.vid.VideoTexture.streamer, org.hfbk.vid.AVStreamingThread.videoThread, and org.hfbk.vid.AVVideoThread.width.


Member Function Documentation

void org.hfbk.vid.VideoTexture.render ( float  dt  ) 

render this texture

Parameters:
dt time since last frame
Returns:
TODO shoud return if there are more frames. render exceed the last one repeats the sequence if possible.

Definition at line 44 of file VideoTexture.java.

References org.hfbk.vid.AVStreamingThread.getFrame(), org.dronus.gl.Texture.height, org.dronus.gl.Texture.setPixels(), org.hfbk.vid.VideoTexture.streamer, and org.dronus.gl.Texture.width.

Referenced by org.hfbk.vis.visnode.VisVideo.renderSelf().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.hfbk.vid.VideoTexture.render (  ) 

default rendering, advances 1/25 second if movie is not synced to audio.

Reimplemented from org.dronus.gl.Texture.

Definition at line 57 of file VideoTexture.java.

void org.hfbk.vid.VideoTexture.close (  ) 

closes any streaming for this VideoTexture.

Definition at line 62 of file VideoTexture.java.

References org.hfbk.vid.AVStreamingThread.running, and org.hfbk.vid.VideoTexture.streamer.

Referenced by org.hfbk.vis.visnode.VisVideo.closeSelf(), and org.hfbk.vid.VideoTexture.finalize().

Here is the caller graph for this function:

void org.hfbk.vid.VideoTexture.finalize (  )  throws Throwable [protected]

remove hardware pixel buffers.

Reimplemented from org.dronus.gl.Texture.

Definition at line 66 of file VideoTexture.java.

References org.hfbk.vid.VideoTexture.close().

Here is the call graph for this function:


Member Data Documentation

AVStreamingThread org.hfbk.vid.VideoTexture.streamer

Definition at line 16 of file VideoTexture.java.

Referenced by org.hfbk.vid.VideoTexture.close(), org.hfbk.vis.visnode.VisVideo.handleEvent(), org.hfbk.vid.VideoTexture.render(), org.hfbk.vis.visnode.VisVideo.renderSelf(), and org.hfbk.vid.VideoTexture.VideoTexture().

long org.hfbk.vid.VideoTexture.time [package]

Definition at line 19 of file VideoTexture.java.

long org.hfbk.vid.VideoTexture.currenttime = -1

Definition at line 20 of file VideoTexture.java.


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:04 2009 for visclient by  doxygen 1.5.1