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

Portabilityno
Stabilityno
Maintainerclaude@mathr.co.uk
Safe HaskellNone

Graphics.V4L2.Format

Description

 

Synopsis

Documentation

class Format f whereSource

Buffer formats.

Methods

formatBufferType :: f -> Direction -> BufferTypeSource

Corresponding buffer type.

getFormat :: Device -> Direction -> IO fSource

Query the format.

setFormat :: Device -> Direction -> f -> IO fSource

Select the format.

tryFormat :: Device -> Direction -> f -> IO fSource

Test the format.

Instances

queryFormats :: Device -> BufferType -> IO (Map FormatID FormatDescription)Source

Enumerate supported buffer formats.

Exceptions:

  • InvalidArgument - buffer type not supported or index out of range

queryFrameSizes :: Device -> PixelFormat -> IO FrameSizesSource

Enumerate supported frame sizes.