CVB++ 15.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 StreamImage(const StreamImage& other) = delete;
41 StreamImage& operator=(const StreamImage& other) = delete;
42 StreamImage(StreamImage&& other) = delete;
43 StreamImage& operator=(StreamImage&& other) = delete;
44 virtual ~StreamImage() = default;
45
46
47
48
49
51
57 virtual double RawTimestamp() const noexcept
58 {
59 return rawTimestamp_;
60 }
61
62
63
64 protected:
65
66 explicit StreamImage(HandleGuard<Image>&& guard) noexcept
67 : Image(std::move(guard))
69 {
70 }
71
72
73
74 void SetRawTimestamp(double rawTimestamp) noexcept
75 {
76 rawTimestamp_ = rawTimestamp;
77 }
78
79 private:
80
81 double rawTimestamp_;
82};
83
84}
85
86using Driver::StreamImage;
87
88CVB_END_INLINE_NS
89
90
91
92}
93
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:57
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