diff --git a/java/src/edu/wpi/cscore/VideoMode.java b/java/src/edu/wpi/cscore/VideoMode.java index 431915043d..eef7101a00 100644 --- a/java/src/edu/wpi/cscore/VideoMode.java +++ b/java/src/edu/wpi/cscore/VideoMode.java @@ -34,6 +34,13 @@ public class VideoMode { this.fps = fps; } + public VideoMode(PixelFormat pixelFormat, int width, int height, int fps) { + this.pixelFormat = pixelFormat; + this.width = width; + this.height = height; + this.fps = fps; + } + /// Pixel format public PixelFormat pixelFormat; /// Width in pixels