WPILibC++ 2024.3.2
cs::VideoMode Struct Reference

Video mode. More...

#include <cscore_cpp.h>

Inheritance diagram for cs::VideoMode:
CS_VideoMode

Public Types

enum  PixelFormat {
  kUnknown = WPI_PIXFMT_UNKNOWN , kMJPEG = WPI_PIXFMT_MJPEG , kYUYV = WPI_PIXFMT_YUYV , kRGB565 = WPI_PIXFMT_RGB565 ,
  kBGR = WPI_PIXFMT_BGR , kGray = WPI_PIXFMT_GRAY , kY16 = WPI_PIXFMT_Y16 , kUYVY = WPI_PIXFMT_UYVY
}
 

Public Member Functions

 VideoMode ()
 
 VideoMode (PixelFormat pixelFormat_, int width_, int height_, int fps_)
 
 operator bool () const
 
bool operator== (const VideoMode &other) const
 
bool CompareWithoutFps (const VideoMode &other) const
 

Additional Inherited Members

- Public Attributes inherited from CS_VideoMode
int pixelFormat
 
int width
 
int height
 
int fps
 

Detailed Description

Video mode.

Member Enumeration Documentation

◆ PixelFormat

Enumerator
kUnknown 
kMJPEG 
kYUYV 
kRGB565 
kBGR 
kGray 
kY16 
kUYVY 

Constructor & Destructor Documentation

◆ VideoMode() [1/2]

cs::VideoMode::VideoMode ( )
inline

◆ VideoMode() [2/2]

cs::VideoMode::VideoMode ( PixelFormat  pixelFormat_,
int  width_,
int  height_,
int  fps_ 
)
inline

Member Function Documentation

◆ CompareWithoutFps()

bool cs::VideoMode::CompareWithoutFps ( const VideoMode other) const
inline

◆ operator bool()

cs::VideoMode::operator bool ( ) const
inlineexplicit

◆ operator==()

bool cs::VideoMode::operator== ( const VideoMode other) const
inline

The documentation for this struct was generated from the following file: