struct V4L2::FrameSizes::Stepwise

Overview

Represents a step-wise frame-size, with a minimum width/height, maximum width/height, and a step value for the width/height.

Defined in:

v4l2/frame_sizes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(min_width : UInt32, max_width : UInt32, step_width : UInt32, min_height : UInt32, max_height : UInt32, step_height : UInt32) #

[View source]
def self.new(stepwise_struct : Linux::V4L2FrmSizeStepWise) #

Initializes the step-wise frame-size from a Linux::V4L2FrmSizeStepWise struct.


[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(min_width _min_width = @min_width, max_width _max_width = @max_width, step_width _step_width = @step_width, min_height _min_height = @min_height, max_height _max_height = @max_height, step_height _step_height = @step_height) #

[View source]
def max_height : UInt32 #

def max_width : UInt32 #

def min_height : UInt32 #

def min_width : UInt32 #

def step_height : UInt32 #

def step_width : UInt32 #

def to_s : String #

Converts the step-wise frame-size to a String.


[View source]