Ocean
|
Definition of a class holding properties. More...
Public Member Functions | |
Properties ()=default | |
Default constructor. More... | |
Properties (const float quality, std::string &&colorProfileName=std::string()) | |
Creates a new properties object. More... | |
bool | isValid () const |
Returns whether this object holds valid parameters. More... | |
Data Fields | |
float | quality_ = -1.0f |
The quality to be used when encoding or decoding an image, with range [0, 1], -1 if default quality or unknown. More... | |
std::string | colorProfileName_ |
The name of the color profile, empty if unknown. More... | |
Definition of a class holding properties.
Note: Depending on the image format, a provided property like a quality value may not have any impact, e.g., png images do not support a loosely compression.
|
default |
Default constructor.
|
inlineexplicit |
Creates a new properties object.
quality | The quality to be used, with range [0, 1], -1 if unknown or default quality |
colorProfileName | The optional name of the color profile, e.g., "sRGB IEC61966-2.1", or "Adobe RGB (1998)" |
|
inline |
Returns whether this object holds valid parameters.
std::string Ocean::Media::Image::Properties::colorProfileName_ |
The name of the color profile, empty if unknown.
float Ocean::Media::Image::Properties::quality_ = -1.0f |
The quality to be used when encoding or decoding an image, with range [0, 1], -1 if default quality or unknown.