Class: UVC::CameraTerminalDescriptor
- Inherits:
-
InputTerminalDescriptor
- Object
- ClassSpecificVCInterfaceDescriptor
- InputTerminalDescriptor
- UVC::CameraTerminalDescriptor
- Defined in:
- lib/uvc.rb
Defined Under Namespace
Classes: Controls
Instance Attribute Summary collapse
-
#bControlSize ⇒ Object
readonly
Returns the value of attribute bControlSize.
-
#bmControls ⇒ Object
readonly
Returns the value of attribute bmControls.
-
#wObjectiveFocalLengthMax ⇒ Object
readonly
Returns the value of attribute wObjectiveFocalLengthMax.
-
#wObjectiveFocalLengthMin ⇒ Object
readonly
Returns the value of attribute wObjectiveFocalLengthMin.
-
#wOcularFocalLength ⇒ Object
readonly
Returns the value of attribute wOcularFocalLength.
Attributes inherited from InputTerminalDescriptor
#bAssocTerminal, #bTerminalID, #iTerminal, #wTerminalType
Attributes inherited from ClassSpecificVCInterfaceDescriptor
#bDescriptorSubType, #bDescriptorType, #rest
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, wObjectiveFocalLengthMin, wObjectiveFocalLengthMax, wOcularFocalLength, bControlSize, bmControls) ⇒ CameraTerminalDescriptor
constructor
A new instance of CameraTerminalDescriptor.
- #short_inspect ⇒ Object
Methods inherited from InputTerminalDescriptor
Methods inherited from ClassSpecificVCInterfaceDescriptor
Constructor Details
#initialize(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, wObjectiveFocalLengthMin, wObjectiveFocalLengthMax, wOcularFocalLength, bControlSize, bmControls) ⇒ CameraTerminalDescriptor
Returns a new instance of CameraTerminalDescriptor.
384 385 386 387 388 389 390 391 |
# File 'lib/uvc.rb', line 384 def initialize(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, wObjectiveFocalLengthMin, wObjectiveFocalLengthMax, wOcularFocalLength, bControlSize, bmControls) super(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal) @wObjectiveFocalLengthMin = wObjectiveFocalLengthMin @wObjectiveFocalLengthMax = wObjectiveFocalLengthMax @wOcularFocalLength = wOcularFocalLength @bControlSize = bControlSize @bmControls = Controls.new(bmControls) end |
Instance Attribute Details
#bControlSize ⇒ Object (readonly)
Returns the value of attribute bControlSize.
376 377 378 |
# File 'lib/uvc.rb', line 376 def bControlSize @bControlSize end |
#bmControls ⇒ Object (readonly)
Returns the value of attribute bmControls.
377 378 379 |
# File 'lib/uvc.rb', line 377 def bmControls @bmControls end |
#wObjectiveFocalLengthMax ⇒ Object (readonly)
Returns the value of attribute wObjectiveFocalLengthMax.
374 375 376 |
# File 'lib/uvc.rb', line 374 def wObjectiveFocalLengthMax @wObjectiveFocalLengthMax end |
#wObjectiveFocalLengthMin ⇒ Object (readonly)
Returns the value of attribute wObjectiveFocalLengthMin.
373 374 375 |
# File 'lib/uvc.rb', line 373 def wObjectiveFocalLengthMin @wObjectiveFocalLengthMin end |
#wOcularFocalLength ⇒ Object (readonly)
Returns the value of attribute wOcularFocalLength.
375 376 377 |
# File 'lib/uvc.rb', line 375 def wOcularFocalLength @wOcularFocalLength end |
Class Method Details
.parse(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, rest) ⇒ Object
379 380 381 382 |
# File 'lib/uvc.rb', line 379 def self.parse(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, rest) wObjectiveFocalLengthMin, wObjectiveFocalLengthMax, wOcularFocalLength, bControlSize, bmControls = *rest.unpack("vvvcB24") self.new(bDescriptorType, bDescriptorSubType, bTerminalID, wTerminalType, bAssocTerminal, iTerminal, wObjectiveFocalLengthMin, wObjectiveFocalLengthMax, wOcularFocalLength, bControlSize, bmControls) end |