IDS peak AFL v2.1.0
Loading...
Searching...
No Matches
peak_common_pixel_format.hpp
Go to the documentation of this file.
1
7
8#pragma once
9
15#include <unordered_map>
16#include <algorithm>
17#include <array>
18#include <cstdint>
19#include <ostream>
20#include <string>
21#include <vector>
22
23// helper to suppress c enum deprecation warnings
24#define PEAK_COMMON_CREATE_DEPRECATED_HELPER(SUFFIX, CONST) \
25 constexpr uint64_t DeprecatedHelperGet##SUFFIX##CEnumValue() \
26 { \
27 return CPixelFormatCast(CONST); \
28 }
29
30namespace peak
31{
32namespace common
33{
34namespace detail
35{
36constexpr uint64_t CPixelFormatCast(peak_common_pixel_format pixelFormat) noexcept
37{
38 return static_cast<uint32_t>(static_cast<std::underlying_type_t<peak_common_pixel_format>>(pixelFormat));
39}
40
41PEAK_COMMON_BEGIN_DISABLE_DEPRECATED_WARNINGS
42PEAK_COMMON_CREATE_DEPRECATED_HELPER(Mono32FIDS, PEAK_COMMON_PIXEL_FORMAT_MONO_32F_IDS)
43PEAK_COMMON_CREATE_DEPRECATED_HELPER(RGB32FIDS, PEAK_COMMON_PIXEL_FORMAT_RGB_32F_IDS)
44PEAK_COMMON_END_DISABLE_DEPRECATED_WARNINGS
45
46} // namespace detail
47
48// clang-format off
58enum class PixelFormat : uint64_t
59{
60 BayerGR8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_8,
61 BayerGR10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10,
62 BayerGR12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12,
63
64 BayerRG8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_8,
65 BayerRG10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10,
66 BayerRG12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12,
67
68 BayerGB8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_8,
69 BayerGB10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10,
70 BayerGB12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12,
71
72 BayerBG8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_8,
73 BayerBG10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10,
74 BayerBG12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12,
75
76 Mono8 = PEAK_COMMON_PIXEL_FORMAT_MONO_8,
77 Mono10 = PEAK_COMMON_PIXEL_FORMAT_MONO_10,
78 Mono12 = PEAK_COMMON_PIXEL_FORMAT_MONO_12,
79 Mono16 = PEAK_COMMON_PIXEL_FORMAT_MONO_16,
80 Mono32f = PEAK_COMMON_PIXEL_FORMAT_MONO_32F,
81
82 Confidence8 = PEAK_COMMON_PIXEL_FORMAT_CONFIDENCE_8,
83 Confidence16 = PEAK_COMMON_PIXEL_FORMAT_CONFIDENCE_16,
84
85 Coord3D_C8 = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C8,
86 Coord3D_C16 = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C16,
87 Coord3D_C32f = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C32F,
88
89 Coord3D_ABC32f = PEAK_COMMON_PIXEL_FORMAT_COORD3D_ABC32F,
90
91 YUV420_8_YY_UV_SemiplanarIDS = PEAK_COMMON_PIXEL_FORMAT_YUV420_8_YY_UV_SemiplanarIDS,
92 YUV420_8_YY_VU_SemiplanarIDS = PEAK_COMMON_PIXEL_FORMAT_YUV420_8_YY_VU_SemiplanarIDS,
93
94 YUV422_8_UYVY = PEAK_COMMON_PIXEL_FORMAT_YUV422_8_UYVY,
95
96 RGB8 = PEAK_COMMON_PIXEL_FORMAT_RGB_8,
97 RGB10 = PEAK_COMMON_PIXEL_FORMAT_RGB_10,
98 RGB12 = PEAK_COMMON_PIXEL_FORMAT_RGB_12,
99 RGB32f = PEAK_COMMON_PIXEL_FORMAT_RGB_32F,
100
101 BGR8 = PEAK_COMMON_PIXEL_FORMAT_BGR_8,
102 BGR10 = PEAK_COMMON_PIXEL_FORMAT_BGR_10,
103 BGR12 = PEAK_COMMON_PIXEL_FORMAT_BGR_12,
104
105 RGBa8 = PEAK_COMMON_PIXEL_FORMAT_RGBA_8,
106 RGBa10 = PEAK_COMMON_PIXEL_FORMAT_RGBA_10,
107 RGBa12 = PEAK_COMMON_PIXEL_FORMAT_RGBA_12,
108
109 BGRa8 = PEAK_COMMON_PIXEL_FORMAT_BGRA_8,
110 BGRa10 = PEAK_COMMON_PIXEL_FORMAT_BGRA_10,
111 BGRa12 = PEAK_COMMON_PIXEL_FORMAT_BGRA_12,
112
113 BayerBG10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_PACKED,
114 BayerBG12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_PACKED,
115
116 BayerGB10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_PACKED,
117 BayerGB12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_PACKED,
118
119 BayerGR10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_PACKED,
120 BayerGR12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_PACKED,
121
122 BayerRG10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_PACKED,
123 BayerRG12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_PACKED,
124
125 Mono10p = PEAK_COMMON_PIXEL_FORMAT_MONO_10_PACKED,
126 Mono12p = PEAK_COMMON_PIXEL_FORMAT_MONO_12_PACKED,
127
128 RGB10p32 = PEAK_COMMON_PIXEL_FORMAT_RGB_10_PACKED_32,
129 BGR10p32 = PEAK_COMMON_PIXEL_FORMAT_BGR_10_PACKED_32,
130
135
140
143
144 Mono32fIDS PEAK_COMMON_DEPRECATED_ENUM_MSG("This value will be removed in a future Version. Use Mono32f instead.") = detail::DeprecatedHelperGetMono32FIDSCEnumValue(),
145 RGB32fIDS PEAK_COMMON_DEPRECATED_ENUM_MSG("This value will be removed in a future Version. Use RGB32fIDS instead.") = detail::DeprecatedHelperGetRGB32FIDSCEnumValue(),
146
189
190 Mono10_AB = detail::CPixelFormatCast(PEAK_COMMON_PIXEL_FORMAT_MONO_10_AB),
195 Mono12_AB = detail::CPixelFormatCast(PEAK_COMMON_PIXEL_FORMAT_MONO_12_AB),
200 Mono8_AB = detail::CPixelFormatCast(PEAK_COMMON_PIXEL_FORMAT_MONO_8_AB),
208};
209// clang-format on
210
211namespace detail
212{
213constexpr PixelFormat CPixelFormatToCppPixelFormat(peak_common_pixel_format pixelFormat) noexcept
214{
215 return static_cast<PixelFormat>(CPixelFormatCast(pixelFormat));
216}
217
218constexpr peak_common_pixel_format CppPixelFormatToCPixelFormat(PixelFormat pixelFormat) noexcept
219{
220 return static_cast<peak_common_pixel_format>(static_cast<uint32_t>(pixelFormat));
221}
222} // namespace detail
223
234{
235public:
242 explicit PixelFormatInfo(peak::common::PixelFormat pixelFormat);
243
250 explicit PixelFormatInfo(const std::string& name);
251
259 template <typename T = size_t>
260 PEAK_COMMON_NO_DISCARD T GetMinimumValuePerChannel() const;
261
269 template <typename T = size_t>
270 PEAK_COMMON_NO_DISCARD T GetMaximumValuePerChannel() const;
271
278 PEAK_COMMON_NO_DISCARD size_t GetStorageBitsPerPixel() const;
279
286 PEAK_COMMON_NO_DISCARD size_t GetStorageBitsPerChannel() const;
287
294 PEAK_COMMON_NO_DISCARD std::string GetName() const;
295
302 PEAK_COMMON_NO_DISCARD std::vector<Channel> GetChannels() const;
303
310 PEAK_COMMON_NO_DISCARD size_t GetAllocatedBitsPerPixel() const;
311
318 PEAK_COMMON_NO_DISCARD bool HasIntensityChannel() const;
319
327 PEAK_COMMON_NO_DISCARD size_t GetChannelIndex(Channel channel) const;
328
335 PEAK_COMMON_NO_DISCARD size_t GetNumberOfChannels() const;
336
343 PEAK_COMMON_NO_DISCARD bool IsSingleChannel() const;
344
352 PEAK_COMMON_NO_DISCARD bool HasChannel(Channel channel) const;
353
360 PEAK_COMMON_NO_DISCARD peak::common::PixelFormat GetPixelFormat() const;
361
369 PEAK_COMMON_NO_DISCARD size_t GetSizeInBytes(const Size& size) const;
370
377 PEAK_COMMON_NO_DISCARD bool IsPacked() const;
378
418 PEAK_COMMON_NO_DISCARD bool IsInterleaved() const;
419
426 PEAK_COMMON_NO_DISCARD bool IsFloat() const;
427
436 PEAK_COMMON_NO_DISCARD PixelFormat GetUnpackedPixelFormat() const;
437
438private:
439 peak::common::PixelFormat m_pixelFormat;
440};
441
443 : m_pixelFormat{ pixelFormat }
444{}
445
447{
449}
450
451inline size_t PixelFormatInfo::GetChannelIndex(Channel channel) const
452{
453 const auto channels = this->GetChannels();
454 const auto it = std::find(channels.cbegin(), channels.cend(), channel);
455 if (it == channels.end())
456 {
457 throw InvalidParameterException("The given channel is not part of the pixel format " + GetName() + '!');
458 }
459
460 return static_cast<size_t>(std::distance(channels.begin(), it));
461}
462
464{
465 return this->GetChannels().size();
466}
467
469{
470 return GetNumberOfChannels() == 1;
471}
472
473inline bool PixelFormatInfo::HasChannel(Channel channel) const
474{
475 const auto channels = this->GetChannels();
476 return std::find(channels.cbegin(), channels.cend(), channel) != channels.cend();
477}
478
480{
481 return m_pixelFormat;
482}
483} // namespace common
484} // namespace peak
485
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:53
std::vector< Channel > GetChannels() const
Returns the list of channels in the pixel format.
Definition peak_common_pixel_format_info.ipp:2468
PixelFormatInfo(peak::common::PixelFormat pixelFormat)
Constructs a PixelFormatInfo object for the specified pixel format.
Definition peak_common_pixel_format.hpp:442
T GetMinimumValuePerChannel() const
Returns the minimum possible value per channel for the pixel format.
Definition peak_common_pixel_format.ipp:121
bool HasIntensityChannel() const
Checks whether the pixel format includes an intensity channel.
Definition peak_common_pixel_format.hpp:446
PixelFormat GetUnpackedPixelFormat() const
Returns the unpacked pixel format for a packed pixel format.
Definition peak_common_pixel_format_info.ipp:2211
size_t GetChannelIndex(Channel channel) const
Returns the index of a specific channel within the pixel format.
Definition peak_common_pixel_format.hpp:451
size_t GetStorageBitsPerPixel() const
Returns the total number of bits used per pixel for storage.
Definition peak_common_pixel_format_info.ipp:155
bool HasChannel(Channel channel) const
Checks whether a specific channel is present in the pixel format.
Definition peak_common_pixel_format.hpp:473
size_t GetNumberOfChannels() const
Returns the total number of channels in the pixel format.
Definition peak_common_pixel_format.hpp:463
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
size_t GetAllocatedBitsPerPixel() const
Returns the number of allocated bits per pixel.
Definition peak_common_pixel_format_info.ipp:926
T GetMaximumValuePerChannel() const
Returns the maximum possible value per channel for the pixel format.
Definition peak_common_pixel_format.ipp:127
size_t GetStorageBitsPerChannel() const
Returns the number of bits used per channel for storage.
Definition peak_common_pixel_format_info.ipp:412
bool IsSingleChannel() const
Checks whether the pixel format contains only a single channel.
Definition peak_common_pixel_format.hpp:468
peak::common::PixelFormat GetPixelFormat() const
Returns the underlying pixel format enumeration value.
Definition peak_common_pixel_format.hpp:479
std::string GetName() const
Returns the human-readable name of the pixel format.
Definition peak_common_pixel_format_info.ipp:669
bool IsFloat() const
Returns whether the pixel format uses floating points.
Definition peak_common_pixel_format_info.ipp:1954
bool IsInterleaved() const
Indicates whether the pixel format is interleaved.
Definition peak_common_pixel_format_info.ipp:1697
bool IsPacked() const
Returns whether the pixel format is packed.
Definition peak_common_pixel_format_info.ipp:1440
peak_common_pixel_format
Enum listing all supported pixel formats and their internal IDs.
Definition peak_common_pixel_format.h:38
detail::SizeT< uint32_t > Size
Size with unsigned 32-bit integer dimensions.
Definition peak_common_size.hpp:268
Channel
Represents the various data channels in image or spatial data formats.
Definition peak_common_channel.hpp:28
PixelFormat
Enum listing all supported pixel formats and their internal IDs.
Definition peak_common_pixel_format.hpp:59
@ Intensity
Definition peak_common_channel.hpp:29
@ PEAK_COMMON_DEPRECATED_ENUM_MSG
Mono 32-Bit float format (IDS)
Definition peak_common_pixel_format.hpp:144
@ 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
Namespace for internal implementation details and low-level types.
Definition peak_common_math.hpp:19
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:17
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_AB
Definition peak_common_pixel_format.h:358
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_PACKED_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:322
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_GROUPED_24_IDS
Definition peak_common_pixel_format.h:130
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:226
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_8_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:222
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_AB
Definition peak_common_pixel_format.h:342
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:230
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_AB
Definition peak_common_pixel_format.h:354
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:274
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_GROUPED_40_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:166
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_8_AB
Definition peak_common_pixel_format.h:386
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:314
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:278
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_8_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:214
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:310
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_8_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:218
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_ABCD
Definition peak_common_pixel_format.h:398
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_GROUPED_40_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:170
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_GROUPED_24_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:202
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_GROUPED_24_IDS_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:330
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_AB
Definition peak_common_pixel_format.h:338
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_GROUPED_40_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:182
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:234
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_AB
Definition peak_common_pixel_format.h:366
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_GROUPED_40_IDS
Definition peak_common_pixel_format.h:122
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:262
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:258
@ PEAK_COMMON_PIXEL_FORMAT_MONO_8_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:206
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_GROUPED_40_IDS
Definition peak_common_pixel_format.h:146
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_GROUPED_40_IDS_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:326
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_GROUPED_24_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:186
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_8_AB
Definition peak_common_pixel_format.h:382
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_GROUPED_40_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:174
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_GROUPED_40_IDS
Definition peak_common_pixel_format.h:114
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_GROUPED_24_IDS
Definition peak_common_pixel_format.h:134
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:242
@ PEAK_COMMON_PIXEL_FORMAT_MONO_8_ABCD
Definition peak_common_pixel_format.h:394
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:266
@ PEAK_COMMON_PIXEL_FORMAT_MONO_8_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:306
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_AB
Definition peak_common_pixel_format.h:346
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_GROUPED_40_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:178
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:298
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_GROUPED_24_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:198
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_AB
Definition peak_common_pixel_format.h:350
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_AB
Definition peak_common_pixel_format.h:370
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_GROUPED_40_IDS
Definition peak_common_pixel_format.h:126
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:302
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:286
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:294
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_GROUPED_24_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:190
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:254
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_GROUPED_24_IDS
Definition peak_common_pixel_format.h:142
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:290
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_AB
Definition peak_common_pixel_format.h:362
@ PEAK_COMMON_PIXEL_FORMAT_MONO_8_AB
Definition peak_common_pixel_format.h:374
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_GROUPED_24_IDS
Definition peak_common_pixel_format.h:150
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_PACKED_INTERLEAVED_AB_CD
Definition peak_common_pixel_format.h:318
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:270
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:246
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_GROUPED_40_IDS
Definition peak_common_pixel_format.h:118
@ PEAK_COMMON_PIXEL_FORMAT_MONO_12_ABCD
Definition peak_common_pixel_format.h:402
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_8_AB
Definition peak_common_pixel_format.h:390
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_GROUPED_24_IDS_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:194
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_8_AB
Definition peak_common_pixel_format.h:378
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_PACKED_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:282
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_8_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:210
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_GROUPED_24_IDS
Definition peak_common_pixel_format.h:138
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:238
@ PEAK_COMMON_PIXEL_FORMAT_MONO_10_AB
Definition peak_common_pixel_format.h:334
@ PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_INTERLEAVED_A_B
Definition peak_common_pixel_format.h:250