# Module `video` - V4L(2) frame-grabber interface

V4L(2) frame-grabber interface.

This library allows an application to open a V4L(2) device and interact with it. This currently only supports frame-grabbing from devices.

To use this library:

    #INCLUDE "video.module"

## Index

- Channel type `CT.VIDEO` - Channel-type used for communicating with a video-server process
- Protocol `P.VIDEO.REQ` - Protocol used for communicating with a video-server process
- Protocol `P.VIDEO.RESP` - Protocol used for communicating with a video-server process
- Record `VIDEO.FRAMEINFO` - Generic video frame information/settings
- Record `VIDEO.IDENTITY` - Generic video device identity
- Constant `VIDEO.IDENTITY.NAMEMAX` - Maximum length of a video identity
- Record `VIDEO.INPUT` - Generic video input information
- Constant `VIDEO.INPUT.NAMEMAX` - Maximum length of a input name
- Record `VIDEO.PICTURE` - Generic video picture information/settings
- Process `video.server` - This process implements a video server for a particular V4L device

## Declarations

### `video.occ`:61Process `video.server`

`PROC video.server (CT.VIDEO? vsvr, VAL []BYTE device)`

This process implements a video server for a particular V4L device. Once initialised, this will output either 'ok' or 'error' to the client.

### `video.inc`:42Constant `VIDEO.IDENTITY.NAMEMAX`

`VAL INT VIDEO.IDENTITY.NAMEMAX`

Maximum length of a video identity.

### `video.inc`:45Record `VIDEO.IDENTITY`

`DATA TYPE VIDEO.IDENTITY`

Generic video device identity

### `video.inc`:54Constant `VIDEO.INPUT.NAMEMAX`

`VAL INT VIDEO.INPUT.NAMEMAX`

Maximum length of a input name.

### `video.inc`:57Record `VIDEO.INPUT`

`DATA TYPE VIDEO.INPUT`

Generic video input information.

### `video.inc`:73Record `VIDEO.PICTURE`

`DATA TYPE VIDEO.PICTURE`

Generic video picture information/settings.

### `video.inc`:84Record `VIDEO.FRAMEINFO`

`DATA TYPE VIDEO.FRAMEINFO`

Generic video frame information/settings.

### `video.inc`:127Protocol `P.VIDEO.REQ`

`PROTOCOL P.VIDEO.REQ`

Protocol used for communicating with a video-server process.

### `video.inc`:144Protocol `P.VIDEO.RESP`

`PROTOCOL P.VIDEO.RESP`

Protocol used for communicating with a video-server process.

### `video.inc`:159Channel type `CT.VIDEO`

`REC CHAN TYPE CT.VIDEO`

Channel-type used for communicating with a video-server process.