Dirac - A Video Codec
Created by the British Broadcasting Corporation.
motion.h File Reference
#include <libdirac_common/common.h>
#include <algorithm>
Include dependency graph for motion.h:
This graph shows which files directly or indirectly include this file:
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.
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.
- MVector MvMedian (const MVector &mv1, const MVector &mv2, const MVector &mv3)
- Return the median of three motion vectors.
- MVector MvMedian (const std::vector< MVector > &vect_list)
- Return the median of a set of motion vectors.
- MVector MvMean (MVector &mv1, 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.
- int GetMean (std::vector< int > &values)
- Return the mean of a set of integer values.
- unsigned int GetMean (std::vector< unsigned int > &values)
- Return the mean of a set of unsigned integer values.
Typedef Documentation
Function Documentation
unsigned int GetMean |
( |
std::vector< unsigned int > & |
values |
) |
[inline] |
|
int GetMean |
( |
std::vector< int > & |
values |
) |
[inline] |
|
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.