Class: UVC::ProcessingUnitDescriptor
- Inherits:
-
ClassSpecificVCInterfaceDescriptor
- Object
- ClassSpecificVCInterfaceDescriptor
- UVC::ProcessingUnitDescriptor
- 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.
-
#bmVideoStandards ⇒ Object
readonly
Returns the value of attribute bmVideoStandards.
-
#bSourceID ⇒ Object
readonly
Returns the value of attribute bSourceID.
-
#bUnitID ⇒ Object
readonly
Returns the value of attribute bUnitID.
-
#iProcessing ⇒ Object
readonly
Returns the value of attribute iProcessing.
-
#wMaxMultiplier ⇒ Object
readonly
Returns the value of attribute wMaxMultiplier.
Attributes inherited from ClassSpecificVCInterfaceDescriptor
#bDescriptorSubType, #bDescriptorType, #rest
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, wMaxMultiplier, bControlSize, bmControls, iProcessing, bmVideoStandards) ⇒ ProcessingUnitDescriptor
constructor
A new instance of ProcessingUnitDescriptor.
- #short_inspect ⇒ Object
Methods inherited from ClassSpecificVCInterfaceDescriptor
Constructor Details
#initialize(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, wMaxMultiplier, bControlSize, bmControls, iProcessing, bmVideoStandards) ⇒ ProcessingUnitDescriptor
Returns a new instance of ProcessingUnitDescriptor.
504 505 506 507 508 509 510 511 512 513 |
# File 'lib/uvc.rb', line 504 def initialize(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, wMaxMultiplier, bControlSize, bmControls, iProcessing, bmVideoStandards) super(bDescriptorType, bDescriptorSubType) @bUnitID = bUnitID @bSourceID = bSourceID @wMaxMultiplier = wMaxMultiplier @bControlSize = bControlSize @bmControls = Controls.new(bmControls) @iProcessing = iProcessing @bmVideoStandards = bmVideoStandards end |
Instance Attribute Details
#bControlSize ⇒ Object (readonly)
Returns the value of attribute bControlSize.
493 494 495 |
# File 'lib/uvc.rb', line 493 def bControlSize @bControlSize end |
#bmControls ⇒ Object (readonly)
Returns the value of attribute bmControls.
494 495 496 |
# File 'lib/uvc.rb', line 494 def bmControls @bmControls end |
#bmVideoStandards ⇒ Object (readonly)
Returns the value of attribute bmVideoStandards.
496 497 498 |
# File 'lib/uvc.rb', line 496 def bmVideoStandards @bmVideoStandards end |
#bSourceID ⇒ Object (readonly)
Returns the value of attribute bSourceID.
491 492 493 |
# File 'lib/uvc.rb', line 491 def bSourceID @bSourceID end |
#bUnitID ⇒ Object (readonly)
Returns the value of attribute bUnitID.
490 491 492 |
# File 'lib/uvc.rb', line 490 def bUnitID @bUnitID end |
#iProcessing ⇒ Object (readonly)
Returns the value of attribute iProcessing.
495 496 497 |
# File 'lib/uvc.rb', line 495 def iProcessing @iProcessing end |
#wMaxMultiplier ⇒ Object (readonly)
Returns the value of attribute wMaxMultiplier.
492 493 494 |
# File 'lib/uvc.rb', line 492 def wMaxMultiplier @wMaxMultiplier end |
Class Method Details
.parse(bDescriptorType, bDescriptorSubType, rest) ⇒ Object
498 499 500 501 502 |
# File 'lib/uvc.rb', line 498 def self.parse(bDescriptorType, bDescriptorSubType, rest) bUnitID, bSourceID, wMaxMultiplier, bControlSize, rest = *rest.unpack("ccvca*") bmControls, iProcessing, bmVideoStandards = *rest.unpack("B#{bControlSize * 8}cB8") self.new(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, wMaxMultiplier, bControlSize, bmControls, iProcessing, bmVideoStandards) end |