Package edu.wpi.first.cscore
Class VideoMode
- java.lang.Object
-
- edu.wpi.first.cscore.VideoMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoMode.PixelFormat
-
Field Summary
Fields Modifier and Type Field Description int
fps
Frames per second.int
height
Height in pixels.VideoMode.PixelFormat
pixelFormat
Pixel format.int
width
Width 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VideoMode.PixelFormat
getPixelFormatFromInt(int pixelFormat)
-
-
-
Field Detail
-
pixelFormat
public VideoMode.PixelFormat pixelFormat
Pixel format.
-
width
public int width
Width in pixels.
-
height
public int height
Height in pixels.
-
fps
public int fps
Frames per second.
-
-
Constructor Detail
-
VideoMode
public VideoMode(int pixelFormat, int width, int height, int fps)
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
public VideoMode(VideoMode.PixelFormat pixelFormat, int width, int height, int fps)
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 Detail
-
getPixelFormatFromInt
public static VideoMode.PixelFormat getPixelFormatFromInt(int pixelFormat)
-
-