MCPcopy Create free account
hub / github.com/cinder/Cinder / getPixelFormatString

Method getPixelFormatString

src/cinder/Capture.cpp:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102std::string Capture::Mode::getPixelFormatString() const
103{
104 switch( mPixelFormat ) {
105 case PixelFormat::RGB24: return "RGB24";
106 case PixelFormat::BGR24: return "BGR24";
107 case PixelFormat::ARGB32: return "ARGB32";
108 case PixelFormat::BGRA32: return "BGRA32";
109 case PixelFormat::YUV420P: return "YUV420P";
110 case PixelFormat::NV12: return "NV12";
111 case PixelFormat::YUY2: return "YUY2";
112 case PixelFormat::UYVY: return "UYVY";
113 case PixelFormat::I420: return "I420";
114 case PixelFormat::YV12: return "YV12";
115 case PixelFormat::Unknown: return "Unknown";
116 default: return "Unknown";
117 }
118}
119
120bool Capture::Mode::operator==( const Mode& other ) const
121{

Callers 3

drawMethod · 0.80
drawMethod · 0.80
Capture.cppFile · 0.80

Calls

no outgoing calls

Tested by 1

drawMethod · 0.64