![]() |
![]() |
![]() |
VIPS Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <vips/vips.h> int im_video_v4l1 (VipsImage *im
,const char *device
,int channel
,int brightness
,int colour
,int contrast
,int hue
,int ngrabs
); int im_video_test (VipsImage *im
,int brightness
,int error
);
int im_video_v4l1 (VipsImage *im
,const char *device
,int channel
,int brightness
,int colour
,int contrast
,int hue
,int ngrabs
);
Grab an image from a device using the Video4Linux1 interface. It grabs 24-bit RGB at the maximum size your card allows.
device
should typically be "/dev/video".
channel
selects the channel to acquire: usually 0 is TV, and 1 is
composite video. brightness
, colour
, contrast
and hue
set grab parameters. Each should be in the range (0 - 32768).
32768 is usually the value you want. ngrabs
sets the number of frames the card should average.
Higher values are slower, but typically less noisy (and slightly softer).
This function needs updating to newer video standards.
See also: im_video_test()
.
|
write image here |
|
device to grab from |
|
channel to grab |
|
brightness setting |
|
colour setting |
|
contrast setting |
|
hue setting |
|
average this many frames |
Returns : |
0 on success, -1 on error |
int im_video_test (VipsImage *im
,int brightness
,int error
);
Make a test video image. Set error
to trigger an error.
|
write image here |
|
brightness setting |
|
set this to make the function return an error |
Returns : |
0 on success, -1 on error |