class V4L2::Stream(TYPE, FORMAT)
- V4L2::Stream(TYPE, FORMAT)
- Reference
- Object
Overview
Represents a "stream", defined by a V4L2::Buffer::Type and V4L2::Format.
See V4L2::Streams for all supported streams.
Direct Known Subclasses
- V4L2::Streams::MetaCapture
- V4L2::Streams::MetaOutput
- V4L2::Streams::SDRCapture
- V4L2::Streams::SDROutput
- V4L2::Streams::SlicedVBICapture
- V4L2::Streams::SlicedVBIOutput
- V4L2::Streams::VBICapture
- V4L2::Streams::VBIOutput
- V4L2::Streams::VideoCapture
- V4L2::Streams::VideoCaptureMPlane
- V4L2::Streams::VideoOutput
- V4L2::Streams::VideoOutputMPlane
- V4L2::Streams::VideoOutputOverlay
- V4L2::Streams::VideoOverlay
Defined in:
v4l2/stream.crConstructors
-
.new(device : Device)
Initializes the stream for the V4L2 device.
Instance Method Summary
-
#buffers : Array(AllocatedBuffer)
Returns the allocated buffers for the stream.
-
#crop : Rect
Queries the current set crop.
-
#crop=(rect : Rect)
Sets the current crop.
-
#crop_capabilities : CropCapability
Queries the crop capabilities of the stream.
-
#each_format(&block : FmtDesc -> )
Enumerates over each format supported by the stream.
-
#format : FORMAT
Returns the current format.
-
#format(&block : FORMAT -> )
Yields a new format and sets the current format.
-
#format=(new_format : FORMAT)
Sets the current format.
-
#malloc_buffers!(count : UInt32, length : UInt32) : self
Requests user malloced buffers of the given count and length for the stream.
-
#mmap_buffers!(count : UInt32) : self
Requests memory-mapped buffers of the given count for the stream.
-
#queue : BufferQueue
Returns the buffer queue for the stream.
Constructor Detail
Instance Method Detail
Returns the allocated buffers for the stream. Raises an UninitializedError if the buffers have not been allocated.
Enumerates over each format supported by the stream.
Requests user malloced buffers of the given count and length for the stream.
Requests memory-mapped buffers of the given count for the stream.
Returns the buffer queue for the stream. Raises an UninitializedError if the buffer queue has not been initialized.