V4L2::Frame
Inherits Indexable < Enumerable < Iterable < Reference < Object
Represents an individual video frame.
Constructors
new(buffer : Buffer, data : Slice(UInt8))
Initializes the video frame. The buffer represents the buffer metadata and the slice represents where the data was read into.
new(buffer : Buffer, allocated_buffer : AllocatedBuffer)
Initializes the video frame, with the V4L2::Buffer, containing the buffer metadata, and the V4L2::AllocatedBuffer, containing the read data.