A wrapper around JPEG data in memory. It's meant to be stack allocated to free the data when done.
More...
#include <vraysdk.hpp>
|
| LocalJpeg (const VRayImage *img, const VRayRenderer &renderer, int quality=0) |
| Same as the other constructor. The renderer is used to log error messages.
|
|
| LocalJpeg (const VRayImage *img, int quality=0) |
|
void * | getBuf () const |
| Returns a pointer to the image data.
|
|
size_t | getLen () const |
| Returns size of image data in bytes.
|
|
| operator size_t () const |
|
bool | saveToFile (const char *fileName) const |
| Write the data to disk.
|
|
bool | saveToFile (const std::string &fileName) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
void | swap (CompressImage &ci) |
|
|
byte * | bufAddr |
|
size_t | bufSize |
|
A wrapper around JPEG data in memory. It's meant to be stack allocated to free the data when done.
◆ LocalJpeg()
VRay::LocalJpeg::LocalJpeg |
( |
const VRayImage * |
img, |
|
|
int |
quality = 0 |
|
) |
| |
|
inline |
Compression is performed in this constructor
- Parameters
-
img | The source image to compress. The source is not modified. |
quality | If negative, abs(quality) is used and progressive encoding is performed |
The documentation for this class was generated from the following file:
- /home/jenkins/ci/cgrepo/appsdk/VRay_SDK_CPP/include/vraysdk.hpp