Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions

# WebcamVideo Class Reference

Allows you to open a webcam or other video capture device as a video stream. More...

List of all members.

## 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.

## Detailed Description

Allows you to open a webcam or other video capture device as a video stream.

## Member Function Documentation

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.

All Classes Namespaces Functions Variables Enumerations Enumerator Properties