3DiVi Face SDK  3.24.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
IRawImage.h
Go to the documentation of this file.
1 
9 #ifndef __PBIO_API__PBIO__I_RAW_IMAGE_H_6091ae57d2124e47a999e03cf97f64f7
10 #define __PBIO_API__PBIO__I_RAW_IMAGE_H_6091ae57d2124e47a999e03cf97f64f7
11 
12 #include <stdint.h>
13 #include "SmartPtr.h"
14 
15 namespace pbio
16 {
17 
30 class IRawImage
31 {
32 public:
33 
39  typedef HeavySmartPtr<IRawImage>::tPtr Ptr;
40 
46  enum Format
47  {
54 
61 
68 
75 
82  };
83 
84 
90  virtual ~IRawImage(){}
91 
92 
110  virtual const unsigned char* data() const = 0;
111 
127  virtual int32_t width() const = 0;
128 
144  virtual int32_t height() const = 0;
145 
161  virtual int32_t format() const = 0;
162 };
163 
164 
165 } // pbio namespace
166 
167 #endif // __PBIO_API__PBIO__I_RAW_IMAGE_H_6091ae57d2124e47a999e03cf97f64f7
NV12 format in the YUV color coding system.
Definition: IRawImage.h:81
HeavySmartPtr< IRawImage >::tPtr Ptr
Alias for the type of a smart pointer to IRawImage.
Definition: IRawImage.h:39
RGB, 24 bit per pixel, 8 bit per channel.
Definition: IRawImage.h:60
NV21 format in the YUV color coding system, the standard image format used on the Android camera prev...
Definition: IRawImage.h:74
virtual int32_t height() const =0
Get image height.
Grayscale, 8 bit per pixel.
Definition: IRawImage.h:53
virtual int32_t width() const =0
Get image width.
virtual int32_t format() const =0
Get image format.
virtual ~IRawImage()
Virtual destructor.
Definition: IRawImage.h:90
BGR, 24 bit per pixel, 8 bit per channel.
Definition: IRawImage.h:67
Raw image interface. To use this interface, you need to inherit it and create your own implementation...
Definition: IRawImage.h:30
virtual const unsigned char * data() const =0
Get a pointer to the image data buffer. All pixels must be stored continuously row by row...
SmartPtr.
Format
Format of image data.
Definition: IRawImage.h:46