WPILibC++ 2023.4.3-108-ge5452e3
cs::VideoMode Struct Reference

Video mode. More...

#include <cscore_cpp.h>

Inheritance diagram for cs::VideoMode:
CS_VideoMode

Public Types

enum  PixelFormat {
  kUnknown = CS_PIXFMT_UNKNOWN , kMJPEG = CS_PIXFMT_MJPEG , kYUYV = CS_PIXFMT_YUYV , kRGB565 = CS_PIXFMT_RGB565 ,
  kBGR = CS_PIXFMT_BGR , kGray = CS_PIXFMT_GRAY , kY16 = CS_PIXFMT_Y16 , kUYVY = CS_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: