v4l2-0.1.0.3: interface to Video For Linux Two (V4L2)

Portabilityno
Stabilityno
Maintainerclaude@mathr.co.uk
Safe HaskellNone

Graphics.V4L2.Device

Description

 

Synopsis

Documentation

openDeviceSource

Arguments

:: FilePath

device name

-> IO Device 

Open a device. Fails with invalid argument when the device is not a V4L2 device.

closeDeviceSource

Arguments

:: Device

device handle

-> IO () 

Close a device.

withDeviceSource

Arguments

:: FilePath

device name

-> (Device -> IO a)

action

-> IO a 

Perform an action with a device. The device will be close on exit from withDevice, whether by normal termination or by raising an exception. If closing the device raises an exception, then this exception will be raised by withDevice rather than any exception raised by the action.