Dirac - A Video Codec
Created by the British Broadcasting Corporation.
motion.h File Reference
#include <libdirac_common/common.h>
#include <algorithm>
Go to the source code of this file.
Namespaces
Classes
Typedefs
- typedef MotionVector< int > MVector
- MVector class is a vector of ints.
- typedef MotionVector< int > ImageCoords
- ImageCoords class is a vector of ints.
- typedef TwoDArray< MVector > MvArray
- MvArray is a two-D array of MVectors.
- typedef TwoDArray< MotionVector<
float > > MvFloatArray
- An array of float-based motion vectors for doing global motion calcs.
Enumerations
Functions
- template<class T> std::ostream & operator<< (std::ostream &stream, MotionVector< T > &mv)
- Overloaded operator<< for MotionVector class for output to stream.
- template<class T> std::istream & operator>> (std::istream &stream, MotionVector< T > &mv)
- Overloaded operator>> for MotionVector class for input from stream.
- int Median (const int val1, const int val2, const int val3)
- Return the median of 3 integers.
- MVector MvMedian (const MVector &mv1, const MVector &mv2, const MVector &mv3)
- Return the median of three motion vectors.
- int Median (const std::vector< int > &val_list)
- Return the median of a set of integers.
- MVector MvMedian (const std::vector< MVector > &vect_list)
- Return the median of a set of (up to 4) motion vectors.
- MVector MvMean (const MVector &mv1, const MVector &mv2)
- Return the mean of two motion vectors.
- int Norm2 (const MVector &mv)
- Return the squared length of a motion vector.
- int Norm1 (const MVector &mv)
- Return the sum of the lengths of a motion vector's componets.
- unsigned int GetUMean (std::vector< unsigned int > &values)
- Return the mean of a set of unsigned integer values.
- int GetSMean (std::vector< int > &values)
- Return the mean of a set of signed integer values.
Typedef Documentation
Enumeration Type Documentation
Function Documentation
int GetSMean |
( |
std::vector< int > & |
values |
) |
|
|
unsigned int GetUMean |
( |
std::vector< unsigned int > & |
values |
) |
|
|
int Median |
( |
const std::vector< int > & |
val_list |
) |
|
|
int Median |
( |
const int |
val1, |
|
|
const int |
val2, |
|
|
const int |
val3 |
|
) |
|
|
int Norm1 |
( |
const MVector & |
mv |
) |
[inline] |
|
int Norm2 |
( |
const MVector & |
mv |
) |
[inline] |
|
template<class T> |
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
MotionVector< T > & |
mv |
|
) |
|
|
template<class T> |
std::istream& operator>> |
( |
std::istream & |
stream, |
|
|
MotionVector< T > & |
mv |
|
) |
|
|
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.