libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Enumerations | Functions | Variables
SampleFormat Namespace Reference

Manage informations in connection with sample format. More...

Enumerations

enum  eSampleFormat { UNKNOWN = 0, UINT = 1, FLOAT = 2 }
 Available sample formats enumeration.

Functions

eSampleFormat fromString (std::string strSf)
 Convert a string to a sample formats enumeration member.
std::string toString (eSampleFormat sf)
 Convert a sample format to a string.

Variables

const char * sampleformat_name []
const int sampleformat_size = 2
 Number of sample formats compressions.

Detailed Description

Manage informations in connection with sample format.

Author
Institut national de l'information géographique et forestière

Function Documentation

eSampleFormat SampleFormat::fromString ( std::string  strSf)

Convert a string to a sample formats enumeration member.

Parameters
[in]strCompstring to convert
Returns
the binding sample format, UNKNOWN (0) if string is not recognized
std::string SampleFormat::toString ( eSampleFormat  sf)

Convert a sample format to a string.

Parameters
[in]sfsample format to convert
Returns
string namming the sample format

Here is the caller graph for this function:

Variable Documentation

const char* SampleFormat::sampleformat_name[]
Initial value:
{
"UNKNOWN",
"UINT",
"FLOAT"
}