ifw-fgf 2.0.0
 
Loading...
Searching...
No Matches
rawImage.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11namespace ifw::fgf::common {
12
19 class RawImage {
20
21 public:
27 RawImage(int width, int height, int bpp);
28 RawImage(int width, int height, int bpp, unsigned char* image);
29
30 // Disable copy constructor and assignment
31 RawImage(const RawImage&) = delete;
33 virtual ~RawImage();
34
36 int GetWidth();
37
39 int GetHeight();
40
42 int GetBpp();
43
49 int GetSize();
50
56 unsigned char* GetImage();
57
58 double GetTimestamp();
59
60 void SetTimestamp(const double& timestamp);
61
62 private:
63 bool m_wrapper{false};
64 int m_width{0};
65 int m_height{0};
66 double m_timestamp{0};
67
68 // Bytes per pixel will be deduced from the data type
69 int m_bpp{0};
70 int m_sample{0};
71 unsigned char* m_image{nullptr};
72
73 };
74
75}
Raw Image Class to handle one image in memory.
Definition rawImage.hpp:22
int GetBpp()
Get image bytes per pixel.
int GetHeight()
Get image height.
RawImage(int width, int height, int bpp, unsigned char *image)
int GetSize()
Get image size.
unsigned char * GetImage()
Get a pointer to the image data.
RawImage(const RawImage &)=delete
RawImage & operator=(RawImage &)=delete
int GetWidth()
Get image width.
RawImage(int width, int height, int bpp)
Constructor.
void SetTimestamp(const double &timestamp)
Definition binarySemaphore.hpp:45