8 #ifndef META_OCEAN_MEDIA_UTILITIES_H
9 #define META_OCEAN_MEDIA_UTILITIES_H
55 static Frame loadImage(
const void* imageBuffer,
const size_t imageBufferSize,
const std::string& imageBufferTypeIn = std::string(
""), std::string* imageBufferTypeOut =
nullptr);
66 static bool saveImage(
const Frame& frame,
const std::string& url,
const bool addTimeSuffix =
true);
94 static inline Buffer encodeFrame(
const Frame& frame,
const std::string& imageType,
const size_t reservedHeaderSize = 0);
111 static inline bool decodeFrame(
const Buffer& buffer,
Frame& frame);
116 Buffer buffer(reservedHeaderSize);
125 const uint8_t* data = buffer.data();
126 size_t size = buffer.size();
This class implements Ocean's image class.
Definition: Frame.h:1792
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15