stream_image.hpp
1 #pragma once
2 
3 #include <limits>
4 
5 #include "../global.hpp"
6 #include "../image.hpp"
7 
8 namespace Cvb
9 {
10 
11 CVB_BEGIN_INLINE_NS
12 
13 namespace Driver
14 {
15 
17 
32  : public Image
33 {
34  public:
35 
36 
37 
38 
39 
40 
41  virtual ~StreamImage() = default;
42 
43 
44 
45 
46 
48 
54  virtual double RawTimestamp() const noexcept
55  {
56  return rawTimestamp_;
57  }
58 
59 
60 
61  protected:
62 
63  StreamImage(HandleGuard<Image>&& guard) noexcept
64  : Image(std::move(guard))
66  {
67  }
68 
69 
70 
71  void SetRawTimestamp(double rawTimestamp) noexcept
72  {
73  rawTimestamp_ = rawTimestamp;
74  }
75 
76  private:
77 
78  double rawTimestamp_;
79 };
80 
81 }
82 
83 using Driver::StreamImage;
84 
85 CVB_END_INLINE_NS
86 
87 
88 
89 }
90 
Image(Size2D< int > size, int numPlanes=1, DataType dataType=DataType::Int8BppUnsigned())
Constructs an uninitialized image with the given parameters.
Definition: decl_image.hpp:189
Base class of all stream related images.
Definition: stream_image.hpp:31
Root namespace for the Image Manager interface.
Definition: version.hpp:11
The Common Vision Blox image.
Definition: decl_image.hpp:44
virtual double RawTimestamp() const noexcept
Gets the raw timestamp as reported by the driver.
Definition: stream_image.hpp:54