class V4L2::Video
- V4L2::Video
- Reference
- Object
Defined in:
v4l2/video.crConstructors
-
.new(file : Path)
open the device i.e.
Class Method Summary
Instance Method Summary
- #allocate_mmap_buffers(count : Int, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
- #buffer : LibV4l2::Buffer
- #buffer_length : UInt32
- #buffers : Array(Pointer(Void)) | Nil
- #cleanup_buffers(buffers, length : UInt32)
- #close
- #device : Path
- #device_details
- #finalize
- #request_buffers(count : Int, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, memory_type : Memory = Memory::MMAP)
- #reset_buffer
- #set_format(format_id : UInt32, width : UInt32, height : UInt32, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
- #set_format(rate : V4L2::FrameRate, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
- #start_stream(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
- #stop_stream(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
- #stream(timeout : Time::Span = 2.seconds, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, & : Bytes -> )
- #streaming? : Bool
- #supported_formats(buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
Constructor Detail
Class Method Detail
Instance Method Detail
def request_buffers(count : Int, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, memory_type : Memory = Memory::MMAP)
#
def set_format(format_id : UInt32, width : UInt32, height : UInt32, buffer_type : BufferType = BufferType::VIDEO_CAPTURE)
#
def stream(timeout : Time::Span = 2.seconds, buffer_type : BufferType = BufferType::VIDEO_CAPTURE, & : Bytes -> )
#