Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Classes | Namespaces | Typedefs | Enumerations | Functions
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.

Classes

class  dirac::MotionVector< T >
 Motion vector class - just a pair. More...
 
class  dirac::MvCostData
 Class for recording costs derived in motion estimation. More...
 
class  dirac::MvData
 Class for all the motion vector data. More...
 
class  dirac::MEData
 Class for all the motion estimation data. More...
 

Namespaces

namespace  dirac
 Definition of class SequenceHeaderByteIO.
 

Typedefs

typedef MotionVector< int > dirac::MVector
 MVector class is a vector of ints. More...
 
typedef MotionVector< int > dirac::ImageCoords
 ImageCoords class is a vector of ints. More...
 
typedef TwoDArray< MVector > dirac::MvArray
 MvArray is a two-D array of MVectors. More...
 
typedef TwoDArray< MotionVector< float > > dirac::MvFloatArray
 An array of float-based motion vectors for doing global motion calcs. More...
 

Enumerations

enum  dirac::MvElement { dirac::HORIZONTAL , dirac::VERTICAL }
 Horizontal or vertical. More...
 

Functions

template<class T >
std::ostream & dirac::operator<< (std::ostream &stream, MotionVector< T > &mv)
 Overloaded operator<< for MotionVector class for output to stream. More...
 
template<class T >
std::istream & dirac::operator>> (std::istream &stream, MotionVector< T > &mv)
 Overloaded operator>> for MotionVector class for input from stream. More...
 
int dirac::Median (const int val1, const int val2, const int val3)
 Return the median of 3 integers. More...
 
MVector dirac::MvMedian (const MVector &mv1, const MVector &mv2, const MVector &mv3)
 Return the median of three motion vectors. More...
 
int dirac::Median (const std::vector< int > &val_list)
 Return the median of a set of integers. More...
 
MVector dirac::MvMedian (const std::vector< MVector > &vect_list)
 Return the median of a set of (up to 4) motion vectors. More...
 
MVector dirac::MvMean (const MVector &mv1, const MVector &mv2)
 Return the mean of two motion vectors. More...
 
int dirac::Norm2 (const MVector &mv)
 Return the squared length of a motion vector. More...
 
int dirac::Norm1 (const MVector &mv)
 Return the sum of the lengths of a motion vector's componets. More...
 
unsigned int dirac::GetUMean (std::vector< unsigned int > &values)
 Return the mean of a set of unsigned integer values. More...
 
int dirac::GetSMean (std::vector< int > &values)
 Return the mean of a set of signed integer values. More...
 

© 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.