pwc
index
/usr/local/share/apps/kbtv/pwc.py

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

 
Modules
       
_pwc
new

 
Functions
       
camera_brightness(*args)
camera_brightness(int fd) -> int
 
Get brightness. Returns percentage, or -1 on failure.
camera_brightness_set(*args)
camera_brightness_set(int fd, int brightness) -> int
 
Set brightness, 0 to 100. Returns -1 on failure.
camera_capsize(*args)
camera_capsize(int fd) -> int
 
Get capture size. Returns 0 to 5, or -1 on failure.
camera_capsize_set(*args)
camera_capsize_set(int fd, int capsize) -> int
 
Set capture size, 0 to 5 (SQCIF, QSIF, QCIF, SIF, CIF, VGA). Returns -1 on failure.
camera_color(*args)
camera_color(int fd) -> int
 
Get color (whitebalance). Returns percentage, or -1 on failure.
camera_color_set(*args)
camera_color_set(int fd, int color) -> int
 
Set color (whitebalance), 0 (green) to 100 (max blue & red). Returns -1 on failure.
camera_contrast(*args)
camera_contrast(int fd) -> int
 
Get contrast. Returns percentage, or -1 on failure.
camera_contrast_set(*args)
camera_contrast_set(int fd, int contrast) -> int
 
Set contrast, 0 to 100. Returns -1 on failure.
camera_framerate(*args)
camera_framerate(int fd) -> int
 
Get framerate. Returns 4 to 30, or -1 on failure.
camera_framerate_set(*args)
camera_framerate_set(int fd, int fps) -> int
 
Set framerate, 4 to 30. Returns -1 on failure.
camera_gamma(*args)
camera_gamma(int fd) -> int
 
Get gamma. Returns percentage, or -1 on failure.
camera_gamma_set(*args)
camera_gamma_set(int fd, int gamma) -> int
 
Set gamma, 0 (none) to 100. Returns -1 on failure.
camera_panning(*args)
camera_panning(int fd) -> int
 
Get panning. Returns 0 to 100, or -1 on failure.
camera_panning_set(*args)
camera_panning_set(int fd, int pan) -> int
 
Perform panning, 0 to 100 (50 is center). Returns -1 on failure.
camera_saturation(*args)
camera_saturation(int fd) -> int
 
Get saturation. Returns percentage, or -1 on failure.
camera_saturation_set(*args)
camera_saturation_set(int fd, int saturation) -> int
 
Set saturation, 0 to 100. Returns -1 on failure.
camera_tilting(*args)
camera_tilting(int fd) -> int
 
Get tilting. Returns 0 to 100, or -1 on failure.
camera_tilting_set(*args)
camera_tilting_set(int fd, int tilt) -> int
 
Perform tilting, 0 to 100 (50 is center). Returns -1 on failure.
frame_handler(*args)
frame_handler()
 
Frame handler, for internal use only.
timer_callback(*args)
timer_callback(unsigned int interval, void param) -> unsigned int
 
Timer callback function, for internal use only.
viewer_init(*args)
viewer_init(int fd, int width, int height) -> int
 
Init the hardware and SDL viewer, start capturing frames. Returns 0 on success.
On failure it returns (in order of actual operations) 1 if the ioctl VIDIOCGWIN
failed, 2 if malloc failed, 3 if SDL_Init failed, 4 if SDL_SetVideoMode failed,
5 if SDL_CreateYUVOverlay failed, 6 if SDL_AddTimer failed. fd must be an open
file descriptor to PWCDEV.
viewer_pause(*args)
viewer_pause()
 
Pause video (not capturing).
viewer_quit(*args)
viewer_quit()
 
Quit viewer, shut down SDL, stop capturing, clean up.
viewer_resize(*args)
viewer_resize(int width, int height)
 
Resize the viewer area to width x height pixels.
viewer_start(*args)
viewer_start()
 
Start/unpause video.

 
Data
        MAXPERC = 100
MINPERC = 0
MODULE_AUTHOR = 'Danny Pansters'
MODULE_AUTHOR_EMAIL = 'danny@ricin.com'
MODULE_COPYRIGHT = '(c) 2006-2007, Danny Pansters <danny@ricin.com>\n...06, Nemosoft Unv, Luc Saillard, Raaf (pwc driver)'
MODULE_LICENSE = 'BSD'
PWCDEV = '/dev/video0'
PWC_MAXFPS = 30
PWC_MAXVAL = 65535
PWC_MINFPS = 4
PWC_MINVAL = 0