37 return msgs::PixelFormatType::L_INT8;
39 else if (_str ==
"L_INT16")
41 return msgs::PixelFormatType::L_INT16;
43 else if (_str ==
"RGB_INT8")
45 return msgs::PixelFormatType::RGB_INT8;
47 else if (_str ==
"RGBA_INT8")
49 return msgs::PixelFormatType::RGBA_INT8;
51 else if (_str ==
"BGRA_INT8")
53 return msgs::PixelFormatType::BGRA_INT8;
55 else if (_str ==
"RGB_INT16")
57 return msgs::PixelFormatType::RGB_INT16;
59 else if (_str ==
"RGB_INT32")
61 return msgs::PixelFormatType::RGB_INT32;
63 else if (_str ==
"BGR_INT8")
65 return msgs::PixelFormatType::BGR_INT8;
67 else if (_str ==
"BGR_INT16")
69 return msgs::PixelFormatType::BGR_INT16;
71 else if (_str ==
"BGR_INT32")
73 return msgs::PixelFormatType::BGR_INT32;
75 else if (_str ==
"R_FLOAT16")
77 return msgs::PixelFormatType::R_FLOAT16;
79 else if (_str ==
"RGB_FLOAT16")
81 return msgs::PixelFormatType::RGB_FLOAT16;
83 else if (_str ==
"R_FLOAT32")
85 return msgs::PixelFormatType::R_FLOAT32;
87 else if (_str ==
"RGB_FLOAT32")
89 return msgs::PixelFormatType::RGB_FLOAT32;
91 else if (_str ==
"BAYER_RGGB8")
93 return msgs::PixelFormatType::BAYER_RGGB8;
95 else if (_str ==
"BAYER_BGGR8")
97 return msgs::PixelFormatType::BAYER_BGGR8;
99 else if (_str ==
"BAYER_GBRG8")
101 return msgs::PixelFormatType::BAYER_GBRG8;
103 else if (_str ==
"BAYER_GRBG8")
105 return msgs::PixelFormatType::BAYER_GRBG8;
108 return msgs::PixelFormatType::UNKNOWN_PIXEL_FORMAT;
117 case msgs::PixelFormatType::UNKNOWN_PIXEL_FORMAT:
118 return "UNKNOWN_PIXEL_FORMAT";
119 case msgs::PixelFormatType::L_INT8:
121 case msgs::PixelFormatType::L_INT16:
123 case msgs::PixelFormatType::RGB_INT8:
125 case msgs::PixelFormatType::RGBA_INT8:
127 case msgs::PixelFormatType::BGRA_INT8:
129 case msgs::PixelFormatType::RGB_INT16:
131 case msgs::PixelFormatType::RGB_INT32:
133 case msgs::PixelFormatType::BGR_INT8:
135 case msgs::PixelFormatType::BGR_INT16:
137 case msgs::PixelFormatType::BGR_INT32:
139 case msgs::PixelFormatType::R_FLOAT16:
141 case msgs::PixelFormatType::RGB_FLOAT16:
142 return "RGB_FLOAT16";
143 case msgs::PixelFormatType::R_FLOAT32:
145 case msgs::PixelFormatType::RGB_FLOAT32:
146 return "RGB_FLOAT32";
147 case msgs::PixelFormatType::BAYER_RGGB8:
148 return "BAYER_RGGB8";
149 case msgs::PixelFormatType::BAYER_BGGR8:
150 return "BAYER_BGGR8";
151 case msgs::PixelFormatType::BAYER_GBRG8:
152 return "BAYER_GBRG8";
153 case msgs::PixelFormatType::BAYER_GRBG8:
154 return "BAYER_GRBG8";