Package edu.wpi.first.cscore
Class VideoMode
java.lang.Object
edu.wpi.first.cscore.VideoMode
public class VideoMode extends Object
Video mode.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoMode.PixelFormat -
Field Summary
Fields Modifier and Type Field Description intfpsFrames per second.intheightHeight in pixels.VideoMode.PixelFormatpixelFormatPixel format.intwidthWidth in pixels. -
Constructor Summary
Constructors Constructor Description VideoMode(int pixelFormat, int width, int height, int fps)Create a new video mode.VideoMode(VideoMode.PixelFormat pixelFormat, int width, int height, int fps)Create a new video mode. -
Method Summary
Modifier and Type Method Description static VideoMode.PixelFormatgetPixelFormatFromInt(int pixelFormat)
-
Field Details
-
pixelFormat
Pixel format. -
width
Width in pixels. -
height
Height in pixels. -
fps
Frames per second.
-
-
Constructor Details
-
VideoMode
Create a new video mode.- Parameters:
pixelFormat- The pixel format enum as an integer.width- The image width in pixels.height- The image height in pixels.fps- The camera's frames per second.
-
VideoMode
Create a new video mode.- Parameters:
pixelFormat- The pixel format.width- The image width in pixels.height- The image height in pixels.fps- The camera's frames per second.
-
-
Method Details