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

Manage informations in connection with compression. More...

Enumerations

enum  eCompression {
  UNKNOWN = 0, NONE = 1, DEFLATE = 2, JPEG = 3,
  PNG = 4, LZW = 5, PACKBITS = 6, JPEG2000 = 7
}
 Available compressions enumeration.

Functions

eCompression fromString (std::string strComp)
 Convert a string to a compressions enumeration member.
std::string toString (eCompression comp)
 Convert a compression to a string.

Variables

const char * compression_name []
const int compression_size = 7
 Number of available compressions.

Detailed Description

Manage informations in connection with compression.

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

Function Documentation

eCompression Compression::fromString ( std::string  strComp)

Convert a string to a compressions enumeration member.

Parameters
[in]strCompstring to convert
Returns
the binding compression, UNKNOWN (0) if string is not recognized
std::string Compression::toString ( eCompression  comp)

Convert a compression to a string.

Parameters
[in]compcompression to convert
Returns
string namming the compression

Here is the caller graph for this function:

Variable Documentation

const char* Compression::compression_name[]
Initial value:
{
"UNKNOWN",
"NONE",
"DEFLATE",
"JPEG",
"PNG",
"LZW",
"PACKBITS",
"JPEG2000"
}