From 4ed78a84ef1147a59825acb4606c231997bf308a Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 4 Jan 2017 01:05:23 -0800 Subject: [PATCH] Java VideoMode: Provide PixelFormat-taking constructor. --- java/src/edu/wpi/cscore/VideoMode.java | 7 +++++++ 1 file changed, 7 insertions(+) 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