Class: UVC::ProcessingUnitDescriptor::Controls

Inherits:
Object
  • Object
show all
Defined in:
lib/uvc.rb

Constant Summary collapse

BITS =

D0: Brightness D1: Contrast D2: Hue D3: Saturation D4: Sharpness D5: Gamma D6: White Balance Temperature D7: White Balance Component D8: Backlight Compensation D9: Gain D10: Power Line Frequency D11: Hue, Auto D12: White Balance Temperature, Auto D13: White Balance Component, Auto D14: Digital Multiplier D15: Digital Multiplier Limit D16: Analog Video Standard D17: Analog Video Lock Status D18: Contrast, Auto D19 – D23: Reserved. Set to zero.

[
	:Brightness,
	:Contrast,
	:Hue,
	:Saturation,
	:Sharpness,
	:Gamma,
	:White_Balance_Temperature,
	:White_Balance_Component,
	:Backlight_Compensation,
	:Gain,
	:Power_Line_Frequency,
	:Hue_Auto,
	:White_Balance_Temperature_Auto,
	:White_Balance_Component_Auto,
	:Digital_Multiplier,
	:Digital_Multiplier_Limit,
	:Analog_Video_Standard,
	:Analog_Video_Lock_Status,
	:Contrast_Auto,
]

Instance Method Summary collapse

Constructor Details

#initialize(bits) ⇒ Controls

Returns a new instance of Controls.



562
563
564
565
566
567
568
# File 'lib/uvc.rb', line 562

def initialize(bits)
	bits = bits.reverse
	@bits = bits
	BITS.each_with_index do |name, index|
		instance_variable_set "@#{name}", bits[index] === "1"
	end
end