mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
added setting and getting video mode by index
This commit is contained in:
@@ -68,6 +68,14 @@ public class USBCameraCapture implements CameraCapture {
|
||||
System.err.println("Failed to change camera video mode!");
|
||||
}
|
||||
}
|
||||
public void setVideoMode(int index){
|
||||
VideoMode mode = properties.getVideoModes().get(index);
|
||||
setVideoMode(mode);
|
||||
}
|
||||
public int getVideoModeIndex(){
|
||||
return properties.getVideoModes().indexOf(properties.getStaticProperties().mode);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setGain(int gain) {
|
||||
|
||||
Reference in New Issue
Block a user