85 if(strcmp(str,
"B8G8R8X8") == 0) {
86 return Format{Type::B8G8R8X8};
87 }
else if(strcmp(str,
"R8G8B8X8") == 0) {
88 return Format{Type::R8G8B8X8};
89 }
else if(strcmp(str,
"B8G8R8") == 0) {
90 return Format{Type::B8G8R8};
91 }
else if(strcmp(str,
"R8G8B8") == 0) {
92 return Format{Type::R8G8B8};
93 }
else if(strcmp(str,
"R8") == 0) {
95 }
else if(strcmp(str,
"R16") == 0) {
97 }
else if(strcmp(str,
"IR_X8X8X8") == 0) {
98 return Format{Type::IR_X8X8X8};
99 }
else if(strcmp(str,
"YUV_NV21") == 0) {
100 return Format{Type::YUV_NV21};
101 }
else if(strcmp(str,
"YUV_NV12") == 0) {
102 return Format{Type::YUV_NV12};
104 return Format{Type::Unknown};
189 assert(!
"Not implemented");
272 operator Type() const noexcept {
281 return static_cast<int>(in);