8#ifndef META_OCEAN_SYSTEM_USB_VIDEO_VC_DESCRIPTOR_H
9#define META_OCEAN_SYSTEM_USB_VIDEO_VC_DESCRIPTOR_H
243 std::string
toString(libusb_device_handle* usbDeviceHandle =
nullptr)
const;
393 std::string
toString(libusb_device_handle* usbDeviceHandle =
nullptr)
const;
517 std::string
toString(libusb_device_handle* usbDeviceHandle =
nullptr)
const;
602 std::string
toString(libusb_device_handle* usbDeviceHandle =
nullptr)
const;
This class implements the base class for all interface descriptors.
Definition system/usb/Descriptor.h:29
This class implements the base class for all video control descriptors.
Definition VCDescriptor.h:33
VideoControlInterfaceTypes
Definition of individual video control interfaces types.
Definition VCDescriptor.h:41
@ VC_HEADER
Video interface header descriptor.
Definition VCDescriptor.h:45
@ VC_PROCESSING_UNIT
This descriptor describes the processing unit that processes the video stream data that is delivered ...
Definition VCDescriptor.h:53
@ VC_SELECTOR_UNIT
This descriptor describes the selector unit that is connected to the processing unit....
Definition VCDescriptor.h:51
@ VC_DESCRIPTOR_UNDEFINED
Undefined descriptor.
Definition VCDescriptor.h:43
@ VC_EXTENSION_UNIT
Extension unit descriptor.
Definition VCDescriptor.h:55
@ VC_OUTPUT_TERMINAL
This descriptor describes the output terminal that represents the USB pipe to the host.
Definition VCDescriptor.h:49
@ VC_INPUT_TERMINAL
This descriptor describes the input terminal that represents a camera or other video source.
Definition VCDescriptor.h:47
uint8_t bUnitID_
A non-zero constant that uniquely identifies the Unit within the video function. This value is used i...
Definition VCDescriptor.h:624
uint8_t bLength_
Size of this descriptor, in bytes: 24+p+n.
Definition VCDescriptor.h:613
uint8_t iExtension_
Index of a string descriptor that describes this extension unit.
Definition VCDescriptor.h:645
uint8_t bNumControls_
Number of controls in this extension unit.
Definition VCDescriptor.h:630
uint8_t bNrInPins_
Number of Input Pins of this Unit: p.
Definition VCDescriptor.h:633
bool isValid() const
Returns whether this object holds valid descriptor information.
std::vector< uint8_t > bmControls_
A bit set to 1 indicates that the mentioned Control is supported: D(n*8-1)..0: Vendor-specific.
Definition VCDescriptor.h:642
uint8_t guidExtensionCode_[16]
Vendor-specific code identifying the Extension Unit (GUID).
Definition VCDescriptor.h:627
std::string toString(libusb_device_handle *usbDeviceHandle=nullptr) const
Returns the content of this descriptor as string.
uint8_t bControlSize_
Size of the bmControls field, in bytes: n.
Definition VCDescriptor.h:639
VCExtensionUnitDescriptor()=default
Default constructor creating an invalid descriptor.
friend class Descriptor
Definition VCDescriptor.h:581
uint8_t bDescriptorSubtype_
VC_EXTENSION_UNIT descriptor subtype.
Definition VCDescriptor.h:619
VCExtensionUnitDescriptor(const void *buffer, const size_t size)
Creates a new extension unit descriptor from memory.
std::vector< uint8_t > baSourceID_
IDs of the Unit or Terminal to which the Input Pins of this Extension Unit is connected.
Definition VCDescriptor.h:636
uint8_t bDescriptorType_
CS_INTERFACE descriptor type.
Definition VCDescriptor.h:616
VCProcessingUnitDescriptor()=default
Default constructor creating an invalid descriptor.
uint8_t bLength_
Size of this descriptor, in bytes: 10+n.
Definition VCDescriptor.h:412
bool isControlSupported(const ControlSelector controlSelector) const
Returns whether this input terminal supports a specified control.
friend class Descriptor
Definition VCDescriptor.h:344
uint8_t iProcessing_
Definition VCDescriptor.h:462
VCProcessingUnitDescriptor(const void *buffer, const size_t size)
Creates a new processing unit descriptor from memory.
uint8_t bDescriptorType_
CS_INTERFACE descriptor type.
Definition VCDescriptor.h:415
uint8_t bSourceID_
ID of the Unit or Terminal to which this Unit is connected.
Definition VCDescriptor.h:426
uint16_t wMaxMultiplier_
If the Digital Multiplier control is supported, this field indicates the maximum digital magnificatio...
Definition VCDescriptor.h:432
bool isValid() const
Returns whether this object holds valid descriptor information.
uint8_t bControlSize_
Size of the bmControls field, in bytes: n.
Definition VCDescriptor.h:435
uint8_t bUnitID_
A non-zero constant that uniquely identifies the Unit within the video function. This value is used i...
Definition VCDescriptor.h:423
uint8_t bDescriptorSubtype_
VC_PROCESSING_UNIT descriptor subtype.
Definition VCDescriptor.h:418
std::string toString(libusb_device_handle *usbDeviceHandle=nullptr) const
Returns the content of this descriptor as string.
ControlSelector
Definition of Processing Unit Control Selectors.
Definition VCDescriptor.h:352
@ PU_BACKLIGHT_COMPENSATION_CONTROL
Definition VCDescriptor.h:354
@ PU_DIGITAL_MULTIPLIER_CONTROL
Definition VCDescriptor.h:367
@ PU_GAIN_CONTROL
Definition VCDescriptor.h:357
@ PU_WHITE_BALANCE_COMPONENT_CONTROL
Definition VCDescriptor.h:365
@ PU_HUE_AUTO_CONTROL
Definition VCDescriptor.h:369
@ PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL
Definition VCDescriptor.h:364
@ PU_WHITE_BALANCE_COMPONENT_AUTO_CONTROL
Definition VCDescriptor.h:366
@ PU_POWER_LINE_FREQUENCY_CONTROL
Definition VCDescriptor.h:358
@ PU_HUE_CONTROL
Definition VCDescriptor.h:359
@ PU_WHITE_BALANCE_TEMPERATURE_CONTROL
Definition VCDescriptor.h:363
@ PU_CONTROL_UNDEFINED
Definition VCDescriptor.h:353
@ PU_ANALOG_VIDEO_STANDARD_CONTROL
Definition VCDescriptor.h:370
@ PU_GAMMA_CONTROL
Definition VCDescriptor.h:362
@ PU_SATURATION_CONTROL
Definition VCDescriptor.h:360
@ PU_ANALOG_LOCK_STATUS_CONTROL
Definition VCDescriptor.h:371
@ PU_SHARPNESS_CONTROL
Definition VCDescriptor.h:361
@ PU_DIGITAL_MULTIPLIER_LIMIT_CONTROL
Definition VCDescriptor.h:368
@ PU_CONTRAST_CONTROL
Definition VCDescriptor.h:356
@ PU_BRIGHTNESS_CONTROL
Definition VCDescriptor.h:355
std::vector< uint8_t > bmControls_
A bit set to 1 indicates that the mentioned Control is supported for the video stream.
Definition VCDescriptor.h:459
uint8_t bmVideoStandards_
A bitmap of all analog video standards supported by the Processing Unit.
Definition VCDescriptor.h:474
uint8_t bDescriptorSubtype_
VC_SELECTOR_UNIT descriptor subtype.
Definition VCDescriptor.h:534
bool isValid() const
Returns whether this object holds valid descriptor information.
std::string toString(libusb_device_handle *usbDeviceHandle=nullptr) const
Returns the content of this descriptor as string.
uint8_t bUnitID_
A non-zero constant that uniquely identifies the Unit within the video function. This value is used i...
Definition VCDescriptor.h:539
uint8_t bDescriptorType_
Constant CS_INTERFACE descriptor type.
Definition VCDescriptor.h:531
uint8_t bNrInPins_
Number of Input Pins of this Unit: p.
Definition VCDescriptor.h:542
friend class Descriptor
Definition VCDescriptor.h:496
VCSelectorUnitDescriptor(const void *buffer, const size_t size)
Creates a new selector unit descriptor from memory.
uint8_t iSelector_
Index of a string descriptor, describing the Selector Unit.
Definition VCDescriptor.h:548
uint8_t bLength_
Size of this descriptor, in bytes: 6+p.
Definition VCDescriptor.h:528
std::vector< uint8_t > baSourceID_
ID of the Unit or Terminal to which the Input Pins of this Selector Unit is connected.
Definition VCDescriptor.h:545
VCSelectorUnitDescriptor()=default
Default constructor creating an invalid descriptor.
Namespace of the System library USB Video.
Definition VCDescriptor.h:25
Namespace of the System library USB.
Definition system/usb/android/Android.h:20
Namespace of the System library.
Definition system/Memory.h:19
The namespace covering the entire Ocean framework.
Definition Accessor.h:15