8 #ifndef META_OCEAN_MEDIA_OPEN_IMAGE_LIBRARIES_IMAGE_H
9 #define META_OCEAN_MEDIA_OPEN_IMAGE_LIBRARIES_IMAGE_H
21 namespace OpenImageLibraries
56 class OCEAN_MEDIA_OIL_EXPORT
Image
69 static Frame decodeImage(
const void* buffer,
const size_t size,
const std::string& imageBufferTypeIn = std::string(), std::string* imageBufferTypeOut =
nullptr);
81 static bool encodeImage(
const Frame& frame,
const std::string& imageType, std::vector<uint8_t>& buffer,
const bool allowConversion =
true,
bool* hasBeenConverted =
nullptr);
100 static bool writeImage(
const Frame& frame,
const std::string& filename,
const bool allowConversion =
true,
bool* hasBeenConverted =
nullptr);
This class implements Ocean's image class.
Definition: Frame.h:1792
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15