DeviceInfo
pub struct DeviceInfo
One camera, as reported by enumerate.
This is an owned snapshot. The C copies each entry out of its list
before the list is freed, so a DeviceInfo stays valid
indefinitely and can be handed to crate::Camera::open_device
later.
DeviceInfo — fields
device_type: DeviceType
Camera model.
connection: ConnectionType
How it is attached.
width: u32
Sensor width in pixels.
height: u32
Sensor height in pixels.
vendor_id: Option<u16>
USB vendor identifier, or None off USB.
product_id: Option<u16>
USB product identifier, or None off USB.
serial: String
Serial number.
model: String
Model name, for display.
video_path: String
Platform-specific video node, empty when the device has none.
control_path: String
Platform-specific control node, empty when the device has none.
capabilities: DeviceCapabilities
What this device can do.
DeviceInfo — methods
pub fn pixel_count(&self) -> u64
How many pixels a frame from this device holds.