Panda3D
|
A MovieVideo is actually any source that provides a sequence of video frames. More...
#include "movieVideo.h"
Public Member Functions | |
MovieVideo (const string &name="Blank Video") | |
This constructor returns a null video stream --- a stream of plain blue and white frames that last one second each. | |
virtual TypeHandle | force_init_type () |
const Filename & | get_filename () const |
Returns the movie's filename. | |
virtual TypeHandle | get_type () const |
virtual | PT (MovieVideoCursor) open() |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static | PT (MovieVideo) get(const Filename &name) |
Protected Attributes | |
Filename | _filename |
A MovieVideo is actually any source that provides a sequence of video frames.
That could include an AVI file, a digital camera, or an internet TV station.
The difference between a MovieVideo and a MovieVideoCursor is like the difference between a filename and a file handle. The MovieVideo just indicates a particular movie. The MovieVideoCursor is what allows access.
Definition at line 36 of file movieVideo.h.
MovieVideo::MovieVideo | ( | const string & | name = "Blank Video" | ) |
This constructor returns a null video stream --- a stream of plain blue and white frames that last one second each.
To get more interesting video, you need to construct a subclass of this class.
Definition at line 29 of file movieVideo.cxx.
const Filename & MovieVideo::get_filename | ( | ) | const [inline] |
Returns the movie's filename.
A movie is not guaranteed to have a filename, if not, then this function returns a null filename.
Definition at line 23 of file movieVideo.I.