GoPxL SDK
GoGdpImage.h
Go to the documentation of this file.
1 
10 #ifndef GO_PXL_SDK_GOGDPIMAGE_H
11 #define GO_PXL_SDK_GOGDPIMAGE_H
12 
15 
16 class GoGdpMsgTests;
17 
18 namespace GoPxLSdk
19 {
21  {
22  public:
29  GoGdpImage();
30  ~GoGdpImage() = default;
31 
40  void Deserialize(kSerializer serializer) override;
41 
49  const k32u Height() const;
50 
58  const k32u Width() const;
59 
67  const k32u PixelSize() const;
68 
76  const GoGdpPixelFormat::FormatType PixelFormat() const;
77 
91  const kCfa ColorFilter() const;
92 
100  const k32f Exposure() const;
101 
109  const bool FlippedX() const;
110 
118  const bool FlippedY() const;
119 
127  const bool ColumnBased() const;
128 
136  const kArray2 Pixels() const;
137 
138  private:
146  const kSize RowSize() const;
147 
148  private:
149  k32u width = 0;
150  k32u height = 0;
151  k32u pixelSize = 0;
152  GoGdpPixelFormat::FormatType pixelFormat = GoGdpPixelFormat::FormatType::Null_Format;
153  kCfa colorFilter = 0;
154  k32f exposure = 0.0;
155  bool flippedX = false;
156  bool flippedY = false;
157  bool columnBased = false;
158 
159  Go::Object<kArray2> pixels;
160 
161  friend class ::GoGdpMsgTests;
162  };
163 }
164 
165 #endif // GO_PXL_SDK_GOGDPIMAGE_H
#define GoPxLSdkClass
Definition: Def.h:35
Declares the GoPxLSdk.GoGdpPixelFormat class.
Definition: GoGdpImage.h:20
FormatType
Pixel format types.
Definition: GoGdpPixelFormat.h:59
Declares the GoPxLSdk.GoGdpMsg class.
Definition: Def.h:46
Definition: GoGdpMsg.h:38