The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
Namespaces | |
namespace | algorithms |
Enumerations | |
enum | edDirection { ED_ALL, ED_POSITION, ED_BELOW, ED_HIGHER, ED_BELOW_EQUAL, ED_HIGHER_EQUAL } |
Functions | |
template<class Type > | |
longFib | roundToLongFib (const Type &value) |
template<class Type > | |
Type | max (const Type &value1, const Type &value2) |
template<class Type > | |
std::list< Type >::iterator | getListElement (std::list< Type > &liList, unsigned long ulElementNumber) |
template<class Type > | |
std::list< Type >::const_iterator | getListElement (const std::list< Type > &liList, unsigned long ulElementNumber) |
unsigned int | getDigits (unsigned long long llValue) |
void | decomposeDoubleFib (const doubleFib dNumber, longFib *lMantissa, longFib *lExponent, intFib *iSizeMantissa=NULL, intFib *iSizeExponent=NULL) |
unsigned long | roundUpToFullByte (unsigned long ulNumberOfBits) |
doubleFib | gcd (doubleFib dValue1, doubleFib dValue2) |
float | absF (const float &dValue) |
double | absF (const double &dValue) |
bool | isEqualNull (const double &dValue) |
bool | isEqualNull (const float &dValue) |
bool | compareDouble (const double &dValue1, const double &dValue2) |
bool | compareDouble (const float &dValue1, const float &dValue2) |
template<class tDouble > | |
bool | compareVectorDouble (const std::vector< tDouble > &vector1, const std::vector< tDouble > &vector2) |
template<class tDouble > | |
tDouble | add (const tDouble &dValue1, const tDouble &dValue2) |
template<class tDouble > | |
tDouble | sub (const tDouble &dValue1, const tDouble &dValue2) |
template<class tDouble > | |
tDouble | addToFirst (tDouble &dValue1, const tDouble &dValue2) |
template<class tDouble > | |
tDouble | subFromFirst (tDouble &dValue1, const tDouble &dValue2) |
template<class tDouble > | |
std::vector< tDouble > | addToFirst (std::vector< tDouble > &vecValue1, const std::vector< tDouble > &vecValue2) |
template<class tDouble > | |
std::vector< tDouble > | multToFirst (std::vector< tDouble > &vecValue, const tDouble &dValue) |
enum fib::edDirection |
Definition at line 85 of file cFibElement.h.
float fib::absF | ( | const float & | dValue | ) |
dValue | the value, for which to evalue the positiv value |
double fib::absF | ( | const double & | dValue | ) |
dValue | the value, for which to evalue the positiv value |
tDouble fib::add | ( | const tDouble & | dValue1, |
const tDouble & | dValue2 | ||
) |
This functions adds two floating point numbers. Really small differences will be ignored, this means: If one number is allmost equal to the negativ of the other the result is 0.
dValue1 | the first number to add |
dValue2 | the second number to add |
Definition at line 285 of file fibDatatyps.h.
tDouble fib::addToFirst | ( | tDouble & | dValue1, |
const tDouble & | dValue2 | ||
) |
This functions adds two floating point numbers. Really small differences will be ignored, this means: If one number is allmost equal to the negativ of the other the result is 0.
dValue1 | the first number to add, the sum will also be stored in this variable |
dValue2 | the second number to add |
Definition at line 326 of file fibDatatyps.h.
std::vector< tDouble > fib::addToFirst | ( | std::vector< tDouble > & | vecValue1, |
const std::vector< tDouble > & | vecValue2 | ||
) |
This functions adds two floating point number vectors. Really small differences will be ignored, this means: If one number is allmost equal to the negativ of the other the result is 0.
vecValue1 | the first vector to add, the sum will also be stored in this variable |
vecValue2 | the second vector to add |
Definition at line 372 of file fibDatatyps.h.
bool fib::compareDouble | ( | const double & | dValue1, |
const double & | dValue2 | ||
) |
This functions compares two double numbers. Really small differences will be ignored.
dValue1 | the first number to compare |
dValue2 | the second number to compare |
bool fib::compareDouble | ( | const float & | dValue1, |
const float & | dValue2 | ||
) |
This functions compares two float numbers. Really small differences will be ignored.
dValue1 | the first number to compare |
dValue2 | the second number to compare |
bool fib::compareVectorDouble | ( | const std::vector< tDouble > & | vector1, |
const std::vector< tDouble > & | vector2 | ||
) |
This functions compares two vectors with double numbers. Really small differences betwean the vector element numbers will be ignored.
vector1 | the first vector to compare |
vector2 | the second vector to compare |
Definition at line 254 of file fibDatatyps.h.
void fib::decomposeDoubleFib | ( | const doubleFib | dNumber, |
longFib * | lMantissa, | ||
longFib * | lExponent, | ||
intFib * | iSizeMantissa = NULL , |
||
intFib * | iSizeExponent = NULL |
||
) |
Decompses a doubleFib number into it's mantissa and exponent part.
dNumber | the number to decompose |
lMantissa | a pointer to the longFib field wher the mantissa should be stored |
lExponent | a pointer to the longFib field wher the exponent should be stored |
iSizeMantissa | a pointer to the intFib field wher the size of the mantissa in bits should be stored or NULL if it shouldn't be stored |
iSizeExponent | a pointer to the intFib field wher the size of the exponent in bits should be stored or NULL if it shouldn't be stored |
This function evalues the greatest common divisor of the two given numbers.
dValue1 | the first number |
dValue2 | the second number |
unsigned int fib::getDigits | ( | unsigned long long | llValue | ) |
This function evalues the digits needed to store a value as an natural number.
llValue | the value to evalue the digits for |
std::list< Type >::iterator fib::getListElement | ( | std::list< Type > & | liList, |
unsigned long | ulElementNumber | ||
) |
This returns the ulElementNumber'th element from an given list.
liList | the list from wher to return the list iterator |
ulElementNumber | the number of the list element to return |
Definition at line 109 of file fibDatatyps.h.
std::list< Type >::const_iterator fib::getListElement | ( | const std::list< Type > & | liList, |
unsigned long | ulElementNumber | ||
) |
This returns the ulElementNumber'th element from an given list.
liList | the list from wher to return the list iterator |
ulElementNumber | the number of the list element to return |
Definition at line 130 of file fibDatatyps.h.
bool fib::isEqualNull | ( | const double & | dValue | ) |
This functions checks if the given double number is equal 0. Really small differences will be ignored.
dValue | the number to check |
bool fib::isEqualNull | ( | const float & | dValue | ) |
This functions checks if the given float number is equal 0. Really small differences will be ignored.
dValue | the number to check |
Type fib::max | ( | const Type & | value1, |
const Type & | value2 | ||
) |
This function evalues the maximum of two values.
value1 | the first value |
value2 | the second value |
Definition at line 93 of file fibDatatyps.h.
std::vector< tDouble > fib::multToFirst | ( | std::vector< tDouble > & | vecValue, |
const tDouble & | dValue | ||
) |
This functions multiplys a floating point number vector with a number.
vecValue | the vector to multiply with the number, the product will also be stored in this variable |
dValue | the value to multiply the vector with |
Definition at line 399 of file fibDatatyps.h.
longFib fib::roundToLongFib | ( | const Type & | value | ) |
This function rounds an double value to an longFib value.
value | the value to round |
Definition at line 77 of file fibDatatyps.h.
unsigned long fib::roundUpToFullByte | ( | unsigned long | ulNumberOfBits | ) |
This function rounds the given number of bits ulNumberOfBits up to a full number of byte;
ulNumberOfBits | the number of bits to round |
tDouble fib::sub | ( | const tDouble & | dValue1, |
const tDouble & | dValue2 | ||
) |
This functions subtracts two floating point numbers. Really small differences will be ignored, this means: If one number is allmost equal to the other the result is 0.
dValue1 | the minuend of the subtraction |
dValue2 | the subtrahend of the subtraction |
Definition at line 305 of file fibDatatyps.h.
tDouble fib::subFromFirst | ( | tDouble & | dValue1, |
const tDouble & | dValue2 | ||
) |
This functions subtracts two floating point numbers. Really small differences will be ignored, this means: If one number is allmost equal to the other the result is 0.
dValue1 | the minuend of the subtraction, the difference will also be stored in this variable |
dValue2 | the subtrahend of the subtraction |
Definition at line 349 of file fibDatatyps.h.