OpenDaVINCI  4.16.0
JPG.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_JPG_JPG_H_
21 #define OPENDAVINCI_CORE_WRAPPER_JPG_JPG_H_
22 
24 
25 namespace odcore {
26  namespace wrapper {
27  namespace jpg {
28 
34  private:
40  JPG(const JPG &);
41 
47  JPG& operator=(const JPG &);
48 
49  JPG();
50 
51  public:
52  virtual ~JPG();
53 
66  static bool compress(void *dest, int &destSize, const uint32_t &width, const uint32_t &height, const uint32_t &bytesPerPixel, const uint8_t *rawImageData, const uint32_t &quality);
67 
79  static unsigned char* decompress(const unsigned char *src, const uint32_t &srcSize, int *width, int *height, int *actualBytesPerPixel, const uint32_t &requestedBytesPerPixel);
80  };
81 
82  }
83  }
84 } // odcore::wrapper::jpg
85 
86 #endif /*OPENDAVINCI_CORE_WRAPPER_JPG_JPG_H_*/
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: JPG.h:33