8 #ifndef META_OCEAN_MEDIA_OPEN_IMAGE_LIBRARIES_OL_IMAGE_JPG_H
9 #define META_OCEAN_MEDIA_OPEN_IMAGE_LIBRARIES_OL_IMAGE_JPG_H
15 #ifdef OCEAN_MEDIA_OIL_SUPPORT_JPG
23 namespace OpenImageLibraries
51 static bool encodeImage(
const Frame& frame, std::vector<unsigned char>& buffer,
const bool allowConversion =
true,
bool* hasBeenConverted =
nullptr,
const int quality = 80);
This class implements Ocean's image class.
Definition: Frame.h:1792
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
@ FORMAT_YUV24
Pixel format with byte order YUV and 24 bits per pixel.
Definition: Frame.h:459
@ FORMAT_RGB24
Pixel format with byte order RGB and 24 bits per pixel.
Definition: Frame.h:315
@ FORMAT_Y8
Pixel format for grayscale images with byte order Y and 8 bits per pixel.
Definition: Frame.h:594
PixelOrigin
Defines different types of frame origin positions.
Definition: Frame.h:1046
@ ORIGIN_UPPER_LEFT
The first pixel lies in the upper left corner, the last pixel in the lower right corner.
Definition: Frame.h:1050
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15