NAME
v4l_grab -- create unit to ..
PROTOTYPE
unitptr v4l_grab(int xdim, int ydim, int videomode, int outformat, int device, unitptr uHost)
ARGUMENTS
- int xdim
- - not documented in source --
- int ydim
- - not documented in source --
- int videomode
- - not documented in source --
- int outformat
- - not documented in source --
- int device
- - not documented in source --
- unitptr uHost
- host unit
RETURN VALUE:
A pointer to the created unit or NULL in the case of an error.
INTERFACE OF CREATED UNIT:
- X_in[]:
- switch input channel between line1 to line 4 (0-3)
- X_out[]:
- grabbed image (R of RGB or Y of YUV or Grey)
- Y_out[]:
- [ G of RGB or U of YUV]
- Z_out[]:
- [B of RGB or V of YUV ]
EXECUTION OF CREATED UNIT:
if no v4l unit is created it opens the device and initializes for grabbing
INITIALIZATION:
DESCRIPTION:
Grabber routine for video4linux. Supports hardware scaling, RGB,YUV,
and grayscale. output mode can be switched between float and byte. in
byte mode greyscale image grabbing is speeded up by mem block copying
between shared mem and nst-output-field. The input chanel can be
switched at any time and the frame grabber can be controlled by using
the ctrl units in this folder.
SEE ALSO:
v4l_pic_ctrl
v4l_tuner_crtl
FILE
nst_v4l.c~