| 100 | } |
| 101 | |
| 102 | std::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 | |
| 120 | bool Capture::Mode::operator==( const Mode& other ) const |
| 121 | { |
no outgoing calls