Ocean
io/image/Image.h File Reference

Go to the source code of this file.

Data Structures

class  Ocean::IO::Image::Comfort
 This class provides functions for image encoding and decoding which will increase binary size when used. More...
 

Namespaces

 Ocean
 The namespace covering the entire Ocean framework.
 
 Ocean::IO
 Namespace of the Ocean IO library.
 
 Ocean::IO::Image
 Namespace of the Ocean IO Image library.
 

Typedefs

using Ocean::IO::Image::Properties = Media::Image::Properties
 Re-definition of Media::Image::Properties. More...
 

Functions

OCEAN_IO_IMAGE_EXPORT Frame Ocean::IO::Image::decodeImage (const void *buffer, const size_t size, const std::string &imageBufferTypeIn=std::string(), std::string *imageBufferTypeOut=nullptr)
 Decodes (reads/loads) an image from a given binary buffer. More...
 
OCEAN_IO_IMAGE_EXPORT bool Ocean::IO::Image::encodeImage (const Frame &frame, const std::string &imageType, std::vector< uint8_t > &buffer, const Properties &properties=Properties())
 Encodes (writes) a given frame as image (with specified image type) to a resulting buffer. More...
 
OCEAN_IO_IMAGE_EXPORT Frame Ocean::IO::Image::readImage (const std::string &filename)
 Reads/loads an image from a specified file. More...
 
OCEAN_IO_IMAGE_EXPORT bool Ocean::IO::Image::writeImage (const Frame &frame, const std::string &filename, const Properties &properties=Properties())
 Writes a given frame to a specified file. More...
 
static bool Ocean::IO::Image::encodeImage (const Frame &, const std::string &, std::vector< uint8_t > &, const float)=delete
 Disabled function to prevent wrong usage. More...
 
static bool Ocean::IO::Image::writeImage (const Frame &, const std::string &, const float)=delete
 Disabled function to prevent wrong usage. More...