CVB++ 14.0
stream_image.hpp
1#pragma once
2
3#include <limits>
4
5#include "../global.hpp"
6#include "../image.hpp"
7
8namespace Cvb
9{
10
11CVB_BEGIN_INLINE_NS
12
13namespace 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
83using Driver::StreamImage;
84
85CVB_END_INLINE_NS
86
87
88
89}
90
Base class of all stream related images.
Definition: stream_image.hpp:33
virtual double RawTimestamp() const noexcept
Gets the raw timestamp as reported by the driver.
Definition: stream_image.hpp:54
The Common Vision Blox image.
Definition: decl_image.hpp:45
Image(Size2D< int > size, int numPlanes=1, DataType dataType=DataType::Int8BppUnsigned())
Constructs an uninitialized image with the given parameters.
Definition: decl_image.hpp:189
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24