IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_common_pixel_format_info.ipp
Go to the documentation of this file.
1
6
7#pragma once
8
10
11
12namespace peak
13{
14namespace common
15{
16
17inline PixelFormatInfo::PixelFormatInfo(const std::string& name)
18{
19 static const std::unordered_map<std::string, PixelFormat> map = {
20 { detail::PixelFormatInfo<PixelFormat::BayerGR8>::Name(), PixelFormat::BayerGR8 },
21 { detail::PixelFormatInfo<PixelFormat::BayerGR10>::Name(), PixelFormat::BayerGR10 },
22 { detail::PixelFormatInfo<PixelFormat::BayerGR12>::Name(), PixelFormat::BayerGR12 },
23 { detail::PixelFormatInfo<PixelFormat::BayerRG8>::Name(), PixelFormat::BayerRG8 },
24 { detail::PixelFormatInfo<PixelFormat::BayerRG10>::Name(), PixelFormat::BayerRG10 },
25 { detail::PixelFormatInfo<PixelFormat::BayerRG12>::Name(), PixelFormat::BayerRG12 },
26 { detail::PixelFormatInfo<PixelFormat::BayerGB8>::Name(), PixelFormat::BayerGB8 },
27 { detail::PixelFormatInfo<PixelFormat::BayerGB10>::Name(), PixelFormat::BayerGB10 },
28 { detail::PixelFormatInfo<PixelFormat::BayerGB12>::Name(), PixelFormat::BayerGB12 },
29 { detail::PixelFormatInfo<PixelFormat::BayerBG8>::Name(), PixelFormat::BayerBG8 },
30 { detail::PixelFormatInfo<PixelFormat::BayerBG10>::Name(), PixelFormat::BayerBG10 },
31 { detail::PixelFormatInfo<PixelFormat::BayerBG12>::Name(), PixelFormat::BayerBG12 },
32 { detail::PixelFormatInfo<PixelFormat::Mono8>::Name(), PixelFormat::Mono8 },
33 { detail::PixelFormatInfo<PixelFormat::Mono10>::Name(), PixelFormat::Mono10 },
34 { detail::PixelFormatInfo<PixelFormat::Mono12>::Name(), PixelFormat::Mono12 },
35 { detail::PixelFormatInfo<PixelFormat::Mono16>::Name(), PixelFormat::Mono16 },
36 { detail::PixelFormatInfo<PixelFormat::Confidence8>::Name(), PixelFormat::Confidence8 },
37 { detail::PixelFormatInfo<PixelFormat::Confidence16>::Name(), PixelFormat::Confidence16 },
38 { detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::Name(), PixelFormat::Coord3D_C8 },
39 { detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::Name(), PixelFormat::Coord3D_C16 },
40 { detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::Name(), PixelFormat::Coord3D_C32f },
41 { detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::Name(), PixelFormat::Coord3D_ABC32f },
42 { detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::Name(), PixelFormat::YUV420_8_YY_UV_SemiplanarIDS },
43 { detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::Name(), PixelFormat::YUV420_8_YY_VU_SemiplanarIDS },
44 { detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::Name(), PixelFormat::YUV422_8_UYVY },
45 { detail::PixelFormatInfo<PixelFormat::RGB8>::Name(), PixelFormat::RGB8 },
46 { detail::PixelFormatInfo<PixelFormat::RGB10>::Name(), PixelFormat::RGB10 },
47 { detail::PixelFormatInfo<PixelFormat::RGB12>::Name(), PixelFormat::RGB12 },
48 { detail::PixelFormatInfo<PixelFormat::BGR8>::Name(), PixelFormat::BGR8 },
49 { detail::PixelFormatInfo<PixelFormat::BGR10>::Name(), PixelFormat::BGR10 },
50 { detail::PixelFormatInfo<PixelFormat::BGR12>::Name(), PixelFormat::BGR12 },
51 { detail::PixelFormatInfo<PixelFormat::RGBa8>::Name(), PixelFormat::RGBa8 },
52 { detail::PixelFormatInfo<PixelFormat::RGBa10>::Name(), PixelFormat::RGBa10 },
53 { detail::PixelFormatInfo<PixelFormat::RGBa12>::Name(), PixelFormat::RGBa12 },
54 { detail::PixelFormatInfo<PixelFormat::BGRa8>::Name(), PixelFormat::BGRa8 },
55 { detail::PixelFormatInfo<PixelFormat::BGRa10>::Name(), PixelFormat::BGRa10 },
56 { detail::PixelFormatInfo<PixelFormat::BGRa12>::Name(), PixelFormat::BGRa12 },
57 { detail::PixelFormatInfo<PixelFormat::BayerBG10p>::Name(), PixelFormat::BayerBG10p },
58 { detail::PixelFormatInfo<PixelFormat::BayerBG12p>::Name(), PixelFormat::BayerBG12p },
59 { detail::PixelFormatInfo<PixelFormat::BayerGB10p>::Name(), PixelFormat::BayerGB10p },
60 { detail::PixelFormatInfo<PixelFormat::BayerGB12p>::Name(), PixelFormat::BayerGB12p },
61 { detail::PixelFormatInfo<PixelFormat::BayerGR10p>::Name(), PixelFormat::BayerGR10p },
62 { detail::PixelFormatInfo<PixelFormat::BayerGR12p>::Name(), PixelFormat::BayerGR12p },
63 { detail::PixelFormatInfo<PixelFormat::BayerRG10p>::Name(), PixelFormat::BayerRG10p },
64 { detail::PixelFormatInfo<PixelFormat::BayerRG12p>::Name(), PixelFormat::BayerRG12p },
65 { detail::PixelFormatInfo<PixelFormat::Mono10p>::Name(), PixelFormat::Mono10p },
66 { detail::PixelFormatInfo<PixelFormat::Mono12p>::Name(), PixelFormat::Mono12p },
67 { detail::PixelFormatInfo<PixelFormat::RGB10p32>::Name(), PixelFormat::RGB10p32 },
68 { detail::PixelFormatInfo<PixelFormat::BGR10p32>::Name(), PixelFormat::BGR10p32 },
69 { detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::Name(), PixelFormat::BayerRG10g40IDS },
70 { detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::Name(), PixelFormat::BayerGB10g40IDS },
71 { detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::Name(), PixelFormat::BayerGR10g40IDS },
72 { detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::Name(), PixelFormat::BayerBG10g40IDS },
73 { detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::Name(), PixelFormat::BayerRG12g24IDS },
74 { detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::Name(), PixelFormat::BayerGB12g24IDS },
75 { detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::Name(), PixelFormat::BayerGR12g24IDS },
76 { detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::Name(), PixelFormat::BayerBG12g24IDS },
77 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::Name(), PixelFormat::Mono10g40IDS },
78 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::Name(), PixelFormat::Mono12g24IDS },
79 { detail::PixelFormatInfo<PixelFormat::Mono32f>::Name(), PixelFormat::Mono32f },
80 { detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::Name(), PixelFormat::Mono32fIDS },
81 { detail::PixelFormatInfo<PixelFormat::RGB32f>::Name(), PixelFormat::RGB32f },
82 { detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::Name(), PixelFormat::RGB32fIDS },
83 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::Name(), PixelFormat::Mono10g40IDS_I_A_B },
84 { detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::Name(), PixelFormat::BayerRG10g40IDS_I_A_B },
85 { detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::Name(), PixelFormat::BayerBG10g40IDS_I_A_B },
86 { detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::Name(), PixelFormat::BayerGR10g40IDS_I_A_B },
87 { detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::Name(), PixelFormat::BayerGB10g40IDS_I_A_B },
88 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::Name(), PixelFormat::Mono12g24IDS_I_A_B },
89 { detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::Name(), PixelFormat::BayerRG12g24IDS_I_A_B },
90 { detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::Name(), PixelFormat::BayerBG12g24IDS_I_A_B },
91 { detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::Name(), PixelFormat::BayerGR12g24IDS_I_A_B },
92 { detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::Name(), PixelFormat::BayerGB12g24IDS_I_A_B },
93 { detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::Name(), PixelFormat::Mono8_I_A_B },
94 { detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::Name(), PixelFormat::BayerRG8_I_A_B },
95 { detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::Name(), PixelFormat::BayerBG8_I_A_B },
96 { detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::Name(), PixelFormat::BayerGR8_I_A_B },
97 { detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::Name(), PixelFormat::BayerGB8_I_A_B },
98 { detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::Name(), PixelFormat::Mono10_I_A_B },
99 { detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::Name(), PixelFormat::BayerRG10_I_A_B },
100 { detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::Name(), PixelFormat::BayerBG10_I_A_B },
101 { detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::Name(), PixelFormat::BayerGR10_I_A_B },
102 { detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::Name(), PixelFormat::BayerGB10_I_A_B },
103 { detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::Name(), PixelFormat::Mono12_I_A_B },
104 { detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::Name(), PixelFormat::BayerRG12_I_A_B },
105 { detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::Name(), PixelFormat::BayerBG12_I_A_B },
106 { detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::Name(), PixelFormat::BayerGR12_I_A_B },
107 { detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::Name(), PixelFormat::BayerGB12_I_A_B },
108 { detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::Name(), PixelFormat::Mono10p_I_A_B },
109 { detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::Name(), PixelFormat::BayerRG10p_I_A_B },
110 { detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::Name(), PixelFormat::BayerBG10p_I_A_B },
111 { detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::Name(), PixelFormat::BayerGR10p_I_A_B },
112 { detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::Name(), PixelFormat::BayerGB10p_I_A_B },
113 { detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::Name(), PixelFormat::Mono12p_I_A_B },
114 { detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::Name(), PixelFormat::BayerRG12p_I_A_B },
115 { detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::Name(), PixelFormat::BayerBG12p_I_A_B },
116 { detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::Name(), PixelFormat::BayerGR12p_I_A_B },
117 { detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::Name(), PixelFormat::BayerGB12p_I_A_B },
118 { detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::Name(), PixelFormat::Mono8_I_AB_CD },
119 { detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::Name(), PixelFormat::Mono10_I_AB_CD },
120 { detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::Name(), PixelFormat::Mono12_I_AB_CD },
121 { detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::Name(), PixelFormat::Mono10p_I_AB_CD },
122 { detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::Name(), PixelFormat::Mono12p_I_AB_CD },
123 { detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::Name(), PixelFormat::Mono10g40IDS_I_AB_CD },
124 { detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::Name(), PixelFormat::Mono12g24IDS_I_AB_CD },
125 { detail::PixelFormatInfo<PixelFormat::Mono10_AB>::Name(), PixelFormat::Mono10_AB },
126 { detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::Name(), PixelFormat::BayerRG10_AB },
127 { detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::Name(), PixelFormat::BayerBG10_AB },
128 { detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::Name(), PixelFormat::BayerGR10_AB },
129 { detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::Name(), PixelFormat::BayerGB10_AB },
130 { detail::PixelFormatInfo<PixelFormat::Mono12_AB>::Name(), PixelFormat::Mono12_AB },
131 { detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::Name(), PixelFormat::BayerRG12_AB },
132 { detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::Name(), PixelFormat::BayerBG12_AB },
133 { detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::Name(), PixelFormat::BayerGR12_AB },
134 { detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::Name(), PixelFormat::BayerGB12_AB },
135 { detail::PixelFormatInfo<PixelFormat::Mono8_AB>::Name(), PixelFormat::Mono8_AB },
136 { detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::Name(), PixelFormat::BayerRG8_AB },
137 { detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::Name(), PixelFormat::BayerBG8_AB },
138 { detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::Name(), PixelFormat::BayerGR8_AB },
139 { detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::Name(), PixelFormat::BayerGB8_AB },
140 { detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::Name(), PixelFormat::Mono8_ABCD },
141 { detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::Name(), PixelFormat::Mono10_ABCD },
142 { detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::Name(), PixelFormat::Mono12_ABCD },
143
144 };
145
146 const auto iter = map.find(name);
147 if (iter == map.end())
148 {
149 throw InvalidParameterException("The given pixel format " + name + " is unknown!");
150 }
151 m_pixelFormat = iter->second;
152}
153
154
156{
157 switch (m_pixelFormat)
159 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::storageBitsPerPixel;
161 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::storageBitsPerPixel;
163 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::storageBitsPerPixel;
165 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::storageBitsPerPixel;
167 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::storageBitsPerPixel;
169 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::storageBitsPerPixel;
171 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::storageBitsPerPixel;
173 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::storageBitsPerPixel;
175 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::storageBitsPerPixel;
177 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::storageBitsPerPixel;
179 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::storageBitsPerPixel;
181 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::storageBitsPerPixel;
183 return detail::PixelFormatInfo<PixelFormat::Mono8>::storageBitsPerPixel;
185 return detail::PixelFormatInfo<PixelFormat::Mono10>::storageBitsPerPixel;
187 return detail::PixelFormatInfo<PixelFormat::Mono12>::storageBitsPerPixel;
189 return detail::PixelFormatInfo<PixelFormat::Mono16>::storageBitsPerPixel;
191 return detail::PixelFormatInfo<PixelFormat::Confidence8>::storageBitsPerPixel;
193 return detail::PixelFormatInfo<PixelFormat::Confidence16>::storageBitsPerPixel;
195 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::storageBitsPerPixel;
197 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::storageBitsPerPixel;
199 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::storageBitsPerPixel;
201 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::storageBitsPerPixel;
203 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::storageBitsPerPixel;
205 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::storageBitsPerPixel;
207 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::storageBitsPerPixel;
209 return detail::PixelFormatInfo<PixelFormat::RGB8>::storageBitsPerPixel;
211 return detail::PixelFormatInfo<PixelFormat::RGB10>::storageBitsPerPixel;
213 return detail::PixelFormatInfo<PixelFormat::RGB12>::storageBitsPerPixel;
215 return detail::PixelFormatInfo<PixelFormat::BGR8>::storageBitsPerPixel;
217 return detail::PixelFormatInfo<PixelFormat::BGR10>::storageBitsPerPixel;
219 return detail::PixelFormatInfo<PixelFormat::BGR12>::storageBitsPerPixel;
221 return detail::PixelFormatInfo<PixelFormat::RGBa8>::storageBitsPerPixel;
223 return detail::PixelFormatInfo<PixelFormat::RGBa10>::storageBitsPerPixel;
225 return detail::PixelFormatInfo<PixelFormat::RGBa12>::storageBitsPerPixel;
227 return detail::PixelFormatInfo<PixelFormat::BGRa8>::storageBitsPerPixel;
229 return detail::PixelFormatInfo<PixelFormat::BGRa10>::storageBitsPerPixel;
231 return detail::PixelFormatInfo<PixelFormat::BGRa12>::storageBitsPerPixel;
233 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::storageBitsPerPixel;
235 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::storageBitsPerPixel;
237 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::storageBitsPerPixel;
239 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::storageBitsPerPixel;
241 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::storageBitsPerPixel;
243 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::storageBitsPerPixel;
245 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::storageBitsPerPixel;
247 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::storageBitsPerPixel;
249 return detail::PixelFormatInfo<PixelFormat::Mono10p>::storageBitsPerPixel;
251 return detail::PixelFormatInfo<PixelFormat::Mono12p>::storageBitsPerPixel;
253 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::storageBitsPerPixel;
255 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::storageBitsPerPixel;
257 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::storageBitsPerPixel;
259 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::storageBitsPerPixel;
261 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::storageBitsPerPixel;
263 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::storageBitsPerPixel;
265 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::storageBitsPerPixel;
267 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::storageBitsPerPixel;
269 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::storageBitsPerPixel;
271 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::storageBitsPerPixel;
273 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::storageBitsPerPixel;
275 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::storageBitsPerPixel;
277 return detail::PixelFormatInfo<PixelFormat::Mono32f>::storageBitsPerPixel;
278 case PixelFormat::Mono32fIDS:
279 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::storageBitsPerPixel;
281 return detail::PixelFormatInfo<PixelFormat::RGB32f>::storageBitsPerPixel;
282 case PixelFormat::RGB32fIDS:
283 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::storageBitsPerPixel;
285 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::storageBitsPerPixel;
287 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::storageBitsPerPixel;
289 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::storageBitsPerPixel;
291 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::storageBitsPerPixel;
293 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::storageBitsPerPixel;
295 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::storageBitsPerPixel;
297 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::storageBitsPerPixel;
299 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::storageBitsPerPixel;
301 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::storageBitsPerPixel;
303 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::storageBitsPerPixel;
305 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::storageBitsPerPixel;
307 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::storageBitsPerPixel;
309 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::storageBitsPerPixel;
311 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::storageBitsPerPixel;
313 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::storageBitsPerPixel;
315 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::storageBitsPerPixel;
317 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::storageBitsPerPixel;
319 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::storageBitsPerPixel;
321 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::storageBitsPerPixel;
323 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::storageBitsPerPixel;
325 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::storageBitsPerPixel;
327 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::storageBitsPerPixel;
329 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::storageBitsPerPixel;
331 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::storageBitsPerPixel;
333 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::storageBitsPerPixel;
335 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::storageBitsPerPixel;
337 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::storageBitsPerPixel;
339 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::storageBitsPerPixel;
341 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::storageBitsPerPixel;
343 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::storageBitsPerPixel;
345 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::storageBitsPerPixel;
347 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::storageBitsPerPixel;
349 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::storageBitsPerPixel;
351 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::storageBitsPerPixel;
353 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::storageBitsPerPixel;
355 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::storageBitsPerPixel;
357 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::storageBitsPerPixel;
359 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::storageBitsPerPixel;
361 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::storageBitsPerPixel;
363 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::storageBitsPerPixel;
365 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::storageBitsPerPixel;
367 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::storageBitsPerPixel;
369 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::storageBitsPerPixel;
371 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::storageBitsPerPixel;
373 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::storageBitsPerPixel;
375 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::storageBitsPerPixel;
377 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::storageBitsPerPixel;
379 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::storageBitsPerPixel;
381 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::storageBitsPerPixel;
383 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::storageBitsPerPixel;
385 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::storageBitsPerPixel;
387 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::storageBitsPerPixel;
389 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::storageBitsPerPixel;
391 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::storageBitsPerPixel;
393 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::storageBitsPerPixel;
395 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::storageBitsPerPixel;
397 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::storageBitsPerPixel;
399 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::storageBitsPerPixel;
401 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::storageBitsPerPixel;
403 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::storageBitsPerPixel;
404
405 }
406 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
408 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
409}
410
411
413{
414 switch (m_pixelFormat)
416 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::storageBitsPerChannel;
418 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::storageBitsPerChannel;
420 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::storageBitsPerChannel;
422 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::storageBitsPerChannel;
424 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::storageBitsPerChannel;
426 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::storageBitsPerChannel;
428 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::storageBitsPerChannel;
430 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::storageBitsPerChannel;
432 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::storageBitsPerChannel;
434 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::storageBitsPerChannel;
436 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::storageBitsPerChannel;
438 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::storageBitsPerChannel;
440 return detail::PixelFormatInfo<PixelFormat::Mono8>::storageBitsPerChannel;
442 return detail::PixelFormatInfo<PixelFormat::Mono10>::storageBitsPerChannel;
444 return detail::PixelFormatInfo<PixelFormat::Mono12>::storageBitsPerChannel;
446 return detail::PixelFormatInfo<PixelFormat::Mono16>::storageBitsPerChannel;
448 return detail::PixelFormatInfo<PixelFormat::Confidence8>::storageBitsPerChannel;
450 return detail::PixelFormatInfo<PixelFormat::Confidence16>::storageBitsPerChannel;
452 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::storageBitsPerChannel;
454 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::storageBitsPerChannel;
456 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::storageBitsPerChannel;
458 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::storageBitsPerChannel;
460 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::storageBitsPerChannel;
462 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::storageBitsPerChannel;
464 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::storageBitsPerChannel;
466 return detail::PixelFormatInfo<PixelFormat::RGB8>::storageBitsPerChannel;
468 return detail::PixelFormatInfo<PixelFormat::RGB10>::storageBitsPerChannel;
470 return detail::PixelFormatInfo<PixelFormat::RGB12>::storageBitsPerChannel;
472 return detail::PixelFormatInfo<PixelFormat::BGR8>::storageBitsPerChannel;
474 return detail::PixelFormatInfo<PixelFormat::BGR10>::storageBitsPerChannel;
476 return detail::PixelFormatInfo<PixelFormat::BGR12>::storageBitsPerChannel;
478 return detail::PixelFormatInfo<PixelFormat::RGBa8>::storageBitsPerChannel;
480 return detail::PixelFormatInfo<PixelFormat::RGBa10>::storageBitsPerChannel;
482 return detail::PixelFormatInfo<PixelFormat::RGBa12>::storageBitsPerChannel;
484 return detail::PixelFormatInfo<PixelFormat::BGRa8>::storageBitsPerChannel;
486 return detail::PixelFormatInfo<PixelFormat::BGRa10>::storageBitsPerChannel;
488 return detail::PixelFormatInfo<PixelFormat::BGRa12>::storageBitsPerChannel;
490 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::storageBitsPerChannel;
492 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::storageBitsPerChannel;
494 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::storageBitsPerChannel;
496 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::storageBitsPerChannel;
498 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::storageBitsPerChannel;
500 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::storageBitsPerChannel;
502 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::storageBitsPerChannel;
504 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::storageBitsPerChannel;
506 return detail::PixelFormatInfo<PixelFormat::Mono10p>::storageBitsPerChannel;
508 return detail::PixelFormatInfo<PixelFormat::Mono12p>::storageBitsPerChannel;
510 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::storageBitsPerChannel;
512 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::storageBitsPerChannel;
514 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::storageBitsPerChannel;
516 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::storageBitsPerChannel;
518 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::storageBitsPerChannel;
520 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::storageBitsPerChannel;
522 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::storageBitsPerChannel;
524 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::storageBitsPerChannel;
526 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::storageBitsPerChannel;
528 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::storageBitsPerChannel;
530 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::storageBitsPerChannel;
532 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::storageBitsPerChannel;
534 return detail::PixelFormatInfo<PixelFormat::Mono32f>::storageBitsPerChannel;
535 case PixelFormat::Mono32fIDS:
536 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::storageBitsPerChannel;
538 return detail::PixelFormatInfo<PixelFormat::RGB32f>::storageBitsPerChannel;
539 case PixelFormat::RGB32fIDS:
540 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::storageBitsPerChannel;
542 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::storageBitsPerChannel;
544 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::storageBitsPerChannel;
546 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::storageBitsPerChannel;
548 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::storageBitsPerChannel;
550 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::storageBitsPerChannel;
552 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::storageBitsPerChannel;
554 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::storageBitsPerChannel;
556 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::storageBitsPerChannel;
558 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::storageBitsPerChannel;
560 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::storageBitsPerChannel;
562 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::storageBitsPerChannel;
564 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::storageBitsPerChannel;
566 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::storageBitsPerChannel;
568 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::storageBitsPerChannel;
570 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::storageBitsPerChannel;
572 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::storageBitsPerChannel;
574 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::storageBitsPerChannel;
576 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::storageBitsPerChannel;
578 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::storageBitsPerChannel;
580 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::storageBitsPerChannel;
582 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::storageBitsPerChannel;
584 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::storageBitsPerChannel;
586 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::storageBitsPerChannel;
588 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::storageBitsPerChannel;
590 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::storageBitsPerChannel;
592 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::storageBitsPerChannel;
594 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::storageBitsPerChannel;
596 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::storageBitsPerChannel;
598 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::storageBitsPerChannel;
600 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::storageBitsPerChannel;
602 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::storageBitsPerChannel;
604 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::storageBitsPerChannel;
606 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::storageBitsPerChannel;
608 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::storageBitsPerChannel;
610 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::storageBitsPerChannel;
612 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::storageBitsPerChannel;
614 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::storageBitsPerChannel;
616 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::storageBitsPerChannel;
618 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::storageBitsPerChannel;
620 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::storageBitsPerChannel;
622 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::storageBitsPerChannel;
624 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::storageBitsPerChannel;
626 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::storageBitsPerChannel;
628 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::storageBitsPerChannel;
630 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::storageBitsPerChannel;
632 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::storageBitsPerChannel;
634 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::storageBitsPerChannel;
636 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::storageBitsPerChannel;
638 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::storageBitsPerChannel;
640 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::storageBitsPerChannel;
642 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::storageBitsPerChannel;
644 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::storageBitsPerChannel;
646 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::storageBitsPerChannel;
648 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::storageBitsPerChannel;
650 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::storageBitsPerChannel;
652 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::storageBitsPerChannel;
654 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::storageBitsPerChannel;
656 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::storageBitsPerChannel;
658 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::storageBitsPerChannel;
660 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::storageBitsPerChannel;
661
662 }
663 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
665 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
666}
667
668
669inline std::string PixelFormatInfo::GetName() const
670{
671 switch (m_pixelFormat)
673 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::Name();
675 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::Name();
677 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::Name();
679 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::Name();
681 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::Name();
683 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::Name();
685 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::Name();
687 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::Name();
689 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::Name();
691 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::Name();
693 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::Name();
695 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::Name();
697 return detail::PixelFormatInfo<PixelFormat::Mono8>::Name();
699 return detail::PixelFormatInfo<PixelFormat::Mono10>::Name();
701 return detail::PixelFormatInfo<PixelFormat::Mono12>::Name();
703 return detail::PixelFormatInfo<PixelFormat::Mono16>::Name();
705 return detail::PixelFormatInfo<PixelFormat::Confidence8>::Name();
707 return detail::PixelFormatInfo<PixelFormat::Confidence16>::Name();
709 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::Name();
711 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::Name();
713 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::Name();
715 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::Name();
717 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::Name();
719 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::Name();
721 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::Name();
723 return detail::PixelFormatInfo<PixelFormat::RGB8>::Name();
725 return detail::PixelFormatInfo<PixelFormat::RGB10>::Name();
727 return detail::PixelFormatInfo<PixelFormat::RGB12>::Name();
729 return detail::PixelFormatInfo<PixelFormat::BGR8>::Name();
731 return detail::PixelFormatInfo<PixelFormat::BGR10>::Name();
733 return detail::PixelFormatInfo<PixelFormat::BGR12>::Name();
735 return detail::PixelFormatInfo<PixelFormat::RGBa8>::Name();
737 return detail::PixelFormatInfo<PixelFormat::RGBa10>::Name();
739 return detail::PixelFormatInfo<PixelFormat::RGBa12>::Name();
741 return detail::PixelFormatInfo<PixelFormat::BGRa8>::Name();
743 return detail::PixelFormatInfo<PixelFormat::BGRa10>::Name();
745 return detail::PixelFormatInfo<PixelFormat::BGRa12>::Name();
747 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::Name();
749 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::Name();
751 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::Name();
753 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::Name();
755 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::Name();
757 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::Name();
759 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::Name();
761 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::Name();
763 return detail::PixelFormatInfo<PixelFormat::Mono10p>::Name();
765 return detail::PixelFormatInfo<PixelFormat::Mono12p>::Name();
767 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::Name();
769 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::Name();
771 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::Name();
773 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::Name();
775 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::Name();
777 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::Name();
779 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::Name();
781 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::Name();
783 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::Name();
785 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::Name();
787 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::Name();
789 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::Name();
791 return detail::PixelFormatInfo<PixelFormat::Mono32f>::Name();
792 case PixelFormat::Mono32fIDS:
793 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::Name();
795 return detail::PixelFormatInfo<PixelFormat::RGB32f>::Name();
796 case PixelFormat::RGB32fIDS:
797 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::Name();
799 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::Name();
801 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::Name();
803 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::Name();
805 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::Name();
807 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::Name();
809 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::Name();
811 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::Name();
813 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::Name();
815 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::Name();
817 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::Name();
819 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::Name();
821 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::Name();
823 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::Name();
825 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::Name();
827 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::Name();
829 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::Name();
831 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::Name();
833 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::Name();
835 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::Name();
837 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::Name();
839 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::Name();
841 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::Name();
843 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::Name();
845 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::Name();
847 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::Name();
849 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::Name();
851 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::Name();
853 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::Name();
855 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::Name();
857 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::Name();
859 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::Name();
861 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::Name();
863 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::Name();
865 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::Name();
867 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::Name();
869 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::Name();
871 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::Name();
873 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::Name();
875 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::Name();
877 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::Name();
879 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::Name();
881 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::Name();
883 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::Name();
885 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::Name();
887 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::Name();
889 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::Name();
891 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::Name();
893 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::Name();
895 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::Name();
897 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::Name();
899 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::Name();
901 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::Name();
903 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::Name();
905 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::Name();
907 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::Name();
909 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::Name();
911 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::Name();
913 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::Name();
915 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::Name();
917 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::Name();
918
919 }
920 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
922 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
923}
924
925
927{
928 switch (m_pixelFormat)
930 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::allocatedBitsPerPixel;
932 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::allocatedBitsPerPixel;
934 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::allocatedBitsPerPixel;
936 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::allocatedBitsPerPixel;
938 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::allocatedBitsPerPixel;
940 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::allocatedBitsPerPixel;
942 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::allocatedBitsPerPixel;
944 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::allocatedBitsPerPixel;
946 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::allocatedBitsPerPixel;
948 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::allocatedBitsPerPixel;
950 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::allocatedBitsPerPixel;
952 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::allocatedBitsPerPixel;
954 return detail::PixelFormatInfo<PixelFormat::Mono8>::allocatedBitsPerPixel;
956 return detail::PixelFormatInfo<PixelFormat::Mono10>::allocatedBitsPerPixel;
958 return detail::PixelFormatInfo<PixelFormat::Mono12>::allocatedBitsPerPixel;
960 return detail::PixelFormatInfo<PixelFormat::Mono16>::allocatedBitsPerPixel;
962 return detail::PixelFormatInfo<PixelFormat::Confidence8>::allocatedBitsPerPixel;
964 return detail::PixelFormatInfo<PixelFormat::Confidence16>::allocatedBitsPerPixel;
966 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::allocatedBitsPerPixel;
968 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::allocatedBitsPerPixel;
970 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::allocatedBitsPerPixel;
972 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::allocatedBitsPerPixel;
974 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::allocatedBitsPerPixel;
976 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::allocatedBitsPerPixel;
978 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::allocatedBitsPerPixel;
980 return detail::PixelFormatInfo<PixelFormat::RGB8>::allocatedBitsPerPixel;
982 return detail::PixelFormatInfo<PixelFormat::RGB10>::allocatedBitsPerPixel;
984 return detail::PixelFormatInfo<PixelFormat::RGB12>::allocatedBitsPerPixel;
986 return detail::PixelFormatInfo<PixelFormat::BGR8>::allocatedBitsPerPixel;
988 return detail::PixelFormatInfo<PixelFormat::BGR10>::allocatedBitsPerPixel;
990 return detail::PixelFormatInfo<PixelFormat::BGR12>::allocatedBitsPerPixel;
992 return detail::PixelFormatInfo<PixelFormat::RGBa8>::allocatedBitsPerPixel;
994 return detail::PixelFormatInfo<PixelFormat::RGBa10>::allocatedBitsPerPixel;
996 return detail::PixelFormatInfo<PixelFormat::RGBa12>::allocatedBitsPerPixel;
998 return detail::PixelFormatInfo<PixelFormat::BGRa8>::allocatedBitsPerPixel;
1000 return detail::PixelFormatInfo<PixelFormat::BGRa10>::allocatedBitsPerPixel;
1002 return detail::PixelFormatInfo<PixelFormat::BGRa12>::allocatedBitsPerPixel;
1004 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::allocatedBitsPerPixel;
1006 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::allocatedBitsPerPixel;
1008 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::allocatedBitsPerPixel;
1010 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::allocatedBitsPerPixel;
1012 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::allocatedBitsPerPixel;
1014 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::allocatedBitsPerPixel;
1016 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::allocatedBitsPerPixel;
1018 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::allocatedBitsPerPixel;
1020 return detail::PixelFormatInfo<PixelFormat::Mono10p>::allocatedBitsPerPixel;
1022 return detail::PixelFormatInfo<PixelFormat::Mono12p>::allocatedBitsPerPixel;
1024 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::allocatedBitsPerPixel;
1026 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::allocatedBitsPerPixel;
1028 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::allocatedBitsPerPixel;
1030 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::allocatedBitsPerPixel;
1032 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::allocatedBitsPerPixel;
1034 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::allocatedBitsPerPixel;
1036 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::allocatedBitsPerPixel;
1038 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::allocatedBitsPerPixel;
1040 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::allocatedBitsPerPixel;
1042 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::allocatedBitsPerPixel;
1044 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::allocatedBitsPerPixel;
1046 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::allocatedBitsPerPixel;
1048 return detail::PixelFormatInfo<PixelFormat::Mono32f>::allocatedBitsPerPixel;
1049 case PixelFormat::Mono32fIDS:
1050 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::allocatedBitsPerPixel;
1052 return detail::PixelFormatInfo<PixelFormat::RGB32f>::allocatedBitsPerPixel;
1053 case PixelFormat::RGB32fIDS:
1054 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::allocatedBitsPerPixel;
1056 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::allocatedBitsPerPixel;
1058 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::allocatedBitsPerPixel;
1060 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::allocatedBitsPerPixel;
1062 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::allocatedBitsPerPixel;
1064 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::allocatedBitsPerPixel;
1066 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::allocatedBitsPerPixel;
1068 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::allocatedBitsPerPixel;
1070 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::allocatedBitsPerPixel;
1072 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::allocatedBitsPerPixel;
1074 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::allocatedBitsPerPixel;
1076 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::allocatedBitsPerPixel;
1078 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::allocatedBitsPerPixel;
1080 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::allocatedBitsPerPixel;
1082 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::allocatedBitsPerPixel;
1084 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::allocatedBitsPerPixel;
1086 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::allocatedBitsPerPixel;
1088 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::allocatedBitsPerPixel;
1090 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::allocatedBitsPerPixel;
1092 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::allocatedBitsPerPixel;
1094 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::allocatedBitsPerPixel;
1096 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::allocatedBitsPerPixel;
1098 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::allocatedBitsPerPixel;
1100 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::allocatedBitsPerPixel;
1102 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::allocatedBitsPerPixel;
1104 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::allocatedBitsPerPixel;
1106 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::allocatedBitsPerPixel;
1108 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::allocatedBitsPerPixel;
1110 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::allocatedBitsPerPixel;
1112 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::allocatedBitsPerPixel;
1114 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::allocatedBitsPerPixel;
1116 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::allocatedBitsPerPixel;
1118 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::allocatedBitsPerPixel;
1120 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::allocatedBitsPerPixel;
1122 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::allocatedBitsPerPixel;
1124 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::allocatedBitsPerPixel;
1126 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::allocatedBitsPerPixel;
1128 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::allocatedBitsPerPixel;
1130 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::allocatedBitsPerPixel;
1132 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::allocatedBitsPerPixel;
1134 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::allocatedBitsPerPixel;
1136 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::allocatedBitsPerPixel;
1138 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::allocatedBitsPerPixel;
1140 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::allocatedBitsPerPixel;
1142 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::allocatedBitsPerPixel;
1144 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::allocatedBitsPerPixel;
1146 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::allocatedBitsPerPixel;
1148 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::allocatedBitsPerPixel;
1150 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::allocatedBitsPerPixel;
1152 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::allocatedBitsPerPixel;
1154 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::allocatedBitsPerPixel;
1156 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::allocatedBitsPerPixel;
1158 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::allocatedBitsPerPixel;
1160 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::allocatedBitsPerPixel;
1162 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::allocatedBitsPerPixel;
1164 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::allocatedBitsPerPixel;
1166 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::allocatedBitsPerPixel;
1168 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::allocatedBitsPerPixel;
1170 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::allocatedBitsPerPixel;
1172 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::allocatedBitsPerPixel;
1174 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::allocatedBitsPerPixel;
1175
1176 }
1177 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1179 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1180}
1181
1182
1183inline size_t PixelFormatInfo::GetSizeInBytes(const Size& size) const
1184{
1185 switch (m_pixelFormat)
1186 { case PixelFormat::BayerGR8:
1187 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::GetSizeInBytes(size);
1189 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::GetSizeInBytes(size);
1191 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::GetSizeInBytes(size);
1193 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::GetSizeInBytes(size);
1195 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::GetSizeInBytes(size);
1197 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::GetSizeInBytes(size);
1199 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::GetSizeInBytes(size);
1201 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::GetSizeInBytes(size);
1203 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::GetSizeInBytes(size);
1205 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::GetSizeInBytes(size);
1207 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::GetSizeInBytes(size);
1209 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::GetSizeInBytes(size);
1210 case PixelFormat::Mono8:
1211 return detail::PixelFormatInfo<PixelFormat::Mono8>::GetSizeInBytes(size);
1213 return detail::PixelFormatInfo<PixelFormat::Mono10>::GetSizeInBytes(size);
1215 return detail::PixelFormatInfo<PixelFormat::Mono12>::GetSizeInBytes(size);
1217 return detail::PixelFormatInfo<PixelFormat::Mono16>::GetSizeInBytes(size);
1219 return detail::PixelFormatInfo<PixelFormat::Confidence8>::GetSizeInBytes(size);
1221 return detail::PixelFormatInfo<PixelFormat::Confidence16>::GetSizeInBytes(size);
1223 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::GetSizeInBytes(size);
1225 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::GetSizeInBytes(size);
1227 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::GetSizeInBytes(size);
1229 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::GetSizeInBytes(size);
1231 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::GetSizeInBytes(size);
1233 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::GetSizeInBytes(size);
1235 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::GetSizeInBytes(size);
1236 case PixelFormat::RGB8:
1237 return detail::PixelFormatInfo<PixelFormat::RGB8>::GetSizeInBytes(size);
1238 case PixelFormat::RGB10:
1239 return detail::PixelFormatInfo<PixelFormat::RGB10>::GetSizeInBytes(size);
1240 case PixelFormat::RGB12:
1241 return detail::PixelFormatInfo<PixelFormat::RGB12>::GetSizeInBytes(size);
1242 case PixelFormat::BGR8:
1243 return detail::PixelFormatInfo<PixelFormat::BGR8>::GetSizeInBytes(size);
1244 case PixelFormat::BGR10:
1245 return detail::PixelFormatInfo<PixelFormat::BGR10>::GetSizeInBytes(size);
1246 case PixelFormat::BGR12:
1247 return detail::PixelFormatInfo<PixelFormat::BGR12>::GetSizeInBytes(size);
1248 case PixelFormat::RGBa8:
1249 return detail::PixelFormatInfo<PixelFormat::RGBa8>::GetSizeInBytes(size);
1251 return detail::PixelFormatInfo<PixelFormat::RGBa10>::GetSizeInBytes(size);
1253 return detail::PixelFormatInfo<PixelFormat::RGBa12>::GetSizeInBytes(size);
1254 case PixelFormat::BGRa8:
1255 return detail::PixelFormatInfo<PixelFormat::BGRa8>::GetSizeInBytes(size);
1257 return detail::PixelFormatInfo<PixelFormat::BGRa10>::GetSizeInBytes(size);
1259 return detail::PixelFormatInfo<PixelFormat::BGRa12>::GetSizeInBytes(size);
1261 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::GetSizeInBytes(size);
1263 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::GetSizeInBytes(size);
1265 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::GetSizeInBytes(size);
1267 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::GetSizeInBytes(size);
1269 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::GetSizeInBytes(size);
1271 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::GetSizeInBytes(size);
1273 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::GetSizeInBytes(size);
1275 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::GetSizeInBytes(size);
1277 return detail::PixelFormatInfo<PixelFormat::Mono10p>::GetSizeInBytes(size);
1279 return detail::PixelFormatInfo<PixelFormat::Mono12p>::GetSizeInBytes(size);
1281 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::GetSizeInBytes(size);
1283 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::GetSizeInBytes(size);
1285 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::GetSizeInBytes(size);
1287 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::GetSizeInBytes(size);
1289 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::GetSizeInBytes(size);
1291 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::GetSizeInBytes(size);
1293 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::GetSizeInBytes(size);
1295 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::GetSizeInBytes(size);
1297 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::GetSizeInBytes(size);
1299 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::GetSizeInBytes(size);
1301 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::GetSizeInBytes(size);
1303 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::GetSizeInBytes(size);
1305 return detail::PixelFormatInfo<PixelFormat::Mono32f>::GetSizeInBytes(size);
1306 case PixelFormat::Mono32fIDS:
1307 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::GetSizeInBytes(size);
1309 return detail::PixelFormatInfo<PixelFormat::RGB32f>::GetSizeInBytes(size);
1310 case PixelFormat::RGB32fIDS:
1311 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::GetSizeInBytes(size);
1313 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::GetSizeInBytes(size);
1315 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::GetSizeInBytes(size);
1317 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::GetSizeInBytes(size);
1319 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::GetSizeInBytes(size);
1321 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::GetSizeInBytes(size);
1323 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::GetSizeInBytes(size);
1325 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::GetSizeInBytes(size);
1327 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::GetSizeInBytes(size);
1329 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::GetSizeInBytes(size);
1331 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::GetSizeInBytes(size);
1333 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::GetSizeInBytes(size);
1335 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::GetSizeInBytes(size);
1337 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::GetSizeInBytes(size);
1339 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::GetSizeInBytes(size);
1341 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::GetSizeInBytes(size);
1343 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::GetSizeInBytes(size);
1345 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::GetSizeInBytes(size);
1347 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::GetSizeInBytes(size);
1349 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::GetSizeInBytes(size);
1351 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::GetSizeInBytes(size);
1353 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::GetSizeInBytes(size);
1355 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::GetSizeInBytes(size);
1357 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::GetSizeInBytes(size);
1359 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::GetSizeInBytes(size);
1361 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::GetSizeInBytes(size);
1363 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::GetSizeInBytes(size);
1365 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::GetSizeInBytes(size);
1367 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::GetSizeInBytes(size);
1369 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::GetSizeInBytes(size);
1371 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::GetSizeInBytes(size);
1373 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::GetSizeInBytes(size);
1375 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::GetSizeInBytes(size);
1377 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::GetSizeInBytes(size);
1379 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::GetSizeInBytes(size);
1381 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::GetSizeInBytes(size);
1383 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::GetSizeInBytes(size);
1385 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::GetSizeInBytes(size);
1387 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::GetSizeInBytes(size);
1389 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::GetSizeInBytes(size);
1391 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::GetSizeInBytes(size);
1393 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::GetSizeInBytes(size);
1395 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::GetSizeInBytes(size);
1397 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::GetSizeInBytes(size);
1399 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::GetSizeInBytes(size);
1401 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::GetSizeInBytes(size);
1403 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::GetSizeInBytes(size);
1405 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::GetSizeInBytes(size);
1407 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::GetSizeInBytes(size);
1409 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::GetSizeInBytes(size);
1411 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::GetSizeInBytes(size);
1413 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::GetSizeInBytes(size);
1415 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::GetSizeInBytes(size);
1417 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::GetSizeInBytes(size);
1419 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::GetSizeInBytes(size);
1421 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::GetSizeInBytes(size);
1423 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::GetSizeInBytes(size);
1425 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::GetSizeInBytes(size);
1427 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::GetSizeInBytes(size);
1429 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::GetSizeInBytes(size);
1431 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::GetSizeInBytes(size);
1432
1433 }
1434 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1436 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1437}
1438
1439
1440inline bool PixelFormatInfo::IsPacked() const
1441{
1442 switch (m_pixelFormat)
1443 { case PixelFormat::BayerGR8:
1444 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::IsPacked();
1446 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::IsPacked();
1448 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::IsPacked();
1450 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::IsPacked();
1452 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::IsPacked();
1454 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::IsPacked();
1456 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::IsPacked();
1458 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::IsPacked();
1460 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::IsPacked();
1462 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::IsPacked();
1464 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::IsPacked();
1466 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::IsPacked();
1467 case PixelFormat::Mono8:
1468 return detail::PixelFormatInfo<PixelFormat::Mono8>::IsPacked();
1470 return detail::PixelFormatInfo<PixelFormat::Mono10>::IsPacked();
1472 return detail::PixelFormatInfo<PixelFormat::Mono12>::IsPacked();
1474 return detail::PixelFormatInfo<PixelFormat::Mono16>::IsPacked();
1476 return detail::PixelFormatInfo<PixelFormat::Confidence8>::IsPacked();
1478 return detail::PixelFormatInfo<PixelFormat::Confidence16>::IsPacked();
1480 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::IsPacked();
1482 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::IsPacked();
1484 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::IsPacked();
1486 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::IsPacked();
1488 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::IsPacked();
1490 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::IsPacked();
1492 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::IsPacked();
1493 case PixelFormat::RGB8:
1494 return detail::PixelFormatInfo<PixelFormat::RGB8>::IsPacked();
1495 case PixelFormat::RGB10:
1496 return detail::PixelFormatInfo<PixelFormat::RGB10>::IsPacked();
1497 case PixelFormat::RGB12:
1498 return detail::PixelFormatInfo<PixelFormat::RGB12>::IsPacked();
1499 case PixelFormat::BGR8:
1500 return detail::PixelFormatInfo<PixelFormat::BGR8>::IsPacked();
1501 case PixelFormat::BGR10:
1502 return detail::PixelFormatInfo<PixelFormat::BGR10>::IsPacked();
1503 case PixelFormat::BGR12:
1504 return detail::PixelFormatInfo<PixelFormat::BGR12>::IsPacked();
1505 case PixelFormat::RGBa8:
1506 return detail::PixelFormatInfo<PixelFormat::RGBa8>::IsPacked();
1508 return detail::PixelFormatInfo<PixelFormat::RGBa10>::IsPacked();
1510 return detail::PixelFormatInfo<PixelFormat::RGBa12>::IsPacked();
1511 case PixelFormat::BGRa8:
1512 return detail::PixelFormatInfo<PixelFormat::BGRa8>::IsPacked();
1514 return detail::PixelFormatInfo<PixelFormat::BGRa10>::IsPacked();
1516 return detail::PixelFormatInfo<PixelFormat::BGRa12>::IsPacked();
1518 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::IsPacked();
1520 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::IsPacked();
1522 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::IsPacked();
1524 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::IsPacked();
1526 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::IsPacked();
1528 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::IsPacked();
1530 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::IsPacked();
1532 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::IsPacked();
1534 return detail::PixelFormatInfo<PixelFormat::Mono10p>::IsPacked();
1536 return detail::PixelFormatInfo<PixelFormat::Mono12p>::IsPacked();
1538 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::IsPacked();
1540 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::IsPacked();
1542 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::IsPacked();
1544 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::IsPacked();
1546 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::IsPacked();
1548 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::IsPacked();
1550 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::IsPacked();
1552 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::IsPacked();
1554 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::IsPacked();
1556 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::IsPacked();
1558 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::IsPacked();
1560 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::IsPacked();
1562 return detail::PixelFormatInfo<PixelFormat::Mono32f>::IsPacked();
1563 case PixelFormat::Mono32fIDS:
1564 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::IsPacked();
1566 return detail::PixelFormatInfo<PixelFormat::RGB32f>::IsPacked();
1567 case PixelFormat::RGB32fIDS:
1568 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::IsPacked();
1570 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::IsPacked();
1572 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::IsPacked();
1574 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::IsPacked();
1576 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::IsPacked();
1578 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::IsPacked();
1580 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::IsPacked();
1582 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::IsPacked();
1584 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::IsPacked();
1586 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::IsPacked();
1588 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::IsPacked();
1590 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::IsPacked();
1592 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::IsPacked();
1594 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::IsPacked();
1596 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::IsPacked();
1598 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::IsPacked();
1600 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::IsPacked();
1602 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::IsPacked();
1604 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::IsPacked();
1606 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::IsPacked();
1608 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::IsPacked();
1610 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::IsPacked();
1612 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::IsPacked();
1614 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::IsPacked();
1616 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::IsPacked();
1618 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::IsPacked();
1620 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::IsPacked();
1622 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::IsPacked();
1624 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::IsPacked();
1626 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::IsPacked();
1628 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::IsPacked();
1630 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::IsPacked();
1632 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::IsPacked();
1634 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::IsPacked();
1636 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::IsPacked();
1638 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::IsPacked();
1640 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::IsPacked();
1642 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::IsPacked();
1644 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::IsPacked();
1646 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::IsPacked();
1648 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::IsPacked();
1650 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::IsPacked();
1652 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::IsPacked();
1654 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::IsPacked();
1656 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::IsPacked();
1658 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::IsPacked();
1660 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::IsPacked();
1662 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::IsPacked();
1664 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::IsPacked();
1666 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::IsPacked();
1668 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::IsPacked();
1670 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::IsPacked();
1672 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::IsPacked();
1674 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::IsPacked();
1676 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::IsPacked();
1678 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::IsPacked();
1680 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::IsPacked();
1682 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::IsPacked();
1684 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::IsPacked();
1686 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::IsPacked();
1688 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::IsPacked();
1689
1690 }
1691 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1693 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1694}
1695
1696
1698{
1699 switch (m_pixelFormat)
1700 { case PixelFormat::BayerGR8:
1701 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::IsInterleaved();
1703 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::IsInterleaved();
1705 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::IsInterleaved();
1707 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::IsInterleaved();
1709 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::IsInterleaved();
1711 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::IsInterleaved();
1713 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::IsInterleaved();
1715 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::IsInterleaved();
1717 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::IsInterleaved();
1719 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::IsInterleaved();
1721 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::IsInterleaved();
1723 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::IsInterleaved();
1724 case PixelFormat::Mono8:
1725 return detail::PixelFormatInfo<PixelFormat::Mono8>::IsInterleaved();
1727 return detail::PixelFormatInfo<PixelFormat::Mono10>::IsInterleaved();
1729 return detail::PixelFormatInfo<PixelFormat::Mono12>::IsInterleaved();
1731 return detail::PixelFormatInfo<PixelFormat::Mono16>::IsInterleaved();
1733 return detail::PixelFormatInfo<PixelFormat::Confidence8>::IsInterleaved();
1735 return detail::PixelFormatInfo<PixelFormat::Confidence16>::IsInterleaved();
1737 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::IsInterleaved();
1739 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::IsInterleaved();
1741 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::IsInterleaved();
1743 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::IsInterleaved();
1745 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::IsInterleaved();
1747 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::IsInterleaved();
1749 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::IsInterleaved();
1750 case PixelFormat::RGB8:
1751 return detail::PixelFormatInfo<PixelFormat::RGB8>::IsInterleaved();
1752 case PixelFormat::RGB10:
1753 return detail::PixelFormatInfo<PixelFormat::RGB10>::IsInterleaved();
1754 case PixelFormat::RGB12:
1755 return detail::PixelFormatInfo<PixelFormat::RGB12>::IsInterleaved();
1756 case PixelFormat::BGR8:
1757 return detail::PixelFormatInfo<PixelFormat::BGR8>::IsInterleaved();
1758 case PixelFormat::BGR10:
1759 return detail::PixelFormatInfo<PixelFormat::BGR10>::IsInterleaved();
1760 case PixelFormat::BGR12:
1761 return detail::PixelFormatInfo<PixelFormat::BGR12>::IsInterleaved();
1762 case PixelFormat::RGBa8:
1763 return detail::PixelFormatInfo<PixelFormat::RGBa8>::IsInterleaved();
1765 return detail::PixelFormatInfo<PixelFormat::RGBa10>::IsInterleaved();
1767 return detail::PixelFormatInfo<PixelFormat::RGBa12>::IsInterleaved();
1768 case PixelFormat::BGRa8:
1769 return detail::PixelFormatInfo<PixelFormat::BGRa8>::IsInterleaved();
1771 return detail::PixelFormatInfo<PixelFormat::BGRa10>::IsInterleaved();
1773 return detail::PixelFormatInfo<PixelFormat::BGRa12>::IsInterleaved();
1775 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::IsInterleaved();
1777 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::IsInterleaved();
1779 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::IsInterleaved();
1781 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::IsInterleaved();
1783 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::IsInterleaved();
1785 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::IsInterleaved();
1787 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::IsInterleaved();
1789 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::IsInterleaved();
1791 return detail::PixelFormatInfo<PixelFormat::Mono10p>::IsInterleaved();
1793 return detail::PixelFormatInfo<PixelFormat::Mono12p>::IsInterleaved();
1795 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::IsInterleaved();
1797 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::IsInterleaved();
1799 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::IsInterleaved();
1801 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::IsInterleaved();
1803 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::IsInterleaved();
1805 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::IsInterleaved();
1807 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::IsInterleaved();
1809 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::IsInterleaved();
1811 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::IsInterleaved();
1813 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::IsInterleaved();
1815 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::IsInterleaved();
1817 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::IsInterleaved();
1819 return detail::PixelFormatInfo<PixelFormat::Mono32f>::IsInterleaved();
1820 case PixelFormat::Mono32fIDS:
1821 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::IsInterleaved();
1823 return detail::PixelFormatInfo<PixelFormat::RGB32f>::IsInterleaved();
1824 case PixelFormat::RGB32fIDS:
1825 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::IsInterleaved();
1827 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::IsInterleaved();
1829 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::IsInterleaved();
1831 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::IsInterleaved();
1833 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::IsInterleaved();
1835 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::IsInterleaved();
1837 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::IsInterleaved();
1839 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::IsInterleaved();
1841 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::IsInterleaved();
1843 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::IsInterleaved();
1845 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::IsInterleaved();
1847 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::IsInterleaved();
1849 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::IsInterleaved();
1851 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::IsInterleaved();
1853 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::IsInterleaved();
1855 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::IsInterleaved();
1857 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::IsInterleaved();
1859 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::IsInterleaved();
1861 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::IsInterleaved();
1863 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::IsInterleaved();
1865 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::IsInterleaved();
1867 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::IsInterleaved();
1869 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::IsInterleaved();
1871 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::IsInterleaved();
1873 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::IsInterleaved();
1875 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::IsInterleaved();
1877 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::IsInterleaved();
1879 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::IsInterleaved();
1881 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::IsInterleaved();
1883 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::IsInterleaved();
1885 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::IsInterleaved();
1887 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::IsInterleaved();
1889 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::IsInterleaved();
1891 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::IsInterleaved();
1893 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::IsInterleaved();
1895 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::IsInterleaved();
1897 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::IsInterleaved();
1899 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::IsInterleaved();
1901 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::IsInterleaved();
1903 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::IsInterleaved();
1905 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::IsInterleaved();
1907 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::IsInterleaved();
1909 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::IsInterleaved();
1911 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::IsInterleaved();
1913 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::IsInterleaved();
1915 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::IsInterleaved();
1917 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::IsInterleaved();
1919 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::IsInterleaved();
1921 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::IsInterleaved();
1923 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::IsInterleaved();
1925 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::IsInterleaved();
1927 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::IsInterleaved();
1929 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::IsInterleaved();
1931 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::IsInterleaved();
1933 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::IsInterleaved();
1935 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::IsInterleaved();
1937 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::IsInterleaved();
1939 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::IsInterleaved();
1941 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::IsInterleaved();
1943 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::IsInterleaved();
1945 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::IsInterleaved();
1946
1947 }
1948 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
1950 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
1951}
1952
1953
1954inline bool PixelFormatInfo::IsFloat() const
1955{
1956 switch (m_pixelFormat)
1957 { case PixelFormat::BayerGR8:
1958 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::is_floating_point;
1960 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::is_floating_point;
1962 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::is_floating_point;
1964 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::is_floating_point;
1966 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::is_floating_point;
1968 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::is_floating_point;
1970 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::is_floating_point;
1972 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::is_floating_point;
1974 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::is_floating_point;
1976 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::is_floating_point;
1978 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::is_floating_point;
1980 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::is_floating_point;
1981 case PixelFormat::Mono8:
1982 return detail::PixelFormatInfo<PixelFormat::Mono8>::is_floating_point;
1984 return detail::PixelFormatInfo<PixelFormat::Mono10>::is_floating_point;
1986 return detail::PixelFormatInfo<PixelFormat::Mono12>::is_floating_point;
1988 return detail::PixelFormatInfo<PixelFormat::Mono16>::is_floating_point;
1990 return detail::PixelFormatInfo<PixelFormat::Confidence8>::is_floating_point;
1992 return detail::PixelFormatInfo<PixelFormat::Confidence16>::is_floating_point;
1994 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::is_floating_point;
1996 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::is_floating_point;
1998 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::is_floating_point;
2000 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::is_floating_point;
2002 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::is_floating_point;
2004 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::is_floating_point;
2006 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::is_floating_point;
2007 case PixelFormat::RGB8:
2008 return detail::PixelFormatInfo<PixelFormat::RGB8>::is_floating_point;
2009 case PixelFormat::RGB10:
2010 return detail::PixelFormatInfo<PixelFormat::RGB10>::is_floating_point;
2011 case PixelFormat::RGB12:
2012 return detail::PixelFormatInfo<PixelFormat::RGB12>::is_floating_point;
2013 case PixelFormat::BGR8:
2014 return detail::PixelFormatInfo<PixelFormat::BGR8>::is_floating_point;
2015 case PixelFormat::BGR10:
2016 return detail::PixelFormatInfo<PixelFormat::BGR10>::is_floating_point;
2017 case PixelFormat::BGR12:
2018 return detail::PixelFormatInfo<PixelFormat::BGR12>::is_floating_point;
2019 case PixelFormat::RGBa8:
2020 return detail::PixelFormatInfo<PixelFormat::RGBa8>::is_floating_point;
2022 return detail::PixelFormatInfo<PixelFormat::RGBa10>::is_floating_point;
2024 return detail::PixelFormatInfo<PixelFormat::RGBa12>::is_floating_point;
2025 case PixelFormat::BGRa8:
2026 return detail::PixelFormatInfo<PixelFormat::BGRa8>::is_floating_point;
2028 return detail::PixelFormatInfo<PixelFormat::BGRa10>::is_floating_point;
2030 return detail::PixelFormatInfo<PixelFormat::BGRa12>::is_floating_point;
2032 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::is_floating_point;
2034 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::is_floating_point;
2036 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::is_floating_point;
2038 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::is_floating_point;
2040 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::is_floating_point;
2042 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::is_floating_point;
2044 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::is_floating_point;
2046 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::is_floating_point;
2048 return detail::PixelFormatInfo<PixelFormat::Mono10p>::is_floating_point;
2050 return detail::PixelFormatInfo<PixelFormat::Mono12p>::is_floating_point;
2052 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::is_floating_point;
2054 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::is_floating_point;
2056 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::is_floating_point;
2058 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::is_floating_point;
2060 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::is_floating_point;
2062 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::is_floating_point;
2064 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::is_floating_point;
2066 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::is_floating_point;
2068 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::is_floating_point;
2070 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::is_floating_point;
2072 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::is_floating_point;
2074 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::is_floating_point;
2076 return detail::PixelFormatInfo<PixelFormat::Mono32f>::is_floating_point;
2077 case PixelFormat::Mono32fIDS:
2078 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::is_floating_point;
2080 return detail::PixelFormatInfo<PixelFormat::RGB32f>::is_floating_point;
2081 case PixelFormat::RGB32fIDS:
2082 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::is_floating_point;
2084 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::is_floating_point;
2086 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::is_floating_point;
2088 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::is_floating_point;
2090 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::is_floating_point;
2092 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::is_floating_point;
2094 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::is_floating_point;
2096 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::is_floating_point;
2098 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::is_floating_point;
2100 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::is_floating_point;
2102 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::is_floating_point;
2104 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::is_floating_point;
2106 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::is_floating_point;
2108 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::is_floating_point;
2110 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::is_floating_point;
2112 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::is_floating_point;
2114 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::is_floating_point;
2116 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::is_floating_point;
2118 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::is_floating_point;
2120 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::is_floating_point;
2122 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::is_floating_point;
2124 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::is_floating_point;
2126 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::is_floating_point;
2128 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::is_floating_point;
2130 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::is_floating_point;
2132 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::is_floating_point;
2134 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::is_floating_point;
2136 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::is_floating_point;
2138 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::is_floating_point;
2140 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::is_floating_point;
2142 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::is_floating_point;
2144 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::is_floating_point;
2146 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::is_floating_point;
2148 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::is_floating_point;
2150 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::is_floating_point;
2152 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::is_floating_point;
2154 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::is_floating_point;
2156 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::is_floating_point;
2158 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::is_floating_point;
2160 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::is_floating_point;
2162 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::is_floating_point;
2164 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::is_floating_point;
2166 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::is_floating_point;
2168 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::is_floating_point;
2170 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::is_floating_point;
2172 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::is_floating_point;
2174 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::is_floating_point;
2176 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::is_floating_point;
2178 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::is_floating_point;
2180 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::is_floating_point;
2182 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::is_floating_point;
2184 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::is_floating_point;
2186 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::is_floating_point;
2188 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::is_floating_point;
2190 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::is_floating_point;
2192 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::is_floating_point;
2194 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::is_floating_point;
2196 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::is_floating_point;
2198 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::is_floating_point;
2200 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::is_floating_point;
2202 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::is_floating_point;
2203
2204 }
2205 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2207 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2208}
2209
2210
2212{
2213 switch (m_pixelFormat)
2214 { case PixelFormat::BayerGR8:
2215 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::GetUnpackedFormat();
2217 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::GetUnpackedFormat();
2219 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::GetUnpackedFormat();
2221 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::GetUnpackedFormat();
2223 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::GetUnpackedFormat();
2225 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::GetUnpackedFormat();
2227 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::GetUnpackedFormat();
2229 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::GetUnpackedFormat();
2231 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::GetUnpackedFormat();
2233 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::GetUnpackedFormat();
2235 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::GetUnpackedFormat();
2237 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::GetUnpackedFormat();
2238 case PixelFormat::Mono8:
2239 return detail::PixelFormatInfo<PixelFormat::Mono8>::GetUnpackedFormat();
2241 return detail::PixelFormatInfo<PixelFormat::Mono10>::GetUnpackedFormat();
2243 return detail::PixelFormatInfo<PixelFormat::Mono12>::GetUnpackedFormat();
2245 return detail::PixelFormatInfo<PixelFormat::Mono16>::GetUnpackedFormat();
2247 return detail::PixelFormatInfo<PixelFormat::Confidence8>::GetUnpackedFormat();
2249 return detail::PixelFormatInfo<PixelFormat::Confidence16>::GetUnpackedFormat();
2251 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::GetUnpackedFormat();
2253 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::GetUnpackedFormat();
2255 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::GetUnpackedFormat();
2257 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::GetUnpackedFormat();
2259 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::GetUnpackedFormat();
2261 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::GetUnpackedFormat();
2263 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::GetUnpackedFormat();
2264 case PixelFormat::RGB8:
2265 return detail::PixelFormatInfo<PixelFormat::RGB8>::GetUnpackedFormat();
2266 case PixelFormat::RGB10:
2267 return detail::PixelFormatInfo<PixelFormat::RGB10>::GetUnpackedFormat();
2268 case PixelFormat::RGB12:
2269 return detail::PixelFormatInfo<PixelFormat::RGB12>::GetUnpackedFormat();
2270 case PixelFormat::BGR8:
2271 return detail::PixelFormatInfo<PixelFormat::BGR8>::GetUnpackedFormat();
2272 case PixelFormat::BGR10:
2273 return detail::PixelFormatInfo<PixelFormat::BGR10>::GetUnpackedFormat();
2274 case PixelFormat::BGR12:
2275 return detail::PixelFormatInfo<PixelFormat::BGR12>::GetUnpackedFormat();
2276 case PixelFormat::RGBa8:
2277 return detail::PixelFormatInfo<PixelFormat::RGBa8>::GetUnpackedFormat();
2279 return detail::PixelFormatInfo<PixelFormat::RGBa10>::GetUnpackedFormat();
2281 return detail::PixelFormatInfo<PixelFormat::RGBa12>::GetUnpackedFormat();
2282 case PixelFormat::BGRa8:
2283 return detail::PixelFormatInfo<PixelFormat::BGRa8>::GetUnpackedFormat();
2285 return detail::PixelFormatInfo<PixelFormat::BGRa10>::GetUnpackedFormat();
2287 return detail::PixelFormatInfo<PixelFormat::BGRa12>::GetUnpackedFormat();
2289 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::GetUnpackedFormat();
2291 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::GetUnpackedFormat();
2293 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::GetUnpackedFormat();
2295 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::GetUnpackedFormat();
2297 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::GetUnpackedFormat();
2299 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::GetUnpackedFormat();
2301 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::GetUnpackedFormat();
2303 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::GetUnpackedFormat();
2305 return detail::PixelFormatInfo<PixelFormat::Mono10p>::GetUnpackedFormat();
2307 return detail::PixelFormatInfo<PixelFormat::Mono12p>::GetUnpackedFormat();
2309 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::GetUnpackedFormat();
2311 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::GetUnpackedFormat();
2313 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::GetUnpackedFormat();
2315 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::GetUnpackedFormat();
2317 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::GetUnpackedFormat();
2319 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::GetUnpackedFormat();
2321 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::GetUnpackedFormat();
2323 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::GetUnpackedFormat();
2325 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::GetUnpackedFormat();
2327 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::GetUnpackedFormat();
2329 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::GetUnpackedFormat();
2331 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::GetUnpackedFormat();
2333 return detail::PixelFormatInfo<PixelFormat::Mono32f>::GetUnpackedFormat();
2334 case PixelFormat::Mono32fIDS:
2335 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::GetUnpackedFormat();
2337 return detail::PixelFormatInfo<PixelFormat::RGB32f>::GetUnpackedFormat();
2338 case PixelFormat::RGB32fIDS:
2339 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::GetUnpackedFormat();
2341 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::GetUnpackedFormat();
2343 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::GetUnpackedFormat();
2345 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::GetUnpackedFormat();
2347 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::GetUnpackedFormat();
2349 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::GetUnpackedFormat();
2351 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::GetUnpackedFormat();
2353 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::GetUnpackedFormat();
2355 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::GetUnpackedFormat();
2357 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::GetUnpackedFormat();
2359 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::GetUnpackedFormat();
2361 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::GetUnpackedFormat();
2363 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::GetUnpackedFormat();
2365 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::GetUnpackedFormat();
2367 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::GetUnpackedFormat();
2369 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::GetUnpackedFormat();
2371 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::GetUnpackedFormat();
2373 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::GetUnpackedFormat();
2375 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::GetUnpackedFormat();
2377 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::GetUnpackedFormat();
2379 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::GetUnpackedFormat();
2381 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::GetUnpackedFormat();
2383 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::GetUnpackedFormat();
2385 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::GetUnpackedFormat();
2387 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::GetUnpackedFormat();
2389 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::GetUnpackedFormat();
2391 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::GetUnpackedFormat();
2393 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::GetUnpackedFormat();
2395 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::GetUnpackedFormat();
2397 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::GetUnpackedFormat();
2399 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::GetUnpackedFormat();
2401 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::GetUnpackedFormat();
2403 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::GetUnpackedFormat();
2405 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::GetUnpackedFormat();
2407 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::GetUnpackedFormat();
2409 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::GetUnpackedFormat();
2411 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::GetUnpackedFormat();
2413 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::GetUnpackedFormat();
2415 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::GetUnpackedFormat();
2417 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::GetUnpackedFormat();
2419 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::GetUnpackedFormat();
2421 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::GetUnpackedFormat();
2423 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::GetUnpackedFormat();
2425 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::GetUnpackedFormat();
2427 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::GetUnpackedFormat();
2429 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::GetUnpackedFormat();
2431 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::GetUnpackedFormat();
2433 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::GetUnpackedFormat();
2435 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::GetUnpackedFormat();
2437 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::GetUnpackedFormat();
2439 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::GetUnpackedFormat();
2441 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::GetUnpackedFormat();
2443 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::GetUnpackedFormat();
2445 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::GetUnpackedFormat();
2447 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::GetUnpackedFormat();
2449 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::GetUnpackedFormat();
2451 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::GetUnpackedFormat();
2453 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::GetUnpackedFormat();
2455 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::GetUnpackedFormat();
2457 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::GetUnpackedFormat();
2459 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::GetUnpackedFormat();
2460
2461 }
2462 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2464 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2465}
2466
2467
2468inline std::vector<Channel> PixelFormatInfo::GetChannels() const
2469{
2470 switch (m_pixelFormat)
2471 { case PixelFormat::BayerGR8:
2472 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8>>() };
2474 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10>>() };
2476 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12>>() };
2478 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8>>() };
2480 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10>>() };
2482 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12>>() };
2484 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8>>() };
2486 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10>>() };
2488 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12>>() };
2490 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8>>() };
2492 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10>>() };
2494 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12>>() };
2495 case PixelFormat::Mono8:
2496 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8>>() };
2498 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10>>() };
2500 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12>>() };
2502 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono16>>() };
2504 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Confidence8>>() };
2506 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Confidence16>>() };
2508 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C8>>() };
2510 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C16>>() };
2512 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>>() };
2514 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>>() };
2516 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>>() };
2518 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>>() };
2520 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>>() };
2521 case PixelFormat::RGB8:
2522 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB8>>() };
2523 case PixelFormat::RGB10:
2524 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB10>>() };
2525 case PixelFormat::RGB12:
2526 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB12>>() };
2527 case PixelFormat::BGR8:
2528 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR8>>() };
2529 case PixelFormat::BGR10:
2530 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR10>>() };
2531 case PixelFormat::BGR12:
2532 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR12>>() };
2533 case PixelFormat::RGBa8:
2534 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa8>>() };
2536 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa10>>() };
2538 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGBa12>>() };
2539 case PixelFormat::BGRa8:
2540 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa8>>() };
2542 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa10>>() };
2544 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGRa12>>() };
2546 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10p>>() };
2548 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12p>>() };
2550 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10p>>() };
2552 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12p>>() };
2554 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10p>>() };
2556 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12p>>() };
2558 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10p>>() };
2560 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12p>>() };
2562 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p>>() };
2564 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p>>() };
2566 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB10p32>>() };
2568 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BGR10p32>>() };
2570 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>>() };
2572 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>>() };
2574 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>>() };
2576 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>>() };
2578 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>>() };
2580 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>>() };
2582 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>>() };
2584 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>>() };
2586 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>>() };
2588 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>>() };
2590 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono32f>>() };
2591 case PixelFormat::Mono32fIDS:
2592 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono32fIDS>>() };
2594 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB32f>>() };
2595 case PixelFormat::RGB32fIDS:
2596 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::RGB32fIDS>>() };
2598 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>>() };
2600 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>>() };
2602 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>>() };
2604 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>>() };
2606 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>>() };
2608 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>>() };
2610 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>>() };
2612 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>>() };
2614 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>>() };
2616 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>>() };
2618 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>>() };
2620 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>>() };
2622 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>>() };
2624 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>>() };
2626 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>>() };
2628 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>>() };
2630 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>>() };
2632 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>>() };
2634 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>>() };
2636 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>>() };
2638 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>>() };
2640 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>>() };
2642 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>>() };
2644 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>>() };
2646 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>>() };
2648 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>>() };
2650 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>>() };
2652 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>>() };
2654 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>>() };
2656 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>>() };
2658 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>>() };
2660 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>>() };
2662 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>>() };
2664 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>>() };
2666 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>>() };
2668 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>>() };
2670 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>>() };
2672 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>>() };
2674 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>>() };
2676 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>>() };
2678 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>>() };
2680 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>>() };
2682 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_AB>>() };
2684 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>>() };
2686 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>>() };
2688 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>>() };
2690 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>>() };
2692 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_AB>>() };
2694 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>>() };
2696 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>>() };
2698 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>>() };
2700 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>>() };
2702 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_AB>>() };
2704 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>>() };
2706 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>>() };
2708 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>>() };
2710 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>>() };
2712 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>>() };
2714 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>>() };
2716 return { detail::ChannelsVector<detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>>() };
2717
2718 }
2719 const auto pixelFormatValue = static_cast<typename std::underlying_type<decltype(m_pixelFormat)>::type>(m_pixelFormat);
2721 "The given pixel format with the integer value of " + std::to_string(pixelFormatValue) + " is unknown!");
2722}
2723template <>
2724
2726{
2727 switch (m_pixelFormat)
2728 { case PixelFormat::BayerGR8:
2729 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::minimumValuePerChannel;
2731 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::minimumValuePerChannel;
2733 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::minimumValuePerChannel;
2735 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::minimumValuePerChannel;
2737 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::minimumValuePerChannel;
2739 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::minimumValuePerChannel;
2741 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::minimumValuePerChannel;
2743 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::minimumValuePerChannel;
2745 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::minimumValuePerChannel;
2747 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::minimumValuePerChannel;
2749 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::minimumValuePerChannel;
2751 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::minimumValuePerChannel;
2752 case PixelFormat::Mono8:
2753 return detail::PixelFormatInfo<PixelFormat::Mono8>::minimumValuePerChannel;
2755 return detail::PixelFormatInfo<PixelFormat::Mono10>::minimumValuePerChannel;
2757 return detail::PixelFormatInfo<PixelFormat::Mono12>::minimumValuePerChannel;
2759 return detail::PixelFormatInfo<PixelFormat::Mono16>::minimumValuePerChannel;
2761 return detail::PixelFormatInfo<PixelFormat::Confidence8>::minimumValuePerChannel;
2763 return detail::PixelFormatInfo<PixelFormat::Confidence16>::minimumValuePerChannel;
2765 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::minimumValuePerChannel;
2767 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::minimumValuePerChannel;
2769 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::minimumValuePerChannel;
2771 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::minimumValuePerChannel;
2773 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::minimumValuePerChannel;
2774 case PixelFormat::RGB8:
2775 return detail::PixelFormatInfo<PixelFormat::RGB8>::minimumValuePerChannel;
2776 case PixelFormat::RGB10:
2777 return detail::PixelFormatInfo<PixelFormat::RGB10>::minimumValuePerChannel;
2778 case PixelFormat::RGB12:
2779 return detail::PixelFormatInfo<PixelFormat::RGB12>::minimumValuePerChannel;
2780 case PixelFormat::BGR8:
2781 return detail::PixelFormatInfo<PixelFormat::BGR8>::minimumValuePerChannel;
2782 case PixelFormat::BGR10:
2783 return detail::PixelFormatInfo<PixelFormat::BGR10>::minimumValuePerChannel;
2784 case PixelFormat::BGR12:
2785 return detail::PixelFormatInfo<PixelFormat::BGR12>::minimumValuePerChannel;
2786 case PixelFormat::RGBa8:
2787 return detail::PixelFormatInfo<PixelFormat::RGBa8>::minimumValuePerChannel;
2789 return detail::PixelFormatInfo<PixelFormat::RGBa10>::minimumValuePerChannel;
2791 return detail::PixelFormatInfo<PixelFormat::RGBa12>::minimumValuePerChannel;
2792 case PixelFormat::BGRa8:
2793 return detail::PixelFormatInfo<PixelFormat::BGRa8>::minimumValuePerChannel;
2795 return detail::PixelFormatInfo<PixelFormat::BGRa10>::minimumValuePerChannel;
2797 return detail::PixelFormatInfo<PixelFormat::BGRa12>::minimumValuePerChannel;
2799 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::minimumValuePerChannel;
2801 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::minimumValuePerChannel;
2803 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::minimumValuePerChannel;
2805 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::minimumValuePerChannel;
2807 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::minimumValuePerChannel;
2809 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::minimumValuePerChannel;
2811 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::minimumValuePerChannel;
2813 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::minimumValuePerChannel;
2815 return detail::PixelFormatInfo<PixelFormat::Mono10p>::minimumValuePerChannel;
2817 return detail::PixelFormatInfo<PixelFormat::Mono12p>::minimumValuePerChannel;
2819 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::minimumValuePerChannel;
2821 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::minimumValuePerChannel;
2823 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::minimumValuePerChannel;
2825 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::minimumValuePerChannel;
2827 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::minimumValuePerChannel;
2829 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::minimumValuePerChannel;
2831 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::minimumValuePerChannel;
2833 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::minimumValuePerChannel;
2835 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::minimumValuePerChannel;
2837 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::minimumValuePerChannel;
2839 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::minimumValuePerChannel;
2841 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::minimumValuePerChannel;
2843 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::minimumValuePerChannel;
2845 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::minimumValuePerChannel;
2847 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::minimumValuePerChannel;
2849 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::minimumValuePerChannel;
2851 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::minimumValuePerChannel;
2853 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::minimumValuePerChannel;
2855 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::minimumValuePerChannel;
2857 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::minimumValuePerChannel;
2859 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::minimumValuePerChannel;
2861 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::minimumValuePerChannel;
2863 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::minimumValuePerChannel;
2865 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::minimumValuePerChannel;
2867 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::minimumValuePerChannel;
2869 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::minimumValuePerChannel;
2871 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::minimumValuePerChannel;
2873 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::minimumValuePerChannel;
2875 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::minimumValuePerChannel;
2877 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::minimumValuePerChannel;
2879 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::minimumValuePerChannel;
2881 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::minimumValuePerChannel;
2883 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::minimumValuePerChannel;
2885 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::minimumValuePerChannel;
2887 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::minimumValuePerChannel;
2889 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::minimumValuePerChannel;
2891 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::minimumValuePerChannel;
2893 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::minimumValuePerChannel;
2895 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::minimumValuePerChannel;
2897 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::minimumValuePerChannel;
2899 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::minimumValuePerChannel;
2901 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::minimumValuePerChannel;
2903 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::minimumValuePerChannel;
2905 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::minimumValuePerChannel;
2907 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::minimumValuePerChannel;
2909 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::minimumValuePerChannel;
2911 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::minimumValuePerChannel;
2913 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::minimumValuePerChannel;
2915 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::minimumValuePerChannel;
2917 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::minimumValuePerChannel;
2919 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::minimumValuePerChannel;
2921 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::minimumValuePerChannel;
2923 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::minimumValuePerChannel;
2925 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::minimumValuePerChannel;
2927 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::minimumValuePerChannel;
2929 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::minimumValuePerChannel;
2931 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::minimumValuePerChannel;
2933 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::minimumValuePerChannel;
2935 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::minimumValuePerChannel;
2937 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::minimumValuePerChannel;
2939 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::minimumValuePerChannel;
2941 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::minimumValuePerChannel;
2943 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::minimumValuePerChannel;
2945 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::minimumValuePerChannel;
2947 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::minimumValuePerChannel;
2949 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::minimumValuePerChannel;
2951 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::minimumValuePerChannel;
2953 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::minimumValuePerChannel;
2955 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::minimumValuePerChannel;
2957 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::minimumValuePerChannel;
2959 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::minimumValuePerChannel;
2961 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::minimumValuePerChannel;
2962 default:
2964 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
2965 }
2966}
2967template <>
2968
2970{
2971 switch (m_pixelFormat)
2973 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::minimumValuePerChannel;
2975 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::minimumValuePerChannel;
2977 return detail::PixelFormatInfo<PixelFormat::Mono32f>::minimumValuePerChannel;
2978 case PixelFormat::Mono32fIDS:
2979 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::minimumValuePerChannel;
2981 return detail::PixelFormatInfo<PixelFormat::RGB32f>::minimumValuePerChannel;
2982 case PixelFormat::RGB32fIDS:
2983 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::minimumValuePerChannel;
2984 default:
2986 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
2987 }
2988}
2989template <>
2990
2992{
2993 switch (m_pixelFormat)
2994 { case PixelFormat::BayerGR8:
2995 return detail::PixelFormatInfo<PixelFormat::BayerGR8>::maximumValuePerChannel;
2997 return detail::PixelFormatInfo<PixelFormat::BayerGR10>::maximumValuePerChannel;
2999 return detail::PixelFormatInfo<PixelFormat::BayerGR12>::maximumValuePerChannel;
3001 return detail::PixelFormatInfo<PixelFormat::BayerRG8>::maximumValuePerChannel;
3003 return detail::PixelFormatInfo<PixelFormat::BayerRG10>::maximumValuePerChannel;
3005 return detail::PixelFormatInfo<PixelFormat::BayerRG12>::maximumValuePerChannel;
3007 return detail::PixelFormatInfo<PixelFormat::BayerGB8>::maximumValuePerChannel;
3009 return detail::PixelFormatInfo<PixelFormat::BayerGB10>::maximumValuePerChannel;
3011 return detail::PixelFormatInfo<PixelFormat::BayerGB12>::maximumValuePerChannel;
3013 return detail::PixelFormatInfo<PixelFormat::BayerBG8>::maximumValuePerChannel;
3015 return detail::PixelFormatInfo<PixelFormat::BayerBG10>::maximumValuePerChannel;
3017 return detail::PixelFormatInfo<PixelFormat::BayerBG12>::maximumValuePerChannel;
3018 case PixelFormat::Mono8:
3019 return detail::PixelFormatInfo<PixelFormat::Mono8>::maximumValuePerChannel;
3021 return detail::PixelFormatInfo<PixelFormat::Mono10>::maximumValuePerChannel;
3023 return detail::PixelFormatInfo<PixelFormat::Mono12>::maximumValuePerChannel;
3025 return detail::PixelFormatInfo<PixelFormat::Mono16>::maximumValuePerChannel;
3027 return detail::PixelFormatInfo<PixelFormat::Confidence8>::maximumValuePerChannel;
3029 return detail::PixelFormatInfo<PixelFormat::Confidence16>::maximumValuePerChannel;
3031 return detail::PixelFormatInfo<PixelFormat::Coord3D_C8>::maximumValuePerChannel;
3033 return detail::PixelFormatInfo<PixelFormat::Coord3D_C16>::maximumValuePerChannel;
3035 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_UV_SemiplanarIDS>::maximumValuePerChannel;
3037 return detail::PixelFormatInfo<PixelFormat::YUV420_8_YY_VU_SemiplanarIDS>::maximumValuePerChannel;
3039 return detail::PixelFormatInfo<PixelFormat::YUV422_8_UYVY>::maximumValuePerChannel;
3040 case PixelFormat::RGB8:
3041 return detail::PixelFormatInfo<PixelFormat::RGB8>::maximumValuePerChannel;
3042 case PixelFormat::RGB10:
3043 return detail::PixelFormatInfo<PixelFormat::RGB10>::maximumValuePerChannel;
3044 case PixelFormat::RGB12:
3045 return detail::PixelFormatInfo<PixelFormat::RGB12>::maximumValuePerChannel;
3046 case PixelFormat::BGR8:
3047 return detail::PixelFormatInfo<PixelFormat::BGR8>::maximumValuePerChannel;
3048 case PixelFormat::BGR10:
3049 return detail::PixelFormatInfo<PixelFormat::BGR10>::maximumValuePerChannel;
3050 case PixelFormat::BGR12:
3051 return detail::PixelFormatInfo<PixelFormat::BGR12>::maximumValuePerChannel;
3052 case PixelFormat::RGBa8:
3053 return detail::PixelFormatInfo<PixelFormat::RGBa8>::maximumValuePerChannel;
3055 return detail::PixelFormatInfo<PixelFormat::RGBa10>::maximumValuePerChannel;
3057 return detail::PixelFormatInfo<PixelFormat::RGBa12>::maximumValuePerChannel;
3058 case PixelFormat::BGRa8:
3059 return detail::PixelFormatInfo<PixelFormat::BGRa8>::maximumValuePerChannel;
3061 return detail::PixelFormatInfo<PixelFormat::BGRa10>::maximumValuePerChannel;
3063 return detail::PixelFormatInfo<PixelFormat::BGRa12>::maximumValuePerChannel;
3065 return detail::PixelFormatInfo<PixelFormat::BayerBG10p>::maximumValuePerChannel;
3067 return detail::PixelFormatInfo<PixelFormat::BayerBG12p>::maximumValuePerChannel;
3069 return detail::PixelFormatInfo<PixelFormat::BayerGB10p>::maximumValuePerChannel;
3071 return detail::PixelFormatInfo<PixelFormat::BayerGB12p>::maximumValuePerChannel;
3073 return detail::PixelFormatInfo<PixelFormat::BayerGR10p>::maximumValuePerChannel;
3075 return detail::PixelFormatInfo<PixelFormat::BayerGR12p>::maximumValuePerChannel;
3077 return detail::PixelFormatInfo<PixelFormat::BayerRG10p>::maximumValuePerChannel;
3079 return detail::PixelFormatInfo<PixelFormat::BayerRG12p>::maximumValuePerChannel;
3081 return detail::PixelFormatInfo<PixelFormat::Mono10p>::maximumValuePerChannel;
3083 return detail::PixelFormatInfo<PixelFormat::Mono12p>::maximumValuePerChannel;
3085 return detail::PixelFormatInfo<PixelFormat::RGB10p32>::maximumValuePerChannel;
3087 return detail::PixelFormatInfo<PixelFormat::BGR10p32>::maximumValuePerChannel;
3089 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS>::maximumValuePerChannel;
3091 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS>::maximumValuePerChannel;
3093 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS>::maximumValuePerChannel;
3095 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS>::maximumValuePerChannel;
3097 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS>::maximumValuePerChannel;
3099 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS>::maximumValuePerChannel;
3101 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS>::maximumValuePerChannel;
3103 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS>::maximumValuePerChannel;
3105 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS>::maximumValuePerChannel;
3107 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS>::maximumValuePerChannel;
3109 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_A_B>::maximumValuePerChannel;
3111 return detail::PixelFormatInfo<PixelFormat::BayerRG10g40IDS_I_A_B>::maximumValuePerChannel;
3113 return detail::PixelFormatInfo<PixelFormat::BayerBG10g40IDS_I_A_B>::maximumValuePerChannel;
3115 return detail::PixelFormatInfo<PixelFormat::BayerGR10g40IDS_I_A_B>::maximumValuePerChannel;
3117 return detail::PixelFormatInfo<PixelFormat::BayerGB10g40IDS_I_A_B>::maximumValuePerChannel;
3119 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_A_B>::maximumValuePerChannel;
3121 return detail::PixelFormatInfo<PixelFormat::BayerRG12g24IDS_I_A_B>::maximumValuePerChannel;
3123 return detail::PixelFormatInfo<PixelFormat::BayerBG12g24IDS_I_A_B>::maximumValuePerChannel;
3125 return detail::PixelFormatInfo<PixelFormat::BayerGR12g24IDS_I_A_B>::maximumValuePerChannel;
3127 return detail::PixelFormatInfo<PixelFormat::BayerGB12g24IDS_I_A_B>::maximumValuePerChannel;
3129 return detail::PixelFormatInfo<PixelFormat::Mono8_I_A_B>::maximumValuePerChannel;
3131 return detail::PixelFormatInfo<PixelFormat::BayerRG8_I_A_B>::maximumValuePerChannel;
3133 return detail::PixelFormatInfo<PixelFormat::BayerBG8_I_A_B>::maximumValuePerChannel;
3135 return detail::PixelFormatInfo<PixelFormat::BayerGR8_I_A_B>::maximumValuePerChannel;
3137 return detail::PixelFormatInfo<PixelFormat::BayerGB8_I_A_B>::maximumValuePerChannel;
3139 return detail::PixelFormatInfo<PixelFormat::Mono10_I_A_B>::maximumValuePerChannel;
3141 return detail::PixelFormatInfo<PixelFormat::BayerRG10_I_A_B>::maximumValuePerChannel;
3143 return detail::PixelFormatInfo<PixelFormat::BayerBG10_I_A_B>::maximumValuePerChannel;
3145 return detail::PixelFormatInfo<PixelFormat::BayerGR10_I_A_B>::maximumValuePerChannel;
3147 return detail::PixelFormatInfo<PixelFormat::BayerGB10_I_A_B>::maximumValuePerChannel;
3149 return detail::PixelFormatInfo<PixelFormat::Mono12_I_A_B>::maximumValuePerChannel;
3151 return detail::PixelFormatInfo<PixelFormat::BayerRG12_I_A_B>::maximumValuePerChannel;
3153 return detail::PixelFormatInfo<PixelFormat::BayerBG12_I_A_B>::maximumValuePerChannel;
3155 return detail::PixelFormatInfo<PixelFormat::BayerGR12_I_A_B>::maximumValuePerChannel;
3157 return detail::PixelFormatInfo<PixelFormat::BayerGB12_I_A_B>::maximumValuePerChannel;
3159 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_A_B>::maximumValuePerChannel;
3161 return detail::PixelFormatInfo<PixelFormat::BayerRG10p_I_A_B>::maximumValuePerChannel;
3163 return detail::PixelFormatInfo<PixelFormat::BayerBG10p_I_A_B>::maximumValuePerChannel;
3165 return detail::PixelFormatInfo<PixelFormat::BayerGR10p_I_A_B>::maximumValuePerChannel;
3167 return detail::PixelFormatInfo<PixelFormat::BayerGB10p_I_A_B>::maximumValuePerChannel;
3169 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_A_B>::maximumValuePerChannel;
3171 return detail::PixelFormatInfo<PixelFormat::BayerRG12p_I_A_B>::maximumValuePerChannel;
3173 return detail::PixelFormatInfo<PixelFormat::BayerBG12p_I_A_B>::maximumValuePerChannel;
3175 return detail::PixelFormatInfo<PixelFormat::BayerGR12p_I_A_B>::maximumValuePerChannel;
3177 return detail::PixelFormatInfo<PixelFormat::BayerGB12p_I_A_B>::maximumValuePerChannel;
3179 return detail::PixelFormatInfo<PixelFormat::Mono8_I_AB_CD>::maximumValuePerChannel;
3181 return detail::PixelFormatInfo<PixelFormat::Mono10_I_AB_CD>::maximumValuePerChannel;
3183 return detail::PixelFormatInfo<PixelFormat::Mono12_I_AB_CD>::maximumValuePerChannel;
3185 return detail::PixelFormatInfo<PixelFormat::Mono10p_I_AB_CD>::maximumValuePerChannel;
3187 return detail::PixelFormatInfo<PixelFormat::Mono12p_I_AB_CD>::maximumValuePerChannel;
3189 return detail::PixelFormatInfo<PixelFormat::Mono10g40IDS_I_AB_CD>::maximumValuePerChannel;
3191 return detail::PixelFormatInfo<PixelFormat::Mono12g24IDS_I_AB_CD>::maximumValuePerChannel;
3193 return detail::PixelFormatInfo<PixelFormat::Mono10_AB>::maximumValuePerChannel;
3195 return detail::PixelFormatInfo<PixelFormat::BayerRG10_AB>::maximumValuePerChannel;
3197 return detail::PixelFormatInfo<PixelFormat::BayerBG10_AB>::maximumValuePerChannel;
3199 return detail::PixelFormatInfo<PixelFormat::BayerGR10_AB>::maximumValuePerChannel;
3201 return detail::PixelFormatInfo<PixelFormat::BayerGB10_AB>::maximumValuePerChannel;
3203 return detail::PixelFormatInfo<PixelFormat::Mono12_AB>::maximumValuePerChannel;
3205 return detail::PixelFormatInfo<PixelFormat::BayerRG12_AB>::maximumValuePerChannel;
3207 return detail::PixelFormatInfo<PixelFormat::BayerBG12_AB>::maximumValuePerChannel;
3209 return detail::PixelFormatInfo<PixelFormat::BayerGR12_AB>::maximumValuePerChannel;
3211 return detail::PixelFormatInfo<PixelFormat::BayerGB12_AB>::maximumValuePerChannel;
3213 return detail::PixelFormatInfo<PixelFormat::Mono8_AB>::maximumValuePerChannel;
3215 return detail::PixelFormatInfo<PixelFormat::BayerRG8_AB>::maximumValuePerChannel;
3217 return detail::PixelFormatInfo<PixelFormat::BayerBG8_AB>::maximumValuePerChannel;
3219 return detail::PixelFormatInfo<PixelFormat::BayerGR8_AB>::maximumValuePerChannel;
3221 return detail::PixelFormatInfo<PixelFormat::BayerGB8_AB>::maximumValuePerChannel;
3223 return detail::PixelFormatInfo<PixelFormat::Mono8_ABCD>::maximumValuePerChannel;
3225 return detail::PixelFormatInfo<PixelFormat::Mono10_ABCD>::maximumValuePerChannel;
3227 return detail::PixelFormatInfo<PixelFormat::Mono12_ABCD>::maximumValuePerChannel;
3228 default:
3230 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
3231 }
3232}
3233template <>
3234
3236{
3237 switch (m_pixelFormat)
3239 return detail::PixelFormatInfo<PixelFormat::Coord3D_C32f>::maximumValuePerChannel;
3241 return detail::PixelFormatInfo<PixelFormat::Coord3D_ABC32f>::maximumValuePerChannel;
3243 return detail::PixelFormatInfo<PixelFormat::Mono32f>::maximumValuePerChannel;
3244 case PixelFormat::Mono32fIDS:
3245 return detail::PixelFormatInfo<PixelFormat::Mono32fIDS>::maximumValuePerChannel;
3247 return detail::PixelFormatInfo<PixelFormat::RGB32f>::maximumValuePerChannel;
3248 case PixelFormat::RGB32fIDS:
3249 return detail::PixelFormatInfo<PixelFormat::RGB32fIDS>::maximumValuePerChannel;
3250 default:
3252 "The template does not match the data type of pixel format " + GetName() + "! Use float as template argument.");
3253 }
3254}
3255
3256} // namespace common
3257} // namespace peak
3258
3259
3261
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:53
PEAK_COMMON_NO_DISCARD std::vector< Channel > GetChannels() const
Returns the list of channels in the pixel format.
Definition peak_common_pixel_format_info.ipp:2468
PEAK_COMMON_NO_DISCARD size_t GetStorageBitsPerPixel() const
Returns the total number of bits used per pixel for storage.
Definition peak_common_pixel_format_info.ipp:155
PEAK_COMMON_NO_DISCARD bool IsInterleaved() const
Indicates whether the pixel format is interleaved.
Definition peak_common_pixel_format_info.ipp:1697
PEAK_COMMON_NO_DISCARD size_t GetSizeInBytes(const Size &size) const
Calculates the memory size in bytes for a given image size.
Definition peak_common_pixel_format_info.ipp:1183
PEAK_COMMON_NO_DISCARD T GetMinimumValuePerChannel() const
Returns the minimum possible value per channel for the pixel format.
PEAK_COMMON_NO_DISCARD std::string GetName() const
Returns the human-readable name of the pixel format.
Definition peak_common_pixel_format_info.ipp:669
PEAK_COMMON_NO_DISCARD size_t GetStorageBitsPerChannel() const
Returns the number of bits used per channel for storage.
Definition peak_common_pixel_format_info.ipp:412
PixelFormatInfo(peak::common::PixelFormat pixelFormat)
Constructs a PixelFormatInfo object for the specified pixel format.
Definition peak_common_pixel_format.hpp:442
PEAK_COMMON_NO_DISCARD T GetMaximumValuePerChannel() const
Returns the maximum possible value per channel for the pixel format.
PEAK_COMMON_NO_DISCARD size_t GetAllocatedBitsPerPixel() const
Returns the number of allocated bits per pixel.
Definition peak_common_pixel_format_info.ipp:926
PEAK_COMMON_NO_DISCARD bool IsPacked() const
Returns whether the pixel format is packed.
Definition peak_common_pixel_format_info.ipp:1440
PEAK_COMMON_NO_DISCARD bool IsFloat() const
Returns whether the pixel format uses floating points.
Definition peak_common_pixel_format_info.ipp:1954
PEAK_COMMON_NO_DISCARD PixelFormat GetUnpackedPixelFormat() const
Returns the unpacked pixel format for a packed pixel format.
Definition peak_common_pixel_format_info.ipp:2211
detail::SizeT< uint32_t > Size
Size with unsigned 32-bit integer dimensions.
Definition peak_common_size.hpp:268
PixelFormat
Enum listing all supported pixel formats and their internal IDs.
Definition peak_common_pixel_format.hpp:59
@ BayerGR12p_I_A_B
BayerGR 12-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:180
@ BayerGB12_AB
BayerGB 12-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:199
@ BayerRG12g24IDS
BayerRG 12-Bit grouped 24-bit (IDS)
Definition peak_common_pixel_format.hpp:136
@ BayerBG12p_I_A_B
BayerBG 12-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:179
@ Coord3D_C8
3D coordinate C 8-Bit format
Definition peak_common_pixel_format.hpp:85
@ Mono10g40IDS_I_A_B
Mono 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:147
@ RGBa10
RGBA 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:106
@ RGB8
RGB 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:96
@ Mono10_I_AB_CD
Mono 10-Bit pixel format pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:183
@ Mono12p
Mono 12-Bit packed format.
Definition peak_common_pixel_format.hpp:126
@ Mono12
Mono 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:78
@ BGR10p32
BGR 10-Bit packed 32-bit format.
Definition peak_common_pixel_format.hpp:129
@ BayerGR12_AB
BayerGR 12-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:198
@ BayerGB10
BayerGB 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:69
@ BayerBG8_I_A_B
BayerBG 8-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:159
@ BayerGB12p_I_A_B
BayerGB 12-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:181
@ BayerRG12p
BayerRG 12-Bit packed format.
Definition peak_common_pixel_format.hpp:123
@ BayerBG10
BayerBG 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:73
@ BayerGR10_I_A_B
BayerGR 10-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:165
@ RGBa8
RGBA 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:105
@ Mono10g40IDS
Mono 10-Bit grouped 40-bit (IDS)
Definition peak_common_pixel_format.hpp:141
@ BayerRG8_I_A_B
BayerRG 8-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:158
@ BayerGB10g40IDS_I_A_B
BayerGB 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:151
@ BayerGR10g40IDS
BayerGR 10-Bit grouped 40-bit (IDS)
Definition peak_common_pixel_format.hpp:133
@ BayerGR12_I_A_B
BayerGR 12-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:170
@ BayerBG8_AB
BayerBG 8-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:202
@ BayerBG10p
BayerBG 10-Bit packed format.
Definition peak_common_pixel_format.hpp:113
@ BayerRG10p_I_A_B
BayerRG 10-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:173
@ Mono10_ABCD
Mono 10-Bit pixel format Components A, B, C, D.
Definition peak_common_pixel_format.hpp:206
@ RGBa12
RGBA 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:107
@ BayerGB10p_I_A_B
BayerGB 10-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:176
@ BayerGB12p
BayerGB 12-Bit packed format.
Definition peak_common_pixel_format.hpp:117
@ BGRa12
BGRA 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:111
@ BayerGR12
BayerGR 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:62
@ Mono10p_I_A_B
Mono 10-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:172
@ BayerRG10p
BayerRG 10-Bit packed format.
Definition peak_common_pixel_format.hpp:122
@ BayerGR8_I_A_B
BayerGR 8-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:160
@ BayerGR10p_I_A_B
BayerGR 10-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:175
@ BayerRG12
BayerRG 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:66
@ BayerBG10g40IDS_I_A_B
BayerBG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:149
@ BayerGR12p
BayerGR 12-Bit packed format.
Definition peak_common_pixel_format.hpp:120
@ BayerGR8
BayerGR 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:60
@ BayerBG12p
BayerBG 12-Bit packed format.
Definition peak_common_pixel_format.hpp:114
@ BayerBG8
BayerBG 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:72
@ BayerBG12_AB
BayerBG 12-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:197
@ Mono32f
Mono 32-Bit float pixel format.
Definition peak_common_pixel_format.hpp:80
@ Confidence16
Confidence 16-Bit format.
Definition peak_common_pixel_format.hpp:83
@ BayerGB12_I_A_B
BayerGB 12-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:171
@ RGB32f
RGB 32-Bit float pixel format.
Definition peak_common_pixel_format.hpp:99
@ Mono12g24IDS
Mono 12-Bit grouped 24-bit (IDS)
Definition peak_common_pixel_format.hpp:142
@ BayerRG10
BayerRG 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:65
@ BayerGB12
BayerGB 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:70
@ Mono8_I_AB_CD
Mono 8-Bit pixel format pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:182
@ BayerRG8
BayerRG 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:64
@ BayerGR10p
BayerGR 10-Bit packed format.
Definition peak_common_pixel_format.hpp:119
@ BayerBG12_I_A_B
BayerBG 12-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:169
@ BayerBG10_AB
BayerBG 10-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:192
@ YUV422_8_UYVY
UYVY 4:2:2 8-Bit format.
Definition peak_common_pixel_format.hpp:94
@ YUV420_8_YY_VU_SemiplanarIDS
YUV4:2:0 8-Bit YY/VU semiplanar (IDS)
Definition peak_common_pixel_format.hpp:92
@ BayerRG12g24IDS_I_A_B
BayerRG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:153
@ Mono8_ABCD
Mono 8-Bit pixel format Components A, B, C, D.
Definition peak_common_pixel_format.hpp:205
@ Mono12p_I_AB_CD
Mono 12-Bit packed format pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:186
@ BayerGB8
BayerGB 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:68
@ Mono12_I_AB_CD
Mono 12-Bit pixel format pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:184
@ Mono10_I_A_B
Mono 10-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:162
@ BGR12
BGR 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:103
@ Mono8_AB
Mono 8-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:200
@ Confidence8
Confidence 8-Bit format.
Definition peak_common_pixel_format.hpp:82
@ Mono10g40IDS_I_AB_CD
Mono 10-Bit grouped 40-bit (IDS) pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:187
@ BayerRG10g40IDS_I_A_B
BayerRG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:148
@ BayerGR12g24IDS_I_A_B
BayerGR 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:155
@ RGB10
RGB 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:97
@ BayerGR12g24IDS
BayerGR 12-Bit grouped 24-bit (IDS)
Definition peak_common_pixel_format.hpp:138
@ YUV420_8_YY_UV_SemiplanarIDS
YUV4:2:0 8-Bit YY/UV semiplanar (IDS)
Definition peak_common_pixel_format.hpp:91
@ BayerGR10
BayerGR 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:61
@ Coord3D_C32f
3D coordinate C 32-Bit float format
Definition peak_common_pixel_format.hpp:87
@ Mono16
Mono 16-Bit pixel format.
Definition peak_common_pixel_format.hpp:79
@ Mono10
Mono 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:77
@ BayerRG12_AB
BayerRG 12-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:196
@ Mono10p_I_AB_CD
Mono 10-Bit packed format pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:185
@ Mono12g24IDS_I_A_B
Mono 12-Bit grouped 24-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:152
@ BayerRG10_AB
BayerRG 10-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:191
@ Mono8
Mono 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:76
@ Mono12_I_A_B
Mono 12-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:167
@ BGR10
BGR 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:102
@ BayerBG10_I_A_B
BayerBG 10-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:164
@ Mono12p_I_A_B
Mono 12-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:177
@ BayerGB12g24IDS_I_A_B
BayerGB 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:156
@ Coord3D_ABC32f
3D coordinates A, B, C 32-Bit float format
Definition peak_common_pixel_format.hpp:89
@ RGB12
RGB 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:98
@ BayerGB10_I_A_B
BayerGB 10-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:166
@ BayerBG10p_I_A_B
BayerBG 10-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:174
@ BayerGR10_AB
BayerGR 10-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:193
@ BayerBG12
BayerBG 12-Bit pixel format.
Definition peak_common_pixel_format.hpp:74
@ BayerBG10g40IDS
BayerBG 10-Bit grouped 40-bit (IDS)
Definition peak_common_pixel_format.hpp:134
@ BayerGR8_AB
BayerGR 8-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:203
@ BayerGB10p
BayerGB 10-Bit packed format.
Definition peak_common_pixel_format.hpp:116
@ Mono12g24IDS_I_AB_CD
Mono 12-Bit grouped 24-bit (IDS) pixel Interleaved Components A, B, C, D.
Definition peak_common_pixel_format.hpp:188
@ BayerRG8_AB
BayerRG 8-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:201
@ BGRa8
BGRA 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:109
@ BayerGB8_AB
BayerGB 8-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:204
@ BayerGB10_AB
BayerGB 10-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:194
@ BGRa10
BGRA 10-Bit pixel format.
Definition peak_common_pixel_format.hpp:110
@ Coord3D_C16
3D coordinate C 16-Bit format
Definition peak_common_pixel_format.hpp:86
@ BayerRG12_I_A_B
BayerRG 12-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:168
@ BGR8
BGR 8-Bit pixel format.
Definition peak_common_pixel_format.hpp:101
@ BayerBG12g24IDS_I_A_B
BayerBG 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:154
@ BayerBG12g24IDS
BayerBG 12-Bit grouped 24-bit (IDS)
Definition peak_common_pixel_format.hpp:139
@ Mono8_I_A_B
Mono 8-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:157
@ Mono12_AB
Mono 12-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:195
@ Mono10_AB
Mono 10-Bit pixel format Components A, B.
Definition peak_common_pixel_format.hpp:190
@ BayerGR10g40IDS_I_A_B
BayerGR 10-Bit grouped 40-bit (IDS) line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:150
@ Mono10p
Mono 10-Bit packed format.
Definition peak_common_pixel_format.hpp:125
@ BayerRG10g40IDS
BayerRG 10-Bit grouped 40-bit (IDS)
Definition peak_common_pixel_format.hpp:131
@ BayerGB8_I_A_B
BayerGB 8-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:161
@ BayerRG12p_I_A_B
BayerRG 12-Bit packed format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:178
@ Mono12_ABCD
Mono 12-Bit pixel format Components A, B, C, D.
Definition peak_common_pixel_format.hpp:207
@ BayerRG10_I_A_B
BayerRG 10-Bit pixel format line Interleaved Components A, B.
Definition peak_common_pixel_format.hpp:163
@ RGB10p32
RGB 10-Bit packed 32-bit format.
Definition peak_common_pixel_format.hpp:128
@ BayerGB10g40IDS
BayerGB 10-Bit grouped 40-bit (IDS)
Definition peak_common_pixel_format.hpp:132
@ BayerGB12g24IDS
BayerGB 12-Bit grouped 24-bit (IDS)
Definition peak_common_pixel_format.hpp:137
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:17
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
#define PEAK_COMMON_END_DISABLE_DEPRECATED_WARNINGS
Definition peak_common_defines.h:34
#define PEAK_COMMON_BEGIN_DISABLE_DEPRECATED_WARNINGS
Definition peak_common_defines.h:33