class

V4L2::Video

Inherits Reference < Object

Constructors

new(file : Path)

open the device i.e. Path["/dev/video4"]

Source

Class methods

enumerate_loopback_devices
Source

Instance methods

allocate_mmap_buffers(count : Int, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source
buffer
Source
buffer_length
Source
buffers
Source
cleanup_buffers(buffers, length : UInt32)
Source
close
Source
device
Source
device_details
Source
finalize
Source
request_buffers(count : Int, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, memory_type : Memory = Memory::MMAP)
Source
reset_buffer
Source
set_format(format_id : UInt32, width : UInt32, height : UInt32, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source
set_format(rate : V4L2::FrameRate, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source
start_stream(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source
stop_stream(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source
stream(timeout : Time::Span = 2.seconds, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, & : Bytes -> )
Source
streaming?
Source
supported_formats(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Source