mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Revamp API again and start implementing C and Java wrapper shells.
This commit is contained in:
21
java/src/edu/wpi/cameraserver/USBCameraInfo.java
Normal file
21
java/src/edu/wpi/cameraserver/USBCameraInfo.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package edu.wpi.cameraserver;
|
||||
|
||||
/// USB camera information
|
||||
public class USBCameraInfo {
|
||||
public USBCameraInfo(int dev, String path, String name, int channels) {
|
||||
this.dev = dev;
|
||||
this.path = path;
|
||||
this.name = name;
|
||||
this.channels = channels;
|
||||
}
|
||||
|
||||
/// Device number (e.g. N in '/dev/videoN' on Linux)
|
||||
public int dev;
|
||||
/// Path to device if available (e.g. '/dev/video0' on Linux)
|
||||
public String path;
|
||||
/// Vendor/model name of the camera as provided by the USB driver
|
||||
public String name;
|
||||
/// Number of channels the camera provides (usually 1, but some cameras such
|
||||
/// as stereo or depth cameras may provide multiple channels).
|
||||
public int channels;
|
||||
}
|
||||
Reference in New Issue
Block a user