IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
peak_common_pixel_format_info.ipp
Go to the documentation of this file.
1
12#pragma once
13
14
15namespace peak
16{
17namespace common
18{
19
20inline PixelFormatInfo::PixelFormatInfo(const std::string& name)
21{
22 static const std::unordered_map<std::string, PixelFormat> map = {
23 { detail::PixelFormatInfo<PixelFormat::BayerGR8>::Name(), PixelFormat::BayerGR8 },
24 { detail::PixelFormatInfo<PixelFormat::BayerGR10>::Name(), PixelFormat::BayerGR10 },
25 { detail::PixelFormatInfo<PixelFormat::BayerGR12>::Name(), PixelFormat::BayerGR12 },
26 { detail::PixelFormatInfo<PixelFormat::BayerRG8>::Name(), PixelFormat::BayerRG8 },
27 { detail::PixelFormatInfo<PixelFormat::BayerRG10>::Name(), PixelFormat::BayerRG10 },
28 { detail::PixelFormatInfo<PixelFormat::BayerRG12>::Name(), PixelFormat::BayerRG12 },
29 { detail::PixelFormatInfo<PixelFormat::BayerGB8>::Name(), PixelFormat::BayerGB8 },
30 { detail::PixelFormatInfo<PixelFormat::BayerGB10>::Name(), PixelFormat::BayerGB10 },
31 { detail::PixelFormatInfo<PixelFormat::BayerGB12>::Name(), PixelFormat::BayerGB12 },
32 { detail::PixelFormatInfo<PixelFormat::BayerBG8>::Name(), PixelFormat::BayerBG8 },
33 { detail::PixelFormatInfo<PixelFormat::BayerBG10>::Name(), PixelFormat::BayerBG10 },
34 { detail::PixelFormatInfo<PixelFormat::BayerBG12>::Name(), PixelFormat::BayerBG12 },
35 { detail::PixelFormatInfo<PixelFormat::Mono8>::Name(), PixelFormat::Mono8 },
36 { detail::PixelFormatInfo<PixelFormat::Mono10>::Name(), PixelFormat::Mono10 },
37 { detail::PixelFormatInfo<PixelFormat::Mono12>::Name(), PixelFormat::Mono12 },
38 { detail::PixelFormatInfo<PixelFormat::Mono16>::Name(), PixelFormat::Mono16 },
39 { detail::PixelFormatInfo<PixelFormat::Confidence8>::Name(), PixelFormat::Confidence8 },
40 { detail::PixelFormatInfo<PixelFormat::Confidence16>::Name(), PixelFormat::Confidence16 },
41 { detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::Name(), PixelFormat::Coord3D_C8 },
42 { detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::Name(), PixelFormat::Coord3D_C16 },
43 { detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::Name(), PixelFormat::Coord3D_C32f },
44 { detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::Name(), PixelFormat::Coord3D_ABC32f },
45 { detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::Name(), PixelFormat::YUV420_8_YY_UV_SemiplanarIDS },
46 { detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::Name(), PixelFormat::YUV420_8_YY_VU_SemiplanarIDS },
47 { detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::Name(), PixelFormat::YUV422_8_UYVY },
48 { detail::PixelFormatInfo<PixelFormat::RGB8>::Name(), PixelFormat::RGB8 },
49 { detail::PixelFormatInfo<PixelFormat::RGB10>::Name(), PixelFormat::RGB10 },
50 { detail::PixelFormatInfo<PixelFormat::RGB12>::Name(), PixelFormat::RGB12 },
51 { detail::PixelFormatInfo<PixelFormat::BGR8>::Name(), PixelFormat::BGR8 },
52 { detail::PixelFormatInfo<PixelFormat::BGR10>::Name(), PixelFormat::BGR10 },
53 { detail::PixelFormatInfo<PixelFormat::BGR12>::Name(), PixelFormat::BGR12 },
54 { detail::PixelFormatInfo<PixelFormat::RGBa8>::Name(), PixelFormat::RGBa8 },
55 { detail::PixelFormatInfo<PixelFormat::RGBa10>::Name(), PixelFormat::RGBa10 },
56 { detail::PixelFormatInfo<PixelFormat::RGBa12>::Name(), PixelFormat::RGBa12 },
57 { detail::PixelFormatInfo<PixelFormat::BGRa8>::Name(), PixelFormat::BGRa8 },
58 { detail::PixelFormatInfo<PixelFormat::BGRa10>::Name(), PixelFormat::BGRa10 },
59 { detail::PixelFormatInfo<PixelFormat::BGRa12>::Name(), PixelFormat::BGRa12 },
60 { detail::PixelFormatInfo<PixelFormat::BayerBG10p>::Name(), PixelFormat::BayerBG10p },
61 { detail::PixelFormatInfo<PixelFormat::BayerBG12p>::Name(), PixelFormat::BayerBG12p },
62 { detail::PixelFormatInfo<PixelFormat::BayerGB10p>::Name(), PixelFormat::BayerGB10p },
63 { detail::PixelFormatInfo<PixelFormat::BayerGB12p>::Name(), PixelFormat::BayerGB12p },
64 { detail::PixelFormatInfo<PixelFormat::BayerGR10p>::Name(), PixelFormat::BayerGR10p },
65 { detail::PixelFormatInfo<PixelFormat::BayerGR12p>::Name(), PixelFormat::BayerGR12p },
66 { detail::PixelFormatInfo<PixelFormat::BayerRG10p>::Name(), PixelFormat::BayerRG10p },
67 { detail::PixelFormatInfo<PixelFormat::BayerRG12p>::Name(), PixelFormat::BayerRG12p },
68 { detail::PixelFormatInfo<PixelFormat::Mono10p>::Name(), PixelFormat::Mono10p },
69 { detail::PixelFormatInfo<PixelFormat::Mono12p>::Name(), PixelFormat::Mono12p },
70 { detail::PixelFormatInfo<PixelFormat::RGB10p32>::Name(), PixelFormat::RGB10p32 },
71 { detail::PixelFormatInfo<PixelFormat::BGR10p32>::Name(), PixelFormat::BGR10p32 },
72 { detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::Name(), PixelFormat::BayerRG10g40IDS },
73 { detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::Name(), PixelFormat::BayerGB10g40IDS },
74 { detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::Name(), PixelFormat::BayerGR10g40IDS },
75 { detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::Name(), PixelFormat::BayerBG10g40IDS },
76 { detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::Name(), PixelFormat::BayerRG12g24IDS },
77 { detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::Name(), PixelFormat::BayerGB12g24IDS },
78 { detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::Name(), PixelFormat::BayerGR12g24IDS },
79 { detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::Name(), PixelFormat::BayerBG12g24IDS },
80 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::Name(), PixelFormat::Mono10g40IDS },
81 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::Name(), PixelFormat::Mono12g24IDS },
82 { detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::Name(), PixelFormat::Mono32fIDS },
83 { detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::Name(), PixelFormat::RGB32fIDS },
84 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::Name(), PixelFormat::Mono10g40IDS_I_A_B },
85 { detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::Name(), PixelFormat::BayerRG10g40IDS_I_A_B },
86 { detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::Name(), PixelFormat::BayerBG10g40IDS_I_A_B },
87 { detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::Name(), PixelFormat::BayerGR10g40IDS_I_A_B },
88 { detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::Name(), PixelFormat::BayerGB10g40IDS_I_A_B },
89 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::Name(), PixelFormat::Mono12g24IDS_I_A_B },
90 { detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::Name(), PixelFormat::BayerRG12g24IDS_I_A_B },
91 { detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::Name(), PixelFormat::BayerBG12g24IDS_I_A_B },
92 { detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::Name(), PixelFormat::BayerGR12g24IDS_I_A_B },
93 { detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::Name(), PixelFormat::BayerGB12g24IDS_I_A_B },
94 { detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::Name(), PixelFormat::Mono8_I_A_B },
95 { detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::Name(), PixelFormat::BayerRG8_I_A_B },
96 { detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::Name(), PixelFormat::BayerBG8_I_A_B },
97 { detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::Name(), PixelFormat::BayerGR8_I_A_B },
98 { detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::Name(), PixelFormat::BayerGB8_I_A_B },
99 { detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::Name(), PixelFormat::Mono10_I_A_B },
100 { detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::Name(), PixelFormat::BayerRG10_I_A_B },
101 { detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::Name(), PixelFormat::BayerBG10_I_A_B },
102 { detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::Name(), PixelFormat::BayerGR10_I_A_B },
103 { detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::Name(), PixelFormat::BayerGB10_I_A_B },
104 { detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::Name(), PixelFormat::Mono12_I_A_B },
105 { detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::Name(), PixelFormat::BayerRG12_I_A_B },
106 { detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::Name(), PixelFormat::BayerBG12_I_A_B },
107 { detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::Name(), PixelFormat::BayerGR12_I_A_B },
108 { detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::Name(), PixelFormat::BayerGB12_I_A_B },
109 { detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::Name(), PixelFormat::Mono10p_I_A_B },
110 { detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::Name(), PixelFormat::BayerRG10p_I_A_B },
111 { detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::Name(), PixelFormat::BayerBG10p_I_A_B },
112 { detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::Name(), PixelFormat::BayerGR10p_I_A_B },
113 { detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::Name(), PixelFormat::BayerGB10p_I_A_B },
114 { detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::Name(), PixelFormat::Mono12p_I_A_B },
115 { detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::Name(), PixelFormat::BayerRG12p_I_A_B },
116 { detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::Name(), PixelFormat::BayerBG12p_I_A_B },
117 { detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::Name(), PixelFormat::BayerGR12p_I_A_B },
118 { detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::Name(), PixelFormat::BayerGB12p_I_A_B },
119 { detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::Name(), PixelFormat::Mono8_I_AB_CD },
120 { detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::Name(), PixelFormat::Mono10_I_AB_CD },
121 { detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::Name(), PixelFormat::Mono12_I_AB_CD },
122 { detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::Name(), PixelFormat::Mono10p_I_AB_CD },
123 { detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::Name(), PixelFormat::Mono12p_I_AB_CD },
124 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::Name(), PixelFormat::Mono10g40IDS_I_AB_CD },
125 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::Name(), PixelFormat::Mono12g24IDS_I_AB_CD },
126 { detail::PixelFormatInfo<PixelFormat::Mono10_AB>::Name(), PixelFormat::Mono10_AB },
127 { detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::Name(), PixelFormat::BayerRG10_AB },
128 { detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::Name(), PixelFormat::BayerBG10_AB },
129 { detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::Name(), PixelFormat::BayerGR10_AB },
130 { detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::Name(), PixelFormat::BayerGB10_AB },
131 { detail::PixelFormatInfo<PixelFormat::Mono12_AB>::Name(), PixelFormat::Mono12_AB },
132 { detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::Name(), PixelFormat::BayerRG12_AB },
133 { detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::Name(), PixelFormat::BayerBG12_AB },
134 { detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::Name(), PixelFormat::BayerGR12_AB },
135 { detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::Name(), PixelFormat::BayerGB12_AB },
136 { detail::PixelFormatInfo<PixelFormat::Mono8_AB>::Name(), PixelFormat::Mono8_AB },
137 { detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::Name(), PixelFormat::BayerRG8_AB },
138 { detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::Name(), PixelFormat::BayerBG8_AB },
139 { detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::Name(), PixelFormat::BayerGR8_AB },
140 { detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::Name(), PixelFormat::BayerGB8_AB },
141 { detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::Name(), PixelFormat::Mono8_ABCD },
142 { detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::Name(), PixelFormat::Mono10_ABCD },
143 { detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::Name(), PixelFormat::Mono12_ABCD },
144
145 };
146
147 const auto iter = map.find(name);
148 if (iter == map.end())
149 {
150 throw InvalidParameterException("The given pixel format " + name + " is unknown!");
151 }
152 m_pixelFormat = iter->second;
153}
154
155
157{
158 switch (m_pixelFormat)
160 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::storageBitsPerPixel;
162 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::storageBitsPerPixel;
164 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::storageBitsPerPixel;
166 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::storageBitsPerPixel;
168 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::storageBitsPerPixel;
170 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::storageBitsPerPixel;
172 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::storageBitsPerPixel;
174 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::storageBitsPerPixel;
176 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::storageBitsPerPixel;
178 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::storageBitsPerPixel;
180 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::storageBitsPerPixel;
182 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::storageBitsPerPixel;
184 return detail::PixelFormatInfo<PixelFormat::Mono8>::storageBitsPerPixel;
186 return detail::PixelFormatInfo<PixelFormat::Mono10>::storageBitsPerPixel;
188 return detail::PixelFormatInfo<PixelFormat::Mono12>::storageBitsPerPixel;
190 return detail::PixelFormatInfo<PixelFormat::Mono16>::storageBitsPerPixel;
192 return detail::PixelFormatInfo<PixelFormat::Confidence8>::storageBitsPerPixel;
194 return detail::PixelFormatInfo<PixelFormat::Confidence16>::storageBitsPerPixel;
196 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::storageBitsPerPixel;
198 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::storageBitsPerPixel;
200 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::storageBitsPerPixel;
202 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::storageBitsPerPixel;
204 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::storageBitsPerPixel;
206 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::storageBitsPerPixel;
208 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::storageBitsPerPixel;
210 return detail::PixelFormatInfo<PixelFormat::RGB8>::storageBitsPerPixel;
212 return detail::PixelFormatInfo<PixelFormat::RGB10>::storageBitsPerPixel;
214 return detail::PixelFormatInfo<PixelFormat::RGB12>::storageBitsPerPixel;
216 return detail::PixelFormatInfo<PixelFormat::BGR8>::storageBitsPerPixel;
218 return detail::PixelFormatInfo<PixelFormat::BGR10>::storageBitsPerPixel;
220 return detail::PixelFormatInfo<PixelFormat::BGR12>::storageBitsPerPixel;
222 return detail::PixelFormatInfo<PixelFormat::RGBa8>::storageBitsPerPixel;
224 return detail::PixelFormatInfo<PixelFormat::RGBa10>::storageBitsPerPixel;
226 return detail::PixelFormatInfo<PixelFormat::RGBa12>::storageBitsPerPixel;
228 return detail::PixelFormatInfo<PixelFormat::BGRa8>::storageBitsPerPixel;
230 return detail::PixelFormatInfo<PixelFormat::BGRa10>::storageBitsPerPixel;
232 return detail::PixelFormatInfo<PixelFormat::BGRa12>::storageBitsPerPixel;
234 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::storageBitsPerPixel;
236 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::storageBitsPerPixel;
238 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::storageBitsPerPixel;
240 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::storageBitsPerPixel;
242 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::storageBitsPerPixel;
244 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::storageBitsPerPixel;
246 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::storageBitsPerPixel;
248 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::storageBitsPerPixel;
250 return detail::PixelFormatInfo<PixelFormat::Mono10p>::storageBitsPerPixel;
252 return detail::PixelFormatInfo<PixelFormat::Mono12p>::storageBitsPerPixel;
254 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::storageBitsPerPixel;
256 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::storageBitsPerPixel;
258 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::storageBitsPerPixel;
260 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::storageBitsPerPixel;
262 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::storageBitsPerPixel;
264 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::storageBitsPerPixel;
266 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::storageBitsPerPixel;
268 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::storageBitsPerPixel;
270 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::storageBitsPerPixel;
272 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::storageBitsPerPixel;
274 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::storageBitsPerPixel;
276 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::storageBitsPerPixel;
278 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::storageBitsPerPixel;
280 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::storageBitsPerPixel;
282 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::storageBitsPerPixel;
284 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::storageBitsPerPixel;
286 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::storageBitsPerPixel;
288 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::storageBitsPerPixel;
290 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::storageBitsPerPixel;
292 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::storageBitsPerPixel;
294 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::storageBitsPerPixel;
296 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::storageBitsPerPixel;
298 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::storageBitsPerPixel;
300 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::storageBitsPerPixel;
302 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::storageBitsPerPixel;
304 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::storageBitsPerPixel;
306 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::storageBitsPerPixel;
308 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::storageBitsPerPixel;
310 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::storageBitsPerPixel;
312 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::storageBitsPerPixel;
314 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::storageBitsPerPixel;
316 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::storageBitsPerPixel;
318 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::storageBitsPerPixel;
320 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::storageBitsPerPixel;
322 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::storageBitsPerPixel;
324 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::storageBitsPerPixel;
326 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::storageBitsPerPixel;
328 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::storageBitsPerPixel;
330 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::storageBitsPerPixel;
332 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::storageBitsPerPixel;
334 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::storageBitsPerPixel;
336 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::storageBitsPerPixel;
338 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::storageBitsPerPixel;
340 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::storageBitsPerPixel;
342 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::storageBitsPerPixel;
344 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::storageBitsPerPixel;
346 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::storageBitsPerPixel;
348 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::storageBitsPerPixel;
350 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::storageBitsPerPixel;
352 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::storageBitsPerPixel;
354 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::storageBitsPerPixel;
356 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::storageBitsPerPixel;
358 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::storageBitsPerPixel;
360 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::storageBitsPerPixel;
362 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::storageBitsPerPixel;
364 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::storageBitsPerPixel;
366 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::storageBitsPerPixel;
368 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::storageBitsPerPixel;
370 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::storageBitsPerPixel;
372 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::storageBitsPerPixel;
374 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::storageBitsPerPixel;
376 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::storageBitsPerPixel;
378 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::storageBitsPerPixel;
380 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::storageBitsPerPixel;
382 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::storageBitsPerPixel;
384 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::storageBitsPerPixel;
386 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::storageBitsPerPixel;
388 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::storageBitsPerPixel;
390 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::storageBitsPerPixel;
392 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::storageBitsPerPixel;
394 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::storageBitsPerPixel;
396 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::storageBitsPerPixel;
398 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::storageBitsPerPixel;
400 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::storageBitsPerPixel;
401
402 }
403 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
405 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
406}
407
408
410{
411 switch (m_pixelFormat)
413 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::storageBitsPerChannel;
415 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::storageBitsPerChannel;
417 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::storageBitsPerChannel;
419 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::storageBitsPerChannel;
421 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::storageBitsPerChannel;
423 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::storageBitsPerChannel;
425 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::storageBitsPerChannel;
427 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::storageBitsPerChannel;
429 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::storageBitsPerChannel;
431 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::storageBitsPerChannel;
433 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::storageBitsPerChannel;
435 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::storageBitsPerChannel;
437 return detail::PixelFormatInfo<PixelFormat::Mono8>::storageBitsPerChannel;
439 return detail::PixelFormatInfo<PixelFormat::Mono10>::storageBitsPerChannel;
441 return detail::PixelFormatInfo<PixelFormat::Mono12>::storageBitsPerChannel;
443 return detail::PixelFormatInfo<PixelFormat::Mono16>::storageBitsPerChannel;
445 return detail::PixelFormatInfo<PixelFormat::Confidence8>::storageBitsPerChannel;
447 return detail::PixelFormatInfo<PixelFormat::Confidence16>::storageBitsPerChannel;
449 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::storageBitsPerChannel;
451 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::storageBitsPerChannel;
453 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::storageBitsPerChannel;
455 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::storageBitsPerChannel;
457 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::storageBitsPerChannel;
459 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::storageBitsPerChannel;
461 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::storageBitsPerChannel;
463 return detail::PixelFormatInfo<PixelFormat::RGB8>::storageBitsPerChannel;
465 return detail::PixelFormatInfo<PixelFormat::RGB10>::storageBitsPerChannel;
467 return detail::PixelFormatInfo<PixelFormat::RGB12>::storageBitsPerChannel;
469 return detail::PixelFormatInfo<PixelFormat::BGR8>::storageBitsPerChannel;
471 return detail::PixelFormatInfo<PixelFormat::BGR10>::storageBitsPerChannel;
473 return detail::PixelFormatInfo<PixelFormat::BGR12>::storageBitsPerChannel;
475 return detail::PixelFormatInfo<PixelFormat::RGBa8>::storageBitsPerChannel;
477 return detail::PixelFormatInfo<PixelFormat::RGBa10>::storageBitsPerChannel;
479 return detail::PixelFormatInfo<PixelFormat::RGBa12>::storageBitsPerChannel;
481 return detail::PixelFormatInfo<PixelFormat::BGRa8>::storageBitsPerChannel;
483 return detail::PixelFormatInfo<PixelFormat::BGRa10>::storageBitsPerChannel;
485 return detail::PixelFormatInfo<PixelFormat::BGRa12>::storageBitsPerChannel;
487 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::storageBitsPerChannel;
489 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::storageBitsPerChannel;
491 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::storageBitsPerChannel;
493 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::storageBitsPerChannel;
495 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::storageBitsPerChannel;
497 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::storageBitsPerChannel;
499 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::storageBitsPerChannel;
501 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::storageBitsPerChannel;
503 return detail::PixelFormatInfo<PixelFormat::Mono10p>::storageBitsPerChannel;
505 return detail::PixelFormatInfo<PixelFormat::Mono12p>::storageBitsPerChannel;
507 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::storageBitsPerChannel;
509 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::storageBitsPerChannel;
511 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::storageBitsPerChannel;
513 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::storageBitsPerChannel;
515 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::storageBitsPerChannel;
517 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::storageBitsPerChannel;
519 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::storageBitsPerChannel;
521 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::storageBitsPerChannel;
523 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::storageBitsPerChannel;
525 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::storageBitsPerChannel;
527 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::storageBitsPerChannel;
529 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::storageBitsPerChannel;
531 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::storageBitsPerChannel;
533 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::storageBitsPerChannel;
535 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::storageBitsPerChannel;
537 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::storageBitsPerChannel;
539 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::storageBitsPerChannel;
541 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::storageBitsPerChannel;
543 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::storageBitsPerChannel;
545 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::storageBitsPerChannel;
547 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::storageBitsPerChannel;
549 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::storageBitsPerChannel;
551 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::storageBitsPerChannel;
553 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::storageBitsPerChannel;
555 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::storageBitsPerChannel;
557 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::storageBitsPerChannel;
559 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::storageBitsPerChannel;
561 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::storageBitsPerChannel;
563 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::storageBitsPerChannel;
565 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::storageBitsPerChannel;
567 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::storageBitsPerChannel;
569 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::storageBitsPerChannel;
571 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::storageBitsPerChannel;
573 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::storageBitsPerChannel;
575 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::storageBitsPerChannel;
577 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::storageBitsPerChannel;
579 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::storageBitsPerChannel;
581 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::storageBitsPerChannel;
583 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::storageBitsPerChannel;
585 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::storageBitsPerChannel;
587 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::storageBitsPerChannel;
589 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::storageBitsPerChannel;
591 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::storageBitsPerChannel;
593 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::storageBitsPerChannel;
595 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::storageBitsPerChannel;
597 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::storageBitsPerChannel;
599 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::storageBitsPerChannel;
601 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::storageBitsPerChannel;
603 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::storageBitsPerChannel;
605 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::storageBitsPerChannel;
607 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::storageBitsPerChannel;
609 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::storageBitsPerChannel;
611 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::storageBitsPerChannel;
613 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::storageBitsPerChannel;
615 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::storageBitsPerChannel;
617 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::storageBitsPerChannel;
619 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::storageBitsPerChannel;
621 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::storageBitsPerChannel;
623 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::storageBitsPerChannel;
625 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::storageBitsPerChannel;
627 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::storageBitsPerChannel;
629 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::storageBitsPerChannel;
631 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::storageBitsPerChannel;
633 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::storageBitsPerChannel;
635 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::storageBitsPerChannel;
637 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::storageBitsPerChannel;
639 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::storageBitsPerChannel;
641 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::storageBitsPerChannel;
643 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::storageBitsPerChannel;
645 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::storageBitsPerChannel;
647 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::storageBitsPerChannel;
649 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::storageBitsPerChannel;
651 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::storageBitsPerChannel;
653 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::storageBitsPerChannel;
654
655 }
656 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
658 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
659}
660
661
662inline std::string PixelFormatInfo::GetName() const
663{
664 switch (m_pixelFormat)
666 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::Name();
668 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::Name();
670 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::Name();
672 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::Name();
674 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::Name();
676 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::Name();
678 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::Name();
680 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::Name();
682 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::Name();
684 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::Name();
686 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::Name();
688 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::Name();
690 return detail::PixelFormatInfo<PixelFormat::Mono8>::Name();
692 return detail::PixelFormatInfo<PixelFormat::Mono10>::Name();
694 return detail::PixelFormatInfo<PixelFormat::Mono12>::Name();
696 return detail::PixelFormatInfo<PixelFormat::Mono16>::Name();
698 return detail::PixelFormatInfo<PixelFormat::Confidence8>::Name();
700 return detail::PixelFormatInfo<PixelFormat::Confidence16>::Name();
702 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::Name();
704 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::Name();
706 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::Name();
708 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::Name();
710 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::Name();
712 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::Name();
714 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::Name();
716 return detail::PixelFormatInfo<PixelFormat::RGB8>::Name();
718 return detail::PixelFormatInfo<PixelFormat::RGB10>::Name();
720 return detail::PixelFormatInfo<PixelFormat::RGB12>::Name();
722 return detail::PixelFormatInfo<PixelFormat::BGR8>::Name();
724 return detail::PixelFormatInfo<PixelFormat::BGR10>::Name();
726 return detail::PixelFormatInfo<PixelFormat::BGR12>::Name();
728 return detail::PixelFormatInfo<PixelFormat::RGBa8>::Name();
730 return detail::PixelFormatInfo<PixelFormat::RGBa10>::Name();
732 return detail::PixelFormatInfo<PixelFormat::RGBa12>::Name();
734 return detail::PixelFormatInfo<PixelFormat::BGRa8>::Name();
736 return detail::PixelFormatInfo<PixelFormat::BGRa10>::Name();
738 return detail::PixelFormatInfo<PixelFormat::BGRa12>::Name();
740 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::Name();
742 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::Name();
744 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::Name();
746 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::Name();
748 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::Name();
750 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::Name();
752 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::Name();
754 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::Name();
756 return detail::PixelFormatInfo<PixelFormat::Mono10p>::Name();
758 return detail::PixelFormatInfo<PixelFormat::Mono12p>::Name();
760 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::Name();
762 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::Name();
764 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::Name();
766 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::Name();
768 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::Name();
770 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::Name();
772 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::Name();
774 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::Name();
776 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::Name();
778 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::Name();
780 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::Name();
782 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::Name();
784 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::Name();
786 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::Name();
788 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::Name();
790 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::Name();
792 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::Name();
794 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::Name();
796 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::Name();
798 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::Name();
800 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::Name();
802 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::Name();
804 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::Name();
806 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::Name();
808 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::Name();
810 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::Name();
812 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::Name();
814 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::Name();
816 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::Name();
818 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::Name();
820 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::Name();
822 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::Name();
824 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::Name();
826 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::Name();
828 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::Name();
830 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::Name();
832 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::Name();
834 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::Name();
836 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::Name();
838 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::Name();
840 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::Name();
842 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::Name();
844 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::Name();
846 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::Name();
848 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::Name();
850 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::Name();
852 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::Name();
854 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::Name();
856 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::Name();
858 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::Name();
860 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::Name();
862 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::Name();
864 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::Name();
866 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::Name();
868 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::Name();
870 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::Name();
872 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::Name();
874 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::Name();
876 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::Name();
878 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::Name();
880 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::Name();
882 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::Name();
884 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::Name();
886 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::Name();
888 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::Name();
890 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::Name();
892 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::Name();
894 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::Name();
896 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::Name();
898 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::Name();
900 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::Name();
902 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::Name();
904 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::Name();
906 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::Name();
907
908 }
909 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
911 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
912}
913
914
916{
917 switch (m_pixelFormat)
919 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::allocatedBitsPerPixel;
921 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::allocatedBitsPerPixel;
923 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::allocatedBitsPerPixel;
925 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::allocatedBitsPerPixel;
927 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::allocatedBitsPerPixel;
929 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::allocatedBitsPerPixel;
931 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::allocatedBitsPerPixel;
933 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::allocatedBitsPerPixel;
935 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::allocatedBitsPerPixel;
937 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::allocatedBitsPerPixel;
939 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::allocatedBitsPerPixel;
941 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::allocatedBitsPerPixel;
943 return detail::PixelFormatInfo<PixelFormat::Mono8>::allocatedBitsPerPixel;
945 return detail::PixelFormatInfo<PixelFormat::Mono10>::allocatedBitsPerPixel;
947 return detail::PixelFormatInfo<PixelFormat::Mono12>::allocatedBitsPerPixel;
949 return detail::PixelFormatInfo<PixelFormat::Mono16>::allocatedBitsPerPixel;
951 return detail::PixelFormatInfo<PixelFormat::Confidence8>::allocatedBitsPerPixel;
953 return detail::PixelFormatInfo<PixelFormat::Confidence16>::allocatedBitsPerPixel;
955 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::allocatedBitsPerPixel;
957 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::allocatedBitsPerPixel;
959 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::allocatedBitsPerPixel;
961 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::allocatedBitsPerPixel;
963 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::allocatedBitsPerPixel;
965 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::allocatedBitsPerPixel;
967 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::allocatedBitsPerPixel;
969 return detail::PixelFormatInfo<PixelFormat::RGB8>::allocatedBitsPerPixel;
971 return detail::PixelFormatInfo<PixelFormat::RGB10>::allocatedBitsPerPixel;
973 return detail::PixelFormatInfo<PixelFormat::RGB12>::allocatedBitsPerPixel;
975 return detail::PixelFormatInfo<PixelFormat::BGR8>::allocatedBitsPerPixel;
977 return detail::PixelFormatInfo<PixelFormat::BGR10>::allocatedBitsPerPixel;
979 return detail::PixelFormatInfo<PixelFormat::BGR12>::allocatedBitsPerPixel;
981 return detail::PixelFormatInfo<PixelFormat::RGBa8>::allocatedBitsPerPixel;
983 return detail::PixelFormatInfo<PixelFormat::RGBa10>::allocatedBitsPerPixel;
985 return detail::PixelFormatInfo<PixelFormat::RGBa12>::allocatedBitsPerPixel;
987 return detail::PixelFormatInfo<PixelFormat::BGRa8>::allocatedBitsPerPixel;
989 return detail::PixelFormatInfo<PixelFormat::BGRa10>::allocatedBitsPerPixel;
991 return detail::PixelFormatInfo<PixelFormat::BGRa12>::allocatedBitsPerPixel;
993 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::allocatedBitsPerPixel;
995 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::allocatedBitsPerPixel;
997 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::allocatedBitsPerPixel;
999 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::allocatedBitsPerPixel;
1001 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::allocatedBitsPerPixel;
1003 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::allocatedBitsPerPixel;
1005 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::allocatedBitsPerPixel;
1007 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::allocatedBitsPerPixel;
1009 return detail::PixelFormatInfo<PixelFormat::Mono10p>::allocatedBitsPerPixel;
1011 return detail::PixelFormatInfo<PixelFormat::Mono12p>::allocatedBitsPerPixel;
1013 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::allocatedBitsPerPixel;
1015 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::allocatedBitsPerPixel;
1017 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::allocatedBitsPerPixel;
1019 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::allocatedBitsPerPixel;
1021 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::allocatedBitsPerPixel;
1023 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::allocatedBitsPerPixel;
1025 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::allocatedBitsPerPixel;
1027 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::allocatedBitsPerPixel;
1029 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::allocatedBitsPerPixel;
1031 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::allocatedBitsPerPixel;
1033 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::allocatedBitsPerPixel;
1035 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::allocatedBitsPerPixel;
1037 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::allocatedBitsPerPixel;
1039 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::allocatedBitsPerPixel;
1041 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::allocatedBitsPerPixel;
1043 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::allocatedBitsPerPixel;
1045 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::allocatedBitsPerPixel;
1047 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::allocatedBitsPerPixel;
1049 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::allocatedBitsPerPixel;
1051 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::allocatedBitsPerPixel;
1053 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::allocatedBitsPerPixel;
1055 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::allocatedBitsPerPixel;
1057 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::allocatedBitsPerPixel;
1059 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::allocatedBitsPerPixel;
1061 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::allocatedBitsPerPixel;
1063 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::allocatedBitsPerPixel;
1065 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::allocatedBitsPerPixel;
1067 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::allocatedBitsPerPixel;
1069 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::allocatedBitsPerPixel;
1071 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::allocatedBitsPerPixel;
1073 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::allocatedBitsPerPixel;
1075 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::allocatedBitsPerPixel;
1077 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::allocatedBitsPerPixel;
1079 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::allocatedBitsPerPixel;
1081 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::allocatedBitsPerPixel;
1083 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::allocatedBitsPerPixel;
1085 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::allocatedBitsPerPixel;
1087 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::allocatedBitsPerPixel;
1089 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::allocatedBitsPerPixel;
1091 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::allocatedBitsPerPixel;
1093 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::allocatedBitsPerPixel;
1095 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::allocatedBitsPerPixel;
1097 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::allocatedBitsPerPixel;
1099 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::allocatedBitsPerPixel;
1101 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::allocatedBitsPerPixel;
1103 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::allocatedBitsPerPixel;
1105 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::allocatedBitsPerPixel;
1107 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::allocatedBitsPerPixel;
1109 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::allocatedBitsPerPixel;
1111 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::allocatedBitsPerPixel;
1113 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::allocatedBitsPerPixel;
1115 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::allocatedBitsPerPixel;
1117 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::allocatedBitsPerPixel;
1119 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::allocatedBitsPerPixel;
1121 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::allocatedBitsPerPixel;
1123 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::allocatedBitsPerPixel;
1125 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::allocatedBitsPerPixel;
1127 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::allocatedBitsPerPixel;
1129 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::allocatedBitsPerPixel;
1131 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::allocatedBitsPerPixel;
1133 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::allocatedBitsPerPixel;
1135 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::allocatedBitsPerPixel;
1137 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::allocatedBitsPerPixel;
1139 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::allocatedBitsPerPixel;
1141 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::allocatedBitsPerPixel;
1143 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::allocatedBitsPerPixel;
1145 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::allocatedBitsPerPixel;
1147 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::allocatedBitsPerPixel;
1149 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::allocatedBitsPerPixel;
1151 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::allocatedBitsPerPixel;
1153 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::allocatedBitsPerPixel;
1155 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::allocatedBitsPerPixel;
1157 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::allocatedBitsPerPixel;
1159 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::allocatedBitsPerPixel;
1160
1161 }
1162 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1164 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1165}
1166
1167
1168inline size_t PixelFormatInfo::GetSizeInBytes(const Size& size) const
1169{
1170 switch (m_pixelFormat)
1171 { case PixelFormat::BayerGR8:
1172 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::GetSizeInBytes(size);
1174 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::GetSizeInBytes(size);
1176 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::GetSizeInBytes(size);
1178 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::GetSizeInBytes(size);
1180 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::GetSizeInBytes(size);
1182 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::GetSizeInBytes(size);
1184 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::GetSizeInBytes(size);
1186 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::GetSizeInBytes(size);
1188 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::GetSizeInBytes(size);
1190 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::GetSizeInBytes(size);
1192 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::GetSizeInBytes(size);
1194 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::GetSizeInBytes(size);
1195 case PixelFormat::Mono8:
1196 return detail::PixelFormatInfo<PixelFormat::Mono8>::GetSizeInBytes(size);
1198 return detail::PixelFormatInfo<PixelFormat::Mono10>::GetSizeInBytes(size);
1200 return detail::PixelFormatInfo<PixelFormat::Mono12>::GetSizeInBytes(size);
1202 return detail::PixelFormatInfo<PixelFormat::Mono16>::GetSizeInBytes(size);
1204 return detail::PixelFormatInfo<PixelFormat::Confidence8>::GetSizeInBytes(size);
1206 return detail::PixelFormatInfo<PixelFormat::Confidence16>::GetSizeInBytes(size);
1208 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::GetSizeInBytes(size);
1210 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::GetSizeInBytes(size);
1212 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::GetSizeInBytes(size);
1214 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::GetSizeInBytes(size);
1216 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::GetSizeInBytes(size);
1218 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::GetSizeInBytes(size);
1220 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::GetSizeInBytes(size);
1221 case PixelFormat::RGB8:
1222 return detail::PixelFormatInfo<PixelFormat::RGB8>::GetSizeInBytes(size);
1223 case PixelFormat::RGB10:
1224 return detail::PixelFormatInfo<PixelFormat::RGB10>::GetSizeInBytes(size);
1225 case PixelFormat::RGB12:
1226 return detail::PixelFormatInfo<PixelFormat::RGB12>::GetSizeInBytes(size);
1227 case PixelFormat::BGR8:
1228 return detail::PixelFormatInfo<PixelFormat::BGR8>::GetSizeInBytes(size);
1229 case PixelFormat::BGR10:
1230 return detail::PixelFormatInfo<PixelFormat::BGR10>::GetSizeInBytes(size);
1231 case PixelFormat::BGR12:
1232 return detail::PixelFormatInfo<PixelFormat::BGR12>::GetSizeInBytes(size);
1233 case PixelFormat::RGBa8:
1234 return detail::PixelFormatInfo<PixelFormat::RGBa8>::GetSizeInBytes(size);
1236 return detail::PixelFormatInfo<PixelFormat::RGBa10>::GetSizeInBytes(size);
1238 return detail::PixelFormatInfo<PixelFormat::RGBa12>::GetSizeInBytes(size);
1239 case PixelFormat::BGRa8:
1240 return detail::PixelFormatInfo<PixelFormat::BGRa8>::GetSizeInBytes(size);
1242 return detail::PixelFormatInfo<PixelFormat::BGRa10>::GetSizeInBytes(size);
1244 return detail::PixelFormatInfo<PixelFormat::BGRa12>::GetSizeInBytes(size);
1246 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::GetSizeInBytes(size);
1248 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::GetSizeInBytes(size);
1250 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::GetSizeInBytes(size);
1252 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::GetSizeInBytes(size);
1254 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::GetSizeInBytes(size);
1256 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::GetSizeInBytes(size);
1258 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::GetSizeInBytes(size);
1260 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::GetSizeInBytes(size);
1262 return detail::PixelFormatInfo<PixelFormat::Mono10p>::GetSizeInBytes(size);
1264 return detail::PixelFormatInfo<PixelFormat::Mono12p>::GetSizeInBytes(size);
1266 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::GetSizeInBytes(size);
1268 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::GetSizeInBytes(size);
1270 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::GetSizeInBytes(size);
1272 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::GetSizeInBytes(size);
1274 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::GetSizeInBytes(size);
1276 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::GetSizeInBytes(size);
1278 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::GetSizeInBytes(size);
1280 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::GetSizeInBytes(size);
1282 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::GetSizeInBytes(size);
1284 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::GetSizeInBytes(size);
1286 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::GetSizeInBytes(size);
1288 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::GetSizeInBytes(size);
1290 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::GetSizeInBytes(size);
1292 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::GetSizeInBytes(size);
1294 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::GetSizeInBytes(size);
1296 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::GetSizeInBytes(size);
1298 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::GetSizeInBytes(size);
1300 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::GetSizeInBytes(size);
1302 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::GetSizeInBytes(size);
1304 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::GetSizeInBytes(size);
1306 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::GetSizeInBytes(size);
1308 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::GetSizeInBytes(size);
1310 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::GetSizeInBytes(size);
1312 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::GetSizeInBytes(size);
1314 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::GetSizeInBytes(size);
1316 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::GetSizeInBytes(size);
1318 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::GetSizeInBytes(size);
1320 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::GetSizeInBytes(size);
1322 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::GetSizeInBytes(size);
1324 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::GetSizeInBytes(size);
1326 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::GetSizeInBytes(size);
1328 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::GetSizeInBytes(size);
1330 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::GetSizeInBytes(size);
1332 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::GetSizeInBytes(size);
1334 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::GetSizeInBytes(size);
1336 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::GetSizeInBytes(size);
1338 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::GetSizeInBytes(size);
1340 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::GetSizeInBytes(size);
1342 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::GetSizeInBytes(size);
1344 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::GetSizeInBytes(size);
1346 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::GetSizeInBytes(size);
1348 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::GetSizeInBytes(size);
1350 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::GetSizeInBytes(size);
1352 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::GetSizeInBytes(size);
1354 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::GetSizeInBytes(size);
1356 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::GetSizeInBytes(size);
1358 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::GetSizeInBytes(size);
1360 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::GetSizeInBytes(size);
1362 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::GetSizeInBytes(size);
1364 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::GetSizeInBytes(size);
1366 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::GetSizeInBytes(size);
1368 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::GetSizeInBytes(size);
1370 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::GetSizeInBytes(size);
1372 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::GetSizeInBytes(size);
1374 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::GetSizeInBytes(size);
1376 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::GetSizeInBytes(size);
1378 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::GetSizeInBytes(size);
1380 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::GetSizeInBytes(size);
1382 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::GetSizeInBytes(size);
1384 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::GetSizeInBytes(size);
1386 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::GetSizeInBytes(size);
1388 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::GetSizeInBytes(size);
1390 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::GetSizeInBytes(size);
1392 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::GetSizeInBytes(size);
1394 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::GetSizeInBytes(size);
1396 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::GetSizeInBytes(size);
1398 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::GetSizeInBytes(size);
1400 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::GetSizeInBytes(size);
1402 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::GetSizeInBytes(size);
1404 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::GetSizeInBytes(size);
1406 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::GetSizeInBytes(size);
1408 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::GetSizeInBytes(size);
1410 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::GetSizeInBytes(size);
1412 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::GetSizeInBytes(size);
1413
1414 }
1415 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1417 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1418}
1419
1420
1421inline bool PixelFormatInfo::IsPacked() const
1422{
1423 switch (m_pixelFormat)
1424 { case PixelFormat::BayerGR8:
1425 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::IsPacked();
1427 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::IsPacked();
1429 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::IsPacked();
1431 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::IsPacked();
1433 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::IsPacked();
1435 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::IsPacked();
1437 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::IsPacked();
1439 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::IsPacked();
1441 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::IsPacked();
1443 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::IsPacked();
1445 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::IsPacked();
1447 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::IsPacked();
1448 case PixelFormat::Mono8:
1449 return detail::PixelFormatInfo<PixelFormat::Mono8>::IsPacked();
1451 return detail::PixelFormatInfo<PixelFormat::Mono10>::IsPacked();
1453 return detail::PixelFormatInfo<PixelFormat::Mono12>::IsPacked();
1455 return detail::PixelFormatInfo<PixelFormat::Mono16>::IsPacked();
1457 return detail::PixelFormatInfo<PixelFormat::Confidence8>::IsPacked();
1459 return detail::PixelFormatInfo<PixelFormat::Confidence16>::IsPacked();
1461 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::IsPacked();
1463 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::IsPacked();
1465 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::IsPacked();
1467 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::IsPacked();
1469 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::IsPacked();
1471 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::IsPacked();
1473 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::IsPacked();
1474 case PixelFormat::RGB8:
1475 return detail::PixelFormatInfo<PixelFormat::RGB8>::IsPacked();
1476 case PixelFormat::RGB10:
1477 return detail::PixelFormatInfo<PixelFormat::RGB10>::IsPacked();
1478 case PixelFormat::RGB12:
1479 return detail::PixelFormatInfo<PixelFormat::RGB12>::IsPacked();
1480 case PixelFormat::BGR8:
1481 return detail::PixelFormatInfo<PixelFormat::BGR8>::IsPacked();
1482 case PixelFormat::BGR10:
1483 return detail::PixelFormatInfo<PixelFormat::BGR10>::IsPacked();
1484 case PixelFormat::BGR12:
1485 return detail::PixelFormatInfo<PixelFormat::BGR12>::IsPacked();
1486 case PixelFormat::RGBa8:
1487 return detail::PixelFormatInfo<PixelFormat::RGBa8>::IsPacked();
1489 return detail::PixelFormatInfo<PixelFormat::RGBa10>::IsPacked();
1491 return detail::PixelFormatInfo<PixelFormat::RGBa12>::IsPacked();
1492 case PixelFormat::BGRa8:
1493 return detail::PixelFormatInfo<PixelFormat::BGRa8>::IsPacked();
1495 return detail::PixelFormatInfo<PixelFormat::BGRa10>::IsPacked();
1497 return detail::PixelFormatInfo<PixelFormat::BGRa12>::IsPacked();
1499 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::IsPacked();
1501 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::IsPacked();
1503 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::IsPacked();
1505 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::IsPacked();
1507 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::IsPacked();
1509 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::IsPacked();
1511 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::IsPacked();
1513 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::IsPacked();
1515 return detail::PixelFormatInfo<PixelFormat::Mono10p>::IsPacked();
1517 return detail::PixelFormatInfo<PixelFormat::Mono12p>::IsPacked();
1519 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::IsPacked();
1521 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::IsPacked();
1523 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::IsPacked();
1525 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::IsPacked();
1527 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::IsPacked();
1529 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::IsPacked();
1531 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::IsPacked();
1533 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::IsPacked();
1535 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::IsPacked();
1537 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::IsPacked();
1539 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::IsPacked();
1541 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::IsPacked();
1543 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::IsPacked();
1545 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::IsPacked();
1547 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::IsPacked();
1549 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::IsPacked();
1551 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::IsPacked();
1553 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::IsPacked();
1555 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::IsPacked();
1557 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::IsPacked();
1559 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::IsPacked();
1561 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::IsPacked();
1563 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::IsPacked();
1565 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::IsPacked();
1567 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::IsPacked();
1569 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::IsPacked();
1571 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::IsPacked();
1573 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::IsPacked();
1575 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::IsPacked();
1577 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::IsPacked();
1579 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::IsPacked();
1581 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::IsPacked();
1583 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::IsPacked();
1585 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::IsPacked();
1587 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::IsPacked();
1589 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::IsPacked();
1591 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::IsPacked();
1593 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::IsPacked();
1595 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::IsPacked();
1597 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::IsPacked();
1599 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::IsPacked();
1601 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::IsPacked();
1603 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::IsPacked();
1605 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::IsPacked();
1607 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::IsPacked();
1609 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::IsPacked();
1611 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::IsPacked();
1613 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::IsPacked();
1615 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::IsPacked();
1617 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::IsPacked();
1619 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::IsPacked();
1621 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::IsPacked();
1623 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::IsPacked();
1625 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::IsPacked();
1627 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::IsPacked();
1629 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::IsPacked();
1631 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::IsPacked();
1633 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::IsPacked();
1635 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::IsPacked();
1637 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::IsPacked();
1639 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::IsPacked();
1641 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::IsPacked();
1643 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::IsPacked();
1645 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::IsPacked();
1647 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::IsPacked();
1649 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::IsPacked();
1651 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::IsPacked();
1653 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::IsPacked();
1655 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::IsPacked();
1657 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::IsPacked();
1659 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::IsPacked();
1661 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::IsPacked();
1663 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::IsPacked();
1665 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::IsPacked();
1666
1667 }
1668 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1670 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1671}
1672
1673
1675{
1676 switch (m_pixelFormat)
1677 { case PixelFormat::BayerGR8:
1678 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::IsInterleaved();
1680 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::IsInterleaved();
1682 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::IsInterleaved();
1684 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::IsInterleaved();
1686 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::IsInterleaved();
1688 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::IsInterleaved();
1690 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::IsInterleaved();
1692 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::IsInterleaved();
1694 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::IsInterleaved();
1696 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::IsInterleaved();
1698 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::IsInterleaved();
1700 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::IsInterleaved();
1701 case PixelFormat::Mono8:
1702 return detail::PixelFormatInfo<PixelFormat::Mono8>::IsInterleaved();
1704 return detail::PixelFormatInfo<PixelFormat::Mono10>::IsInterleaved();
1706 return detail::PixelFormatInfo<PixelFormat::Mono12>::IsInterleaved();
1708 return detail::PixelFormatInfo<PixelFormat::Mono16>::IsInterleaved();
1710 return detail::PixelFormatInfo<PixelFormat::Confidence8>::IsInterleaved();
1712 return detail::PixelFormatInfo<PixelFormat::Confidence16>::IsInterleaved();
1714 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::IsInterleaved();
1716 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::IsInterleaved();
1718 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::IsInterleaved();
1720 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::IsInterleaved();
1722 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::IsInterleaved();
1724 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::IsInterleaved();
1726 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::IsInterleaved();
1727 case PixelFormat::RGB8:
1728 return detail::PixelFormatInfo<PixelFormat::RGB8>::IsInterleaved();
1729 case PixelFormat::RGB10:
1730 return detail::PixelFormatInfo<PixelFormat::RGB10>::IsInterleaved();
1731 case PixelFormat::RGB12:
1732 return detail::PixelFormatInfo<PixelFormat::RGB12>::IsInterleaved();
1733 case PixelFormat::BGR8:
1734 return detail::PixelFormatInfo<PixelFormat::BGR8>::IsInterleaved();
1735 case PixelFormat::BGR10:
1736 return detail::PixelFormatInfo<PixelFormat::BGR10>::IsInterleaved();
1737 case PixelFormat::BGR12:
1738 return detail::PixelFormatInfo<PixelFormat::BGR12>::IsInterleaved();
1739 case PixelFormat::RGBa8:
1740 return detail::PixelFormatInfo<PixelFormat::RGBa8>::IsInterleaved();
1742 return detail::PixelFormatInfo<PixelFormat::RGBa10>::IsInterleaved();
1744 return detail::PixelFormatInfo<PixelFormat::RGBa12>::IsInterleaved();
1745 case PixelFormat::BGRa8:
1746 return detail::PixelFormatInfo<PixelFormat::BGRa8>::IsInterleaved();
1748 return detail::PixelFormatInfo<PixelFormat::BGRa10>::IsInterleaved();
1750 return detail::PixelFormatInfo<PixelFormat::BGRa12>::IsInterleaved();
1752 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::IsInterleaved();
1754 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::IsInterleaved();
1756 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::IsInterleaved();
1758 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::IsInterleaved();
1760 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::IsInterleaved();
1762 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::IsInterleaved();
1764 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::IsInterleaved();
1766 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::IsInterleaved();
1768 return detail::PixelFormatInfo<PixelFormat::Mono10p>::IsInterleaved();
1770 return detail::PixelFormatInfo<PixelFormat::Mono12p>::IsInterleaved();
1772 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::IsInterleaved();
1774 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::IsInterleaved();
1776 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::IsInterleaved();
1778 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::IsInterleaved();
1780 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::IsInterleaved();
1782 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::IsInterleaved();
1784 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::IsInterleaved();
1786 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::IsInterleaved();
1788 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::IsInterleaved();
1790 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::IsInterleaved();
1792 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::IsInterleaved();
1794 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::IsInterleaved();
1796 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::IsInterleaved();
1798 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::IsInterleaved();
1800 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::IsInterleaved();
1802 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::IsInterleaved();
1804 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::IsInterleaved();
1806 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::IsInterleaved();
1808 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::IsInterleaved();
1810 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::IsInterleaved();
1812 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::IsInterleaved();
1814 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::IsInterleaved();
1816 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::IsInterleaved();
1818 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::IsInterleaved();
1820 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::IsInterleaved();
1822 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::IsInterleaved();
1824 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::IsInterleaved();
1826 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::IsInterleaved();
1828 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::IsInterleaved();
1830 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::IsInterleaved();
1832 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::IsInterleaved();
1834 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::IsInterleaved();
1836 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::IsInterleaved();
1838 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::IsInterleaved();
1840 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::IsInterleaved();
1842 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::IsInterleaved();
1844 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::IsInterleaved();
1846 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::IsInterleaved();
1848 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::IsInterleaved();
1850 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::IsInterleaved();
1852 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::IsInterleaved();
1854 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::IsInterleaved();
1856 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::IsInterleaved();
1858 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::IsInterleaved();
1860 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::IsInterleaved();
1862 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::IsInterleaved();
1864 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::IsInterleaved();
1866 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::IsInterleaved();
1868 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::IsInterleaved();
1870 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::IsInterleaved();
1872 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::IsInterleaved();
1874 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::IsInterleaved();
1876 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::IsInterleaved();
1878 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::IsInterleaved();
1880 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::IsInterleaved();
1882 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::IsInterleaved();
1884 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::IsInterleaved();
1886 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::IsInterleaved();
1888 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::IsInterleaved();
1890 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::IsInterleaved();
1892 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::IsInterleaved();
1894 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::IsInterleaved();
1896 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::IsInterleaved();
1898 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::IsInterleaved();
1900 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::IsInterleaved();
1902 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::IsInterleaved();
1904 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::IsInterleaved();
1906 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::IsInterleaved();
1908 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::IsInterleaved();
1910 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::IsInterleaved();
1912 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::IsInterleaved();
1914 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::IsInterleaved();
1916 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::IsInterleaved();
1918 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::IsInterleaved();
1919
1920 }
1921 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1923 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1924}
1925
1926
1927inline bool PixelFormatInfo::IsFloat() const
1928{
1929 switch (m_pixelFormat)
1930 { case PixelFormat::BayerGR8:
1931 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::is_floating_point;
1933 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::is_floating_point;
1935 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::is_floating_point;
1937 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::is_floating_point;
1939 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::is_floating_point;
1941 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::is_floating_point;
1943 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::is_floating_point;
1945 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::is_floating_point;
1947 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::is_floating_point;
1949 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::is_floating_point;
1951 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::is_floating_point;
1953 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::is_floating_point;
1954 case PixelFormat::Mono8:
1955 return detail::PixelFormatInfo<PixelFormat::Mono8>::is_floating_point;
1957 return detail::PixelFormatInfo<PixelFormat::Mono10>::is_floating_point;
1959 return detail::PixelFormatInfo<PixelFormat::Mono12>::is_floating_point;
1961 return detail::PixelFormatInfo<PixelFormat::Mono16>::is_floating_point;
1963 return detail::PixelFormatInfo<PixelFormat::Confidence8>::is_floating_point;
1965 return detail::PixelFormatInfo<PixelFormat::Confidence16>::is_floating_point;
1967 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::is_floating_point;
1969 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::is_floating_point;
1971 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::is_floating_point;
1973 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::is_floating_point;
1975 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::is_floating_point;
1977 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::is_floating_point;
1979 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::is_floating_point;
1980 case PixelFormat::RGB8:
1981 return detail::PixelFormatInfo<PixelFormat::RGB8>::is_floating_point;
1982 case PixelFormat::RGB10:
1983 return detail::PixelFormatInfo<PixelFormat::RGB10>::is_floating_point;
1984 case PixelFormat::RGB12:
1985 return detail::PixelFormatInfo<PixelFormat::RGB12>::is_floating_point;
1986 case PixelFormat::BGR8:
1987 return detail::PixelFormatInfo<PixelFormat::BGR8>::is_floating_point;
1988 case PixelFormat::BGR10:
1989 return detail::PixelFormatInfo<PixelFormat::BGR10>::is_floating_point;
1990 case PixelFormat::BGR12:
1991 return detail::PixelFormatInfo<PixelFormat::BGR12>::is_floating_point;
1992 case PixelFormat::RGBa8:
1993 return detail::PixelFormatInfo<PixelFormat::RGBa8>::is_floating_point;
1995 return detail::PixelFormatInfo<PixelFormat::RGBa10>::is_floating_point;
1997 return detail::PixelFormatInfo<PixelFormat::RGBa12>::is_floating_point;
1998 case PixelFormat::BGRa8:
1999 return detail::PixelFormatInfo<PixelFormat::BGRa8>::is_floating_point;
2001 return detail::PixelFormatInfo<PixelFormat::BGRa10>::is_floating_point;
2003 return detail::PixelFormatInfo<PixelFormat::BGRa12>::is_floating_point;
2005 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::is_floating_point;
2007 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::is_floating_point;
2009 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::is_floating_point;
2011 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::is_floating_point;
2013 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::is_floating_point;
2015 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::is_floating_point;
2017 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::is_floating_point;
2019 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::is_floating_point;
2021 return detail::PixelFormatInfo<PixelFormat::Mono10p>::is_floating_point;
2023 return detail::PixelFormatInfo<PixelFormat::Mono12p>::is_floating_point;
2025 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::is_floating_point;
2027 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::is_floating_point;
2029 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::is_floating_point;
2031 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::is_floating_point;
2033 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::is_floating_point;
2035 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::is_floating_point;
2037 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::is_floating_point;
2039 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::is_floating_point;
2041 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::is_floating_point;
2043 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::is_floating_point;
2045 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::is_floating_point;
2047 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::is_floating_point;
2049 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::is_floating_point;
2051 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::is_floating_point;
2053 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::is_floating_point;
2055 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::is_floating_point;
2057 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::is_floating_point;
2059 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::is_floating_point;
2061 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::is_floating_point;
2063 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::is_floating_point;
2065 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::is_floating_point;
2067 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::is_floating_point;
2069 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::is_floating_point;
2071 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::is_floating_point;
2073 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::is_floating_point;
2075 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::is_floating_point;
2077 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::is_floating_point;
2079 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::is_floating_point;
2081 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::is_floating_point;
2083 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::is_floating_point;
2085 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::is_floating_point;
2087 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::is_floating_point;
2089 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::is_floating_point;
2091 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::is_floating_point;
2093 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::is_floating_point;
2095 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::is_floating_point;
2097 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::is_floating_point;
2099 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::is_floating_point;
2101 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::is_floating_point;
2103 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::is_floating_point;
2105 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::is_floating_point;
2107 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::is_floating_point;
2109 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::is_floating_point;
2111 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::is_floating_point;
2113 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::is_floating_point;
2115 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::is_floating_point;
2117 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::is_floating_point;
2119 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::is_floating_point;
2121 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::is_floating_point;
2123 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::is_floating_point;
2125 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::is_floating_point;
2127 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::is_floating_point;
2129 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::is_floating_point;
2131 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::is_floating_point;
2133 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::is_floating_point;
2135 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::is_floating_point;
2137 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::is_floating_point;
2139 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::is_floating_point;
2141 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::is_floating_point;
2143 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::is_floating_point;
2145 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::is_floating_point;
2147 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::is_floating_point;
2149 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::is_floating_point;
2151 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::is_floating_point;
2153 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::is_floating_point;
2155 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::is_floating_point;
2157 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::is_floating_point;
2159 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::is_floating_point;
2161 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::is_floating_point;
2163 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::is_floating_point;
2165 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::is_floating_point;
2167 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::is_floating_point;
2169 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::is_floating_point;
2171 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::is_floating_point;
2172
2173 }
2174 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2176 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2177}
2178
2179
2181{
2182 switch (m_pixelFormat)
2183 { case PixelFormat::BayerGR8:
2184 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::GetUnpackedFormat();
2186 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::GetUnpackedFormat();
2188 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::GetUnpackedFormat();
2190 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::GetUnpackedFormat();
2192 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::GetUnpackedFormat();
2194 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::GetUnpackedFormat();
2196 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::GetUnpackedFormat();
2198 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::GetUnpackedFormat();
2200 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::GetUnpackedFormat();
2202 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::GetUnpackedFormat();
2204 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::GetUnpackedFormat();
2206 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::GetUnpackedFormat();
2207 case PixelFormat::Mono8:
2208 return detail::PixelFormatInfo<PixelFormat::Mono8>::GetUnpackedFormat();
2210 return detail::PixelFormatInfo<PixelFormat::Mono10>::GetUnpackedFormat();
2212 return detail::PixelFormatInfo<PixelFormat::Mono12>::GetUnpackedFormat();
2214 return detail::PixelFormatInfo<PixelFormat::Mono16>::GetUnpackedFormat();
2216 return detail::PixelFormatInfo<PixelFormat::Confidence8>::GetUnpackedFormat();
2218 return detail::PixelFormatInfo<PixelFormat::Confidence16>::GetUnpackedFormat();
2220 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::GetUnpackedFormat();
2222 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::GetUnpackedFormat();
2224 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::GetUnpackedFormat();
2226 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::GetUnpackedFormat();
2228 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::GetUnpackedFormat();
2230 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::GetUnpackedFormat();
2232 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::GetUnpackedFormat();
2233 case PixelFormat::RGB8:
2234 return detail::PixelFormatInfo<PixelFormat::RGB8>::GetUnpackedFormat();
2235 case PixelFormat::RGB10:
2236 return detail::PixelFormatInfo<PixelFormat::RGB10>::GetUnpackedFormat();
2237 case PixelFormat::RGB12:
2238 return detail::PixelFormatInfo<PixelFormat::RGB12>::GetUnpackedFormat();
2239 case PixelFormat::BGR8:
2240 return detail::PixelFormatInfo<PixelFormat::BGR8>::GetUnpackedFormat();
2241 case PixelFormat::BGR10:
2242 return detail::PixelFormatInfo<PixelFormat::BGR10>::GetUnpackedFormat();
2243 case PixelFormat::BGR12:
2244 return detail::PixelFormatInfo<PixelFormat::BGR12>::GetUnpackedFormat();
2245 case PixelFormat::RGBa8:
2246 return detail::PixelFormatInfo<PixelFormat::RGBa8>::GetUnpackedFormat();
2248 return detail::PixelFormatInfo<PixelFormat::RGBa10>::GetUnpackedFormat();
2250 return detail::PixelFormatInfo<PixelFormat::RGBa12>::GetUnpackedFormat();
2251 case PixelFormat::BGRa8:
2252 return detail::PixelFormatInfo<PixelFormat::BGRa8>::GetUnpackedFormat();
2254 return detail::PixelFormatInfo<PixelFormat::BGRa10>::GetUnpackedFormat();
2256 return detail::PixelFormatInfo<PixelFormat::BGRa12>::GetUnpackedFormat();
2258 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::GetUnpackedFormat();
2260 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::GetUnpackedFormat();
2262 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::GetUnpackedFormat();
2264 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::GetUnpackedFormat();
2266 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::GetUnpackedFormat();
2268 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::GetUnpackedFormat();
2270 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::GetUnpackedFormat();
2272 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::GetUnpackedFormat();
2274 return detail::PixelFormatInfo<PixelFormat::Mono10p>::GetUnpackedFormat();
2276 return detail::PixelFormatInfo<PixelFormat::Mono12p>::GetUnpackedFormat();
2278 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::GetUnpackedFormat();
2280 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::GetUnpackedFormat();
2282 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::GetUnpackedFormat();
2284 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::GetUnpackedFormat();
2286 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::GetUnpackedFormat();
2288 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::GetUnpackedFormat();
2290 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::GetUnpackedFormat();
2292 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::GetUnpackedFormat();
2294 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::GetUnpackedFormat();
2296 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::GetUnpackedFormat();
2298 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::GetUnpackedFormat();
2300 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::GetUnpackedFormat();
2302 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::GetUnpackedFormat();
2304 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::GetUnpackedFormat();
2306 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::GetUnpackedFormat();
2308 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::GetUnpackedFormat();
2310 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::GetUnpackedFormat();
2312 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::GetUnpackedFormat();
2314 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::GetUnpackedFormat();
2316 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::GetUnpackedFormat();
2318 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::GetUnpackedFormat();
2320 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::GetUnpackedFormat();
2322 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::GetUnpackedFormat();
2324 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::GetUnpackedFormat();
2326 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::GetUnpackedFormat();
2328 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::GetUnpackedFormat();
2330 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::GetUnpackedFormat();
2332 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::GetUnpackedFormat();
2334 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::GetUnpackedFormat();
2336 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::GetUnpackedFormat();
2338 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::GetUnpackedFormat();
2340 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::GetUnpackedFormat();
2342 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::GetUnpackedFormat();
2344 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::GetUnpackedFormat();
2346 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::GetUnpackedFormat();
2348 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::GetUnpackedFormat();
2350 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::GetUnpackedFormat();
2352 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::GetUnpackedFormat();
2354 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::GetUnpackedFormat();
2356 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::GetUnpackedFormat();
2358 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::GetUnpackedFormat();
2360 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::GetUnpackedFormat();
2362 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::GetUnpackedFormat();
2364 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::GetUnpackedFormat();
2366 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::GetUnpackedFormat();
2368 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::GetUnpackedFormat();
2370 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::GetUnpackedFormat();
2372 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::GetUnpackedFormat();
2374 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::GetUnpackedFormat();
2376 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::GetUnpackedFormat();
2378 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::GetUnpackedFormat();
2380 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::GetUnpackedFormat();
2382 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::GetUnpackedFormat();
2384 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::GetUnpackedFormat();
2386 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::GetUnpackedFormat();
2388 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::GetUnpackedFormat();
2390 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::GetUnpackedFormat();
2392 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::GetUnpackedFormat();
2394 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::GetUnpackedFormat();
2396 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::GetUnpackedFormat();
2398 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::GetUnpackedFormat();
2400 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::GetUnpackedFormat();
2402 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::GetUnpackedFormat();
2404 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::GetUnpackedFormat();
2406 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::GetUnpackedFormat();
2408 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::GetUnpackedFormat();
2410 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::GetUnpackedFormat();
2412 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::GetUnpackedFormat();
2414 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::GetUnpackedFormat();
2416 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::GetUnpackedFormat();
2418 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::GetUnpackedFormat();
2420 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::GetUnpackedFormat();
2422 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::GetUnpackedFormat();
2424 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::GetUnpackedFormat();
2425
2426 }
2427 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2429 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2430}
2431
2432
2433inline std::vector<Channel> PixelFormatInfo::GetChannels() const
2434{
2435 switch (m_pixelFormat)
2436 { case PixelFormat::BayerGR8:
2437 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8>>() };
2439 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10>>() };
2441 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12>>() };
2443 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8>>() };
2445 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10>>() };
2447 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12>>() };
2449 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8>>() };
2451 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10>>() };
2453 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12>>() };
2455 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8>>() };
2457 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10>>() };
2459 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12>>() };
2460 case PixelFormat::Mono8:
2461 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8>>() };
2463 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10>>() };
2465 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12>>() };
2467 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono16>>() };
2469 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Confidence8>>() };
2471 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Confidence16>>() };
2473 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C8>>() };
2475 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C16>>() };
2477 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>>() };
2479 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>>() };
2481 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>>() };
2483 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>>() };
2485 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>>() };
2486 case PixelFormat::RGB8:
2487 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB8>>() };
2488 case PixelFormat::RGB10:
2489 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB10>>() };
2490 case PixelFormat::RGB12:
2491 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB12>>() };
2492 case PixelFormat::BGR8:
2493 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR8>>() };
2494 case PixelFormat::BGR10:
2495 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR10>>() };
2496 case PixelFormat::BGR12:
2497 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR12>>() };
2498 case PixelFormat::RGBa8:
2499 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa8>>() };
2501 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa10>>() };
2503 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa12>>() };
2504 case PixelFormat::BGRa8:
2505 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa8>>() };
2507 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa10>>() };
2509 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa12>>() };
2511 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10p>>() };
2513 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12p>>() };
2515 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10p>>() };
2517 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12p>>() };
2519 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10p>>() };
2521 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12p>>() };
2523 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10p>>() };
2525 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12p>>() };
2527 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p>>() };
2529 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p>>() };
2531 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB10p32>>() };
2533 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR10p32>>() };
2535 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>>() };
2537 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>>() };
2539 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>>() };
2541 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>>() };
2543 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>>() };
2545 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>>() };
2547 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>>() };
2549 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>>() };
2551 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>>() };
2553 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>>() };
2555 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono32fIDS>>() };
2557 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB32fIDS>>() };
2559 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>>() };
2561 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>>() };
2563 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>>() };
2565 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>>() };
2567 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>>() };
2569 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>>() };
2571 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>>() };
2573 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>>() };
2575 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>>() };
2577 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>>() };
2579 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>>() };
2581 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>>() };
2583 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>>() };
2585 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>>() };
2587 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>>() };
2589 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>>() };
2591 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>>() };
2593 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>>() };
2595 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>>() };
2597 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>>() };
2599 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>>() };
2601 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>>() };
2603 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>>() };
2605 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>>() };
2607 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>>() };
2609 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>>() };
2611 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>>() };
2613 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>>() };
2615 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>>() };
2617 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>>() };
2619 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>>() };
2621 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>>() };
2623 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>>() };
2625 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>>() };
2627 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>>() };
2629 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>>() };
2631 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>>() };
2633 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>>() };
2635 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>>() };
2637 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>>() };
2639 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>>() };
2641 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>>() };
2643 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_AB>>() };
2645 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>>() };
2647 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>>() };
2649 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>>() };
2651 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>>() };
2653 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_AB>>() };
2655 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>>() };
2657 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>>() };
2659 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>>() };
2661 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>>() };
2663 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_AB>>() };
2665 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>>() };
2667 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>>() };
2669 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>>() };
2671 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>>() };
2673 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>>() };
2675 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>>() };
2677 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>>() };
2678
2679 }
2680 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2682 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2683}
2684template <>
2685
2687{
2688 switch (m_pixelFormat)
2689 { case PixelFormat::BayerGR8:
2690 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::minimumValuePerChannel;
2692 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::minimumValuePerChannel;
2694 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::minimumValuePerChannel;
2696 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::minimumValuePerChannel;
2698 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::minimumValuePerChannel;
2700 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::minimumValuePerChannel;
2702 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::minimumValuePerChannel;
2704 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::minimumValuePerChannel;
2706 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::minimumValuePerChannel;
2708 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::minimumValuePerChannel;
2710 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::minimumValuePerChannel;
2712 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::minimumValuePerChannel;
2713 case PixelFormat::Mono8:
2714 return detail::PixelFormatInfo<PixelFormat::Mono8>::minimumValuePerChannel;
2716 return detail::PixelFormatInfo<PixelFormat::Mono10>::minimumValuePerChannel;
2718 return detail::PixelFormatInfo<PixelFormat::Mono12>::minimumValuePerChannel;
2720 return detail::PixelFormatInfo<PixelFormat::Mono16>::minimumValuePerChannel;
2722 return detail::PixelFormatInfo<PixelFormat::Confidence8>::minimumValuePerChannel;
2724 return detail::PixelFormatInfo<PixelFormat::Confidence16>::minimumValuePerChannel;
2726 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::minimumValuePerChannel;
2728 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::minimumValuePerChannel;
2730 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::minimumValuePerChannel;
2732 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::minimumValuePerChannel;
2734 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::minimumValuePerChannel;
2735 case PixelFormat::RGB8:
2736 return detail::PixelFormatInfo<PixelFormat::RGB8>::minimumValuePerChannel;
2737 case PixelFormat::RGB10:
2738 return detail::PixelFormatInfo<PixelFormat::RGB10>::minimumValuePerChannel;
2739 case PixelFormat::RGB12:
2740 return detail::PixelFormatInfo<PixelFormat::RGB12>::minimumValuePerChannel;
2741 case PixelFormat::BGR8:
2742 return detail::PixelFormatInfo<PixelFormat::BGR8>::minimumValuePerChannel;
2743 case PixelFormat::BGR10:
2744 return detail::PixelFormatInfo<PixelFormat::BGR10>::minimumValuePerChannel;
2745 case PixelFormat::BGR12:
2746 return detail::PixelFormatInfo<PixelFormat::BGR12>::minimumValuePerChannel;
2747 case PixelFormat::RGBa8:
2748 return detail::PixelFormatInfo<PixelFormat::RGBa8>::minimumValuePerChannel;
2750 return detail::PixelFormatInfo<PixelFormat::RGBa10>::minimumValuePerChannel;
2752 return detail::PixelFormatInfo<PixelFormat::RGBa12>::minimumValuePerChannel;
2753 case PixelFormat::BGRa8:
2754 return detail::PixelFormatInfo<PixelFormat::BGRa8>::minimumValuePerChannel;
2756 return detail::PixelFormatInfo<PixelFormat::BGRa10>::minimumValuePerChannel;
2758 return detail::PixelFormatInfo<PixelFormat::BGRa12>::minimumValuePerChannel;
2760 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::minimumValuePerChannel;
2762 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::minimumValuePerChannel;
2764 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::minimumValuePerChannel;
2766 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::minimumValuePerChannel;
2768 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::minimumValuePerChannel;
2770 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::minimumValuePerChannel;
2772 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::minimumValuePerChannel;
2774 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::minimumValuePerChannel;
2776 return detail::PixelFormatInfo<PixelFormat::Mono10p>::minimumValuePerChannel;
2778 return detail::PixelFormatInfo<PixelFormat::Mono12p>::minimumValuePerChannel;
2780 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::minimumValuePerChannel;
2782 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::minimumValuePerChannel;
2784 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::minimumValuePerChannel;
2786 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::minimumValuePerChannel;
2788 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::minimumValuePerChannel;
2790 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::minimumValuePerChannel;
2792 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::minimumValuePerChannel;
2794 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::minimumValuePerChannel;
2796 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::minimumValuePerChannel;
2798 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::minimumValuePerChannel;
2800 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::minimumValuePerChannel;
2802 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::minimumValuePerChannel;
2804 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::minimumValuePerChannel;
2806 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::minimumValuePerChannel;
2808 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::minimumValuePerChannel;
2810 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::minimumValuePerChannel;
2812 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::minimumValuePerChannel;
2814 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::minimumValuePerChannel;
2816 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::minimumValuePerChannel;
2818 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::minimumValuePerChannel;
2820 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::minimumValuePerChannel;
2822 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::minimumValuePerChannel;
2824 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::minimumValuePerChannel;
2826 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::minimumValuePerChannel;
2828 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::minimumValuePerChannel;
2830 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::minimumValuePerChannel;
2832 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::minimumValuePerChannel;
2834 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::minimumValuePerChannel;
2836 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::minimumValuePerChannel;
2838 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::minimumValuePerChannel;
2840 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::minimumValuePerChannel;
2842 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::minimumValuePerChannel;
2844 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::minimumValuePerChannel;
2846 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::minimumValuePerChannel;
2848 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::minimumValuePerChannel;
2850 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::minimumValuePerChannel;
2852 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::minimumValuePerChannel;
2854 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::minimumValuePerChannel;
2856 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::minimumValuePerChannel;
2858 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::minimumValuePerChannel;
2860 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::minimumValuePerChannel;
2862 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::minimumValuePerChannel;
2864 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::minimumValuePerChannel;
2866 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::minimumValuePerChannel;
2868 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::minimumValuePerChannel;
2870 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::minimumValuePerChannel;
2872 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::minimumValuePerChannel;
2874 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::minimumValuePerChannel;
2876 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::minimumValuePerChannel;
2878 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::minimumValuePerChannel;
2880 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::minimumValuePerChannel;
2882 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::minimumValuePerChannel;
2884 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::minimumValuePerChannel;
2886 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::minimumValuePerChannel;
2888 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::minimumValuePerChannel;
2890 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::minimumValuePerChannel;
2892 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::minimumValuePerChannel;
2894 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::minimumValuePerChannel;
2896 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::minimumValuePerChannel;
2898 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::minimumValuePerChannel;
2900 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::minimumValuePerChannel;
2902 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::minimumValuePerChannel;
2904 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::minimumValuePerChannel;
2906 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::minimumValuePerChannel;
2908 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::minimumValuePerChannel;
2910 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::minimumValuePerChannel;
2912 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::minimumValuePerChannel;
2914 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::minimumValuePerChannel;
2916 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::minimumValuePerChannel;
2918 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::minimumValuePerChannel;
2920 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::minimumValuePerChannel;
2922 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::minimumValuePerChannel;
2923 default:
2925 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
2926 }
2927}
2928template <>
2929
2931{
2932 switch (m_pixelFormat)
2934 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::minimumValuePerChannel;
2936 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::minimumValuePerChannel;
2938 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::minimumValuePerChannel;
2940 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::minimumValuePerChannel;
2941 default:
2943 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
2944 }
2945}
2946template <>
2947
2949{
2950 switch (m_pixelFormat)
2951 { case PixelFormat::BayerGR8:
2952 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::maximumValuePerChannel;
2954 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::maximumValuePerChannel;
2956 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::maximumValuePerChannel;
2958 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::maximumValuePerChannel;
2960 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::maximumValuePerChannel;
2962 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::maximumValuePerChannel;
2964 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::maximumValuePerChannel;
2966 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::maximumValuePerChannel;
2968 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::maximumValuePerChannel;
2970 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::maximumValuePerChannel;
2972 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::maximumValuePerChannel;
2974 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::maximumValuePerChannel;
2975 case PixelFormat::Mono8:
2976 return detail::PixelFormatInfo<PixelFormat::Mono8>::maximumValuePerChannel;
2978 return detail::PixelFormatInfo<PixelFormat::Mono10>::maximumValuePerChannel;
2980 return detail::PixelFormatInfo<PixelFormat::Mono12>::maximumValuePerChannel;
2982 return detail::PixelFormatInfo<PixelFormat::Mono16>::maximumValuePerChannel;
2984 return detail::PixelFormatInfo<PixelFormat::Confidence8>::maximumValuePerChannel;
2986 return detail::PixelFormatInfo<PixelFormat::Confidence16>::maximumValuePerChannel;
2988 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::maximumValuePerChannel;
2990 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::maximumValuePerChannel;
2992 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::maximumValuePerChannel;
2994 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::maximumValuePerChannel;
2996 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::maximumValuePerChannel;
2997 case PixelFormat::RGB8:
2998 return detail::PixelFormatInfo<PixelFormat::RGB8>::maximumValuePerChannel;
2999 case PixelFormat::RGB10:
3000 return detail::PixelFormatInfo<PixelFormat::RGB10>::maximumValuePerChannel;
3001 case PixelFormat::RGB12:
3002 return detail::PixelFormatInfo<PixelFormat::RGB12>::maximumValuePerChannel;
3003 case PixelFormat::BGR8:
3004 return detail::PixelFormatInfo<PixelFormat::BGR8>::maximumValuePerChannel;
3005 case PixelFormat::BGR10:
3006 return detail::PixelFormatInfo<PixelFormat::BGR10>::maximumValuePerChannel;
3007 case PixelFormat::BGR12:
3008 return detail::PixelFormatInfo<PixelFormat::BGR12>::maximumValuePerChannel;
3009 case PixelFormat::RGBa8:
3010 return detail::PixelFormatInfo<PixelFormat::RGBa8>::maximumValuePerChannel;
3012 return detail::PixelFormatInfo<PixelFormat::RGBa10>::maximumValuePerChannel;
3014 return detail::PixelFormatInfo<PixelFormat::RGBa12>::maximumValuePerChannel;
3015 case PixelFormat::BGRa8:
3016 return detail::PixelFormatInfo<PixelFormat::BGRa8>::maximumValuePerChannel;
3018 return detail::PixelFormatInfo<PixelFormat::BGRa10>::maximumValuePerChannel;
3020 return detail::PixelFormatInfo<PixelFormat::BGRa12>::maximumValuePerChannel;
3022 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::maximumValuePerChannel;
3024 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::maximumValuePerChannel;
3026 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::maximumValuePerChannel;
3028 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::maximumValuePerChannel;
3030 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::maximumValuePerChannel;
3032 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::maximumValuePerChannel;
3034 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::maximumValuePerChannel;
3036 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::maximumValuePerChannel;
3038 return detail::PixelFormatInfo<PixelFormat::Mono10p>::maximumValuePerChannel;
3040 return detail::PixelFormatInfo<PixelFormat::Mono12p>::maximumValuePerChannel;
3042 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::maximumValuePerChannel;
3044 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::maximumValuePerChannel;
3046 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::maximumValuePerChannel;
3048 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::maximumValuePerChannel;
3050 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::maximumValuePerChannel;
3052 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::maximumValuePerChannel;
3054 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::maximumValuePerChannel;
3056 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::maximumValuePerChannel;
3058 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::maximumValuePerChannel;
3060 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::maximumValuePerChannel;
3062 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::maximumValuePerChannel;
3064 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::maximumValuePerChannel;
3066 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::maximumValuePerChannel;
3068 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::maximumValuePerChannel;
3070 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::maximumValuePerChannel;
3072 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::maximumValuePerChannel;
3074 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::maximumValuePerChannel;
3076 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::maximumValuePerChannel;
3078 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::maximumValuePerChannel;
3080 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::maximumValuePerChannel;
3082 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::maximumValuePerChannel;
3084 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::maximumValuePerChannel;
3086 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::maximumValuePerChannel;
3088 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::maximumValuePerChannel;
3090 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::maximumValuePerChannel;
3092 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::maximumValuePerChannel;
3094 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::maximumValuePerChannel;
3096 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::maximumValuePerChannel;
3098 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::maximumValuePerChannel;
3100 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::maximumValuePerChannel;
3102 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::maximumValuePerChannel;
3104 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::maximumValuePerChannel;
3106 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::maximumValuePerChannel;
3108 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::maximumValuePerChannel;
3110 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::maximumValuePerChannel;
3112 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::maximumValuePerChannel;
3114 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::maximumValuePerChannel;
3116 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::maximumValuePerChannel;
3118 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::maximumValuePerChannel;
3120 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::maximumValuePerChannel;
3122 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::maximumValuePerChannel;
3124 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::maximumValuePerChannel;
3126 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::maximumValuePerChannel;
3128 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::maximumValuePerChannel;
3130 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::maximumValuePerChannel;
3132 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::maximumValuePerChannel;
3134 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::maximumValuePerChannel;
3136 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::maximumValuePerChannel;
3138 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::maximumValuePerChannel;
3140 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::maximumValuePerChannel;
3142 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::maximumValuePerChannel;
3144 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::maximumValuePerChannel;
3146 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::maximumValuePerChannel;
3148 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::maximumValuePerChannel;
3150 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::maximumValuePerChannel;
3152 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::maximumValuePerChannel;
3154 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::maximumValuePerChannel;
3156 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::maximumValuePerChannel;
3158 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::maximumValuePerChannel;
3160 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::maximumValuePerChannel;
3162 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::maximumValuePerChannel;
3164 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::maximumValuePerChannel;
3166 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::maximumValuePerChannel;
3168 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::maximumValuePerChannel;
3170 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::maximumValuePerChannel;
3172 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::maximumValuePerChannel;
3174 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::maximumValuePerChannel;
3176 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::maximumValuePerChannel;
3178 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::maximumValuePerChannel;
3180 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::maximumValuePerChannel;
3182 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::maximumValuePerChannel;
3184 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::maximumValuePerChannel;
3185 default:
3187 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
3188 }
3189}
3190template <>
3191
3193{
3194 switch (m_pixelFormat)
3196 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::maximumValuePerChannel;
3198 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::maximumValuePerChannel;
3200 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::maximumValuePerChannel;
3202 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::maximumValuePerChannel;
3203 default:
3205 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
3206 }
3207}
3208
3209} // namespace common
3210} // namespace peak
3211
3212
Thrown when a function receives an invalid parameter.
std::vector< Channel > GetChannels() const
Returns the list of channels in the pixel format.
PixelFormatInfo(peak::common::PixelFormat pixelFormat)
Constructs a PixelFormatInfo object for the specified pixel format.
T GetMinimumValuePerChannel() const
Returns the minimum possible value per channel for the pixel format.
PixelFormat GetUnpackedPixelFormat() const
Returns the unpacked pixel format for a packed pixel format.
size_t GetStorageBitsPerPixel() const
Returns the total number of bits used per pixel for storage.
size_t GetSizeInBytes(const Size &size) const
Calculates the memory size in bytes for a given image size.
size_t GetAllocatedBitsPerPixel() const
Returns the number of allocated bits per pixel.
T GetMaximumValuePerChannel() const
Returns the maximum possible value per channel for the pixel format.
size_t GetStorageBitsPerChannel() const
Returns the number of bits used per channel for storage.
std::string GetName() const
Returns the human-readable name of the pixel format.
bool IsFloat() const
Returns whether the pixel format uses floating points.
bool IsInterleaved() const
Indicates whether the pixel format is interleaved.
bool IsPacked() const
Returns whether the pixel format is packed.
Represents a two-dimensional size with non-negative width and height.
PixelFormat
Enum listing all supported pixel formats and their internal IDs.
@ RGB32fIDS
RGB 32-Bit float format (IDS)
@ BayerGR12p_I_A_B
BayerGR 12-Bit packed format line Interleaved Components A, B.
@ BayerGB12_AB
BayerGB 12-Bit pixel format Components A, B.
@ BayerRG12g24IDS
BayerRG 12-Bit grouped 24-bit (IDS)
@ BayerBG12p_I_A_B
BayerBG 12-Bit packed format line Interleaved Components A, B.
@ Coord3D_C8
3D coordinate C 8-Bit format
@ Mono10g40IDS_I_A_B
Mono 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ RGBa10
RGBA 10-Bit pixel format.
@ RGB8
RGB 8-Bit pixel format.
@ Mono10_I_AB_CD
Mono 10-Bit pixel format pixel Interleaved Components A, B, C, D.
@ Mono12p
Mono 12-Bit packed format.
@ Mono12
Mono 12-Bit pixel format.
@ BGR10p32
BGR 10-Bit packed 32-bit format.
@ BayerGR12_AB
BayerGR 12-Bit pixel format Components A, B.
@ BayerGB10
BayerGB 10-Bit pixel format.
@ BayerBG8_I_A_B
BayerBG 8-Bit pixel format line Interleaved Components A, B.
@ BayerGB12p_I_A_B
BayerGB 12-Bit packed format line Interleaved Components A, B.
@ BayerRG12p
BayerRG 12-Bit packed format.
@ BayerBG10
BayerBG 10-Bit pixel format.
@ BayerGR10_I_A_B
BayerGR 10-Bit pixel format line Interleaved Components A, B.
@ RGBa8
RGBA 8-Bit pixel format.
@ Mono10g40IDS
Mono 10-Bit grouped 40-bit (IDS)
@ BayerRG8_I_A_B
BayerRG 8-Bit pixel format line Interleaved Components A, B.
@ BayerGB10g40IDS_I_A_B
BayerGB 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ BayerGR10g40IDS
BayerGR 10-Bit grouped 40-bit (IDS)
@ BayerGR12_I_A_B
BayerGR 12-Bit pixel format line Interleaved Components A, B.
@ BayerBG8_AB
BayerBG 8-Bit pixel format Components A, B.
@ BayerBG10p
BayerBG 10-Bit packed format.
@ BayerRG10p_I_A_B
BayerRG 10-Bit packed format line Interleaved Components A, B.
@ Mono10_ABCD
Mono 10-Bit pixel format Components A, B, C, D.
@ RGBa12
RGBA 12-Bit pixel format.
@ BayerGB10p_I_A_B
BayerGB 10-Bit packed format line Interleaved Components A, B.
@ BayerGB12p
BayerGB 12-Bit packed format.
@ BGRa12
BGRA 12-Bit pixel format.
@ BayerGR12
BayerGR 12-Bit pixel format.
@ Mono10p_I_A_B
Mono 10-Bit packed format line Interleaved Components A, B.
@ BayerRG10p
BayerRG 10-Bit packed format.
@ BayerGR8_I_A_B
BayerGR 8-Bit pixel format line Interleaved Components A, B.
@ BayerGR10p_I_A_B
BayerGR 10-Bit packed format line Interleaved Components A, B.
@ BayerRG12
BayerRG 12-Bit pixel format.
@ BayerBG10g40IDS_I_A_B
BayerBG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ BayerGR12p
BayerGR 12-Bit packed format.
@ BayerGR8
BayerGR 8-Bit pixel format.
@ BayerBG12p
BayerBG 12-Bit packed format.
@ BayerBG8
BayerBG 8-Bit pixel format.
@ BayerBG12_AB
BayerBG 12-Bit pixel format Components A, B.
@ Confidence16
Confidence 16-Bit format.
@ BayerGB12_I_A_B
BayerGB 12-Bit pixel format line Interleaved Components A, B.
@ Mono12g24IDS
Mono 12-Bit grouped 24-bit (IDS)
@ BayerRG10
BayerRG 10-Bit pixel format.
@ BayerGB12
BayerGB 12-Bit pixel format.
@ Mono8_I_AB_CD
Mono 8-Bit pixel format pixel Interleaved Components A, B, C, D.
@ BayerRG8
BayerRG 8-Bit pixel format.
@ BayerGR10p
BayerGR 10-Bit packed format.
@ BayerBG12_I_A_B
BayerBG 12-Bit pixel format line Interleaved Components A, B.
@ BayerBG10_AB
BayerBG 10-Bit pixel format Components A, B.
@ YUV422_8_UYVY
UYVY 4:2:2 8-Bit format.
@ YUV420_8_YY_VU_SemiplanarIDS
YUV4:2:0 8-Bit YY/VU semiplanar (IDS)
@ BayerRG12g24IDS_I_A_B
BayerRG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ Mono8_ABCD
Mono 8-Bit pixel format Components A, B, C, D.
@ Mono12p_I_AB_CD
Mono 12-Bit packed format pixel Interleaved Components A, B, C, D.
@ BayerGB8
BayerGB 8-Bit pixel format.
@ Mono12_I_AB_CD
Mono 12-Bit pixel format pixel Interleaved Components A, B, C, D.
@ Mono10_I_A_B
Mono 10-Bit pixel format line Interleaved Components A, B.
@ BGR12
BGR 12-Bit pixel format.
@ Mono8_AB
Mono 8-Bit pixel format Components A, B.
@ Confidence8
Confidence 8-Bit format.
@ Mono10g40IDS_I_AB_CD
Mono 10-Bit grouped 40-bit (IDS) pixel Interleaved Components A, B, C, D.
@ BayerRG10g40IDS_I_A_B
BayerRG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ BayerGR12g24IDS_I_A_B
BayerGR 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ RGB10
RGB 10-Bit pixel format.
@ BayerGR12g24IDS
BayerGR 12-Bit grouped 24-bit (IDS)
@ YUV420_8_YY_UV_SemiplanarIDS
YUV4:2:0 8-Bit YY/UV semiplanar (IDS)
@ BayerGR10
BayerGR 10-Bit pixel format.
@ Coord3D_C32f
3D coordinate C 32-Bit float format
@ Mono16
Mono 16-Bit pixel format.
@ Mono10
Mono 10-Bit pixel format.
@ BayerRG12_AB
BayerRG 12-Bit pixel format Components A, B.
@ Mono10p_I_AB_CD
Mono 10-Bit packed format pixel Interleaved Components A, B, C, D.
@ Mono12g24IDS_I_A_B
Mono 12-Bit grouped 24-bit (IDS) line Interleaved Components A, B.
@ BayerRG10_AB
BayerRG 10-Bit pixel format Components A, B.
@ Mono8
Mono 8-Bit pixel format.
@ Mono12_I_A_B
Mono 12-Bit pixel format line Interleaved Components A, B.
@ BGR10
BGR 10-Bit pixel format.
@ BayerBG10_I_A_B
BayerBG 10-Bit pixel format line Interleaved Components A, B.
@ Mono12p_I_A_B
Mono 12-Bit packed format line Interleaved Components A, B.
@ BayerGB12g24IDS_I_A_B
BayerGB 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ Coord3D_ABC32f
3D coordinates A, B, C 32-Bit float format
@ RGB12
RGB 12-Bit pixel format.
@ BayerGB10_I_A_B
BayerGB 10-Bit pixel format line Interleaved Components A, B.
@ BayerBG10p_I_A_B
BayerBG 10-Bit packed format line Interleaved Components A, B.
@ BayerGR10_AB
BayerGR 10-Bit pixel format Components A, B.
@ BayerBG12
BayerBG 12-Bit pixel format.
@ BayerBG10g40IDS
BayerBG 10-Bit grouped 40-bit (IDS)
@ BayerGR8_AB
BayerGR 8-Bit pixel format Components A, B.
@ BayerGB10p
BayerGB 10-Bit packed format.
@ Mono12g24IDS_I_AB_CD
Mono 12-Bit grouped 24-bit (IDS) pixel Interleaved Components A, B, C, D.
@ Mono32fIDS
Mono 32-Bit float format (IDS)
@ BayerRG8_AB
BayerRG 8-Bit pixel format Components A, B.
@ BGRa8
BGRA 8-Bit pixel format.
@ BayerGB8_AB
BayerGB 8-Bit pixel format Components A, B.
@ BayerGB10_AB
BayerGB 10-Bit pixel format Components A, B.
@ BGRa10
BGRA 10-Bit pixel format.
@ Coord3D_C16
3D coordinate C 16-Bit format
@ BayerRG12_I_A_B
BayerRG 12-Bit pixel format line Interleaved Components A, B.
@ BGR8
BGR 8-Bit pixel format.
@ BayerBG12g24IDS_I_A_B
BayerBG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ BayerBG12g24IDS
BayerBG 12-Bit grouped 24-bit (IDS)
@ Mono8_I_A_B
Mono 8-Bit pixel format line Interleaved Components A, B.
@ Mono12_AB
Mono 12-Bit pixel format Components A, B.
@ Mono10_AB
Mono 10-Bit pixel format Components A, B.
@ BayerGR10g40IDS_I_A_B
BayerGR 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
@ Mono10p
Mono 10-Bit packed format.
@ BayerRG10g40IDS
BayerRG 10-Bit grouped 40-bit (IDS)
@ BayerGB8_I_A_B
BayerGB 8-Bit pixel format line Interleaved Components A, B.
@ BayerRG12p_I_A_B
BayerRG 12-Bit packed format line Interleaved Components A, B.
@ Mono12_ABCD
Mono 12-Bit pixel format Components A, B, C, D.
@ BayerRG10_I_A_B
BayerRG 10-Bit pixel format line Interleaved Components A, B.
@ RGB10p32
RGB 10-Bit packed 32-bit format.
@ BayerGB10g40IDS
BayerGB 10-Bit grouped 40-bit (IDS)
@ BayerGB12g24IDS
BayerGB 12-Bit grouped 24-bit (IDS)