class

V4L2::Stream(TYPE, FORMAT)

Inherits Reference < Object

Represents a "stream", defined by a V4L2::Buffer::Type and V4L2::Format.

See V4L2::Streams for all supported streams.

Constructors

new(device : Device)

Initializes the stream for the V4L2 device.

Source

Instance methods

buffers

Returns the allocated buffers for the stream. Raises an UninitializedError if the buffers have not been allocated.

Source
crop

Queries the current set crop.

Source
crop=(rect : Rect)

Sets the current crop.

Source
crop_capabilities

Queries the crop capabilities of the stream.

Source
each_format

Enumerates over each format supported by the stream.

Source
format

Returns the current format.

Source
format

Yields a new format and sets the current format.

Source
format=(new_format : FORMAT)

Sets the current format.

Source
malloc_buffers!(count : UInt32, length : UInt32) : self

Requests user malloced buffers of the given count and length for the stream.

Source
mmap_buffers!(count : UInt32) : self

Requests memory-mapped buffers of the given count for the stream.

Source
queue

Returns the buffer queue for the stream. Raises an UninitializedError if the buffer queue has not been initialized.

Source

Nested types