Image Component Library (ICL)
|
Wrapper class for fourcc color codes. More...
#include <FourCC.h>
Public Member Functions | |
FourCC () | |
create a null FourCC (key = 0) | |
FourCC (icl32s key) | |
create a FourCC with given key | |
FourCC (const std::string &key) | |
create a fourCC from given string color code (e.g. Y422 or MJPG) | |
FourCC (const char *key) | |
create a fourCC from given string color code (cstring style) | |
void | init (const std::string &key) throw (utils::ICLException) |
initialization utility method | |
FourCC & | operator= (icl32s key) |
int-assignment | |
FourCC & | operator= (const std::string &key) |
std::string-assignment | |
std::string | asString () const |
convert to string | |
icl32s | asInt () const |
obtain current key (uint) | |
operator bool () | |
check whether it is null | |
operator int () | |
implicit conversion to int | |
Private Attributes | |
icl32s | key |
internally a fourcc is represented by an u-int value |
Wrapper class for fourcc color codes.
icl::io::FourCC::FourCC | ( | ) | [inline] |
create a null FourCC (key = 0)
icl::io::FourCC::FourCC | ( | icl32s | key | ) | [inline] |
create a FourCC with given key
icl::io::FourCC::FourCC | ( | const std::string & | key | ) | [inline] |
create a fourCC from given string color code (e.g. Y422 or MJPG)
icl::io::FourCC::FourCC | ( | const char * | key | ) | [inline] |
create a fourCC from given string color code (cstring style)
icl32s icl::io::FourCC::asInt | ( | ) | const [inline] |
obtain current key (uint)
std::string icl::io::FourCC::asString | ( | ) | const [inline] |
convert to string
void icl::io::FourCC::init | ( | const std::string & | key | ) | throw (utils::ICLException) [inline] |
initialization utility method
icl::io::FourCC::operator bool | ( | ) | [inline] |
check whether it is null
icl::io::FourCC::operator int | ( | ) | [inline] |
implicit conversion to int
FourCC& icl::io::FourCC::operator= | ( | const std::string & | key | ) | [inline] |
std::string-assignment
icl32s icl::io::FourCC::key [private] |
internally a fourcc is represented by an u-int value