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

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

Enumerations

enum  eformat_data {
  UNKNOWN = 0, TIFF_RAW_INT8 = 1, TIFF_JPG_INT8 = 2, TIFF_PNG_INT8 = 3,
  TIFF_LZW_INT8 = 4, TIFF_ZIP_INT8 = 5, TIFF_PKB_INT8 = 6, TIFF_RAW_FLOAT32 = 7,
  TIFF_LZW_FLOAT32 = 8, TIFF_ZIP_FLOAT32 = 9, TIFF_PKB_FLOAT32 = 10
}
 Available images formats enumeration.

Functions

eformat_data fromString (std::string strFormat)
 Convert a string to a format.
std::string toString (eformat_data format)
 Convert a format to a string.
std::string toMimeType (eformat_data format)
 Convert a format to a string (type MIME)
std::string toEncoding (eformat_data format)

Variables

const char * eformat_name []
const char * eformat_mime []
const char * eformat_encoding []
const int eformat_size = 10
 Number of available formats.
const int eformat_float = 7
 First float format indice into enumeration.

Detailed Description

Manage informations in connection with data format.

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

Function Documentation

eformat_data Rok4Format::fromString ( std::string  strFormat)

Convert a string to a format.

Parameters
[in]strFormatstring to convert
Returns
the binding format, UNKNOWN (0) if string is not recognized
std::string Rok4Format::toMimeType ( eformat_data  format)

Convert a format to a string (type MIME)

Parameters
[in]formatformat to convert
Returns
MIME type of the format
std::string Rok4Format::toString ( eformat_data  format)

Convert a format to a string.

Parameters
[in]formatformat to convert
Returns
string namming the format

Variable Documentation

const char* Rok4Format::eformat_encoding[]
Initial value:
{
"",
"",
"",
"",
"",
"",
"",
"",
"",
"deflate",
""
}
const char* Rok4Format::eformat_mime[]
Initial value:
{
"UNKNOWN",
"image/tiff",
"image/jpeg",
"image/png",
"image/tiff",
"image/tiff",
"image/tiff",
"image/x-bil;bits=32",
"image/tiff",
"image/x-bil;bits=32",
"image/tiff"
}
const char* Rok4Format::eformat_name[]
Initial value:
{
"UNKNOWN",
"TIFF_RAW_INT8",
"TIFF_JPG_INT8",
"TIFF_PNG_INT8",
"TIFF_LZW_INT8",
"TIFF_ZIP_INT8",
"TIFF_PKB_INT8",
"TIFF_RAW_FLOAT32",
"TIFF_LZW_FLOAT32",
"TIFF_ZIP_FLOAT32",
"TIFF_PKB_FLOAT32"
}