GoPxL SDK

- Home
- Files
- Namespace

GoGdpImage.h
Go to the documentation of this file.
1
9 #ifndef GO_PXL_SDK_GOGDPIMAGE_H
10 #define GO_PXL_SDK_GOGDPIMAGE_H
11
12 #include <GoPxLSdk/GoGdpMsg/GoGdpMsg.h>
13 #include <GoPxLSdk/GoGdpMsg/GoGdpPixelFormat.h>
14
15 class GoGdpMsgTests;
16
17 namespace GoPxLSdk
18 {
19 class GoPxLSdkClass GoGdpImage : public GoGdpMsg
20 {
21 public:
28 GoGdpImage();
29 ~GoGdpImage() = default;
30
39 void Deserialize(kSerializer serializer) override;
40
48 const k32u Height() const;
49
57 const k32u Width() const;
58
66 const k32u PixelSize() const;
67
75 const GoGdpPixelFormat::FormatType PixelFormat() const;
76
90 const kCfa ColorFilter() const;
91
99 const k32f Exposure() const;
100
108 const bool FlippedX() const;
109
117 const bool FlippedY() const;
118
126 const bool ColumnBased() const;
127
135 const kArray2 Pixels() const;
136
137 private:
145 const kSize RowSize() const;
146
147 private:
148 k32u width = 0;
149 k32u height = 0;
150 k32u pixelSize = 0;
151 GoGdpPixelFormat::FormatType pixelFormat = GoGdpPixelFormat::FormatType::Null_Format;
152 kCfa colorFilter = 0;
153 k32f exposure = 0.0;
154 bool flippedX = false;
155 bool flippedY = false;
156 bool columnBased = false;
157
158 Go::Object<kArray2> pixels;
159
160 friend class ::GoGdpMsgTests;
161 };
162 }
163
164 #endif // GO_PXL_SDK_GOGDPIMAGE_H
GoPxLSdkClass
#define GoPxLSdkClass
Definition: Def.h:35
GoGdpPixelFormat.h
GoPxLSdk::GoGdpImage
Definition: GoGdpImage.h:19
GoPxLSdk::GoGdpPixelFormat::FormatType
FormatType
Pixel format types.
Definition: GoGdpPixelFormat.h:58
GoGdpMsg.h
GoPxLSdk
Definition: Def.h:46
GoPxLSdk::GoGdpMsg
Definition: GoGdpMsg.h:37