IDS peak AFL v1.8.0
Loading...
Searching...
No Matches
peak_common_metadata_traits.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
14#include <cstdint>
15
16namespace peak
17{
18namespace common
19{
20
21namespace detail
22{
23
25
26template <MetadataKey metadataKey>
27struct MetadataKeyTraits;
28
30
38template <>
39struct MetadataKeyTraits<MetadataKey::DeviceTimestamp>
40{
41 using type = uint64_t;
42 static constexpr const char* name = "DeviceTimestamp";
43};
44
52template <>
53struct MetadataKeyTraits<MetadataKey::DeviceFrameID>
54{
55 using type = uint64_t;
56 static constexpr const char* name = "DeviceFrameID";
57};
58
59} // namespace detail
60
61} // namespace common
62} // namespace peak
Namespace for internal implementation details and low-level types.
Definition peak_common_math.hpp:24
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22
MetadataKey
Enumerates all compile-time known metadata keys.
Definition peak_common_metadata_key.hpp:32
@ DeviceTimestamp
Device-provided image acquisition timestamp in nanoseconds.
Definition peak_common_metadata_key.hpp:44
@ DeviceFrameID
A sequentially incremented identifier for the frame.
Definition peak_common_metadata_key.hpp:57