class

V4cr::Format

Inherits Reference < Object

Represents a pixel format supported by a V4L2 device

Constructors

new(index : UInt32, description : String, pixelformat : UInt32, flags : UInt32, width : UInt32, height : UInt32, bytesperline : UInt32, sizeimage : UInt32)
Source
new(index : UInt32, description : String, pixelformat : UInt32, flags : UInt32)
Source

Instance methods

bytesperline
Source
compressed?

Check if this is a compressed format

Source
description
Source
emulated?

Check if this is an emulated format (converted by libv4l2)

Source
flags
Source
format_name

Get format name from pixel format constant

Source
fourcc

Get the four-character code (fourcc) as a string

Source
height
Source
index
Source
pixelformat
Source
set_dimensions(width : UInt32, height : UInt32)

Set dimensions and calculate buffer parameters

Source
sizeimage
Source
to_s(io)
Source
width
Source