Allows you to open a webcam or other video capture device as a video stream. More...
Public Member Functions | |
int | getFps () |
Returns the camera's framerate. | |
list | getOptions () |
int | getSizeX () |
Returns the camera's size_x. | |
int | getSizeY () |
Returns the camera's size_y. | |
MovieVideoCursor | open () |
output (ostream out) | |
Outputs the WebcamVideo. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static int | getNumOptions () |
Returns the number of webcam options. | |
static WebcamVideo | getOption (int n) |
Returns the nth webcam option. |
Allows you to open a webcam or other video capture device as a video stream.
static TypeHandle getClassType | ( | ) | [static] |
int getFps | ( | ) |
Returns the camera's framerate.
This is a maximum theoretical: the actual performance will depend on the speed of the hardware.
static int getNumOptions | ( | ) | [static] |
Returns the number of webcam options.
An "option" consists of a device plus a set of configuration parameters. For example, "Creative Webcam Live at 640x480, 30 fps" is an option.
static WebcamVideo getOption | ( | int | n | ) | [static] |
Returns the nth webcam option.
list getOptions | ( | ) |
int getSizeX | ( | ) |
Returns the camera's size_x.
int getSizeY | ( | ) |
Returns the camera's size_y.
MovieVideoCursor open | ( | ) |
output | ( | ostream | out | ) |
Outputs the WebcamVideo.
This function simply writes the name, size and FPS to the output stream.