roviz  0.7
Code Documentation of roviz
image_p.h
1 #ifndef PORTABLEIMAGEPRIVATE_H
2 #define PORTABLEIMAGEPRIVATE_H
3 
4 #include "core/export_handling.h"
5 
6 #ifdef QT_PRESENT
7 #include <QImage>
8 #endif
9 
10 #include <memory>
11 #include "streams/image.h"
12 #include "streams/stream_object_p.h"
13 
20 {
21 public:
22 #ifdef QT_PRESENT
23  QImage qt_img;
24 #endif
25 #ifdef OPENCV_PRESENT
26  cv::Mat cv_img;
27 #endif
28  unsigned char *data_ptr;
29  bool is_self_managed;
30  int w, h, bits, bytes, len;
31  enum Image::Format f;
32 
33  ~ImagePrivate();
34 
41  void init(int w, int h, enum Image::Format f);
42 };
43 
44 #endif // PORTABLEIMAGEPRIVATE_H
void init(int w, int h, enum Image::Format f)
Initialize some generic properties.
Definition: image_p.cpp:10
Format
Enum of all supported image formats.
Definition: image.h:42
Private part of the StreamObject class.
Definition: stream_object_p.h:11
Private part of the Image class.
Definition: image_p.h:19