Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Public Attributes | List of all members
dirac::MotionVector< T > Class Template Reference

Motion vector class - just a pair.

#include <motion.h>

Inheritance diagram for dirac::MotionVector< T >:
Inheritance graph
[legend]

Public Member Functions

 MotionVector (T a, T b)
 Constructor.
 
 MotionVector ()
 Default construct - sets components to 0.
 
 MotionVector (T a)
 Constructor.
 
MotionVector< Toperator+ (const MotionVector< T > &argument) const
 Addition.
 
MotionVector< Toperator- (const MotionVector< T > &argument) const
 Subtraction.
 
MotionVector< Toperator* (const float argument) const
 Scalar multiplication.
 
MotionVector< Toperator* (const int argument) const
 Scalar multiplication.
 
MotionVector< Toperator<< (const int argument) const
 Bitshift of each component.
 
MotionVector< Toperator>> (const int argument) const
 Bitshift of each component.
 
Toperator[] (const int pos)
 Array-style element access.
 
const Toperator[] (const int pos) const
 Array-style element access.
 

Public Attributes

T x
 x and y components
 
T y
 

Constructor & Destructor Documentation

◆ MotionVector() [1/3]

template<class T >
dirac::MotionVector< T >::MotionVector ( T a,
T b )
inline

◆ MotionVector() [2/3]

template<class T >
dirac::MotionVector< T >::MotionVector ( )
inline

◆ MotionVector() [3/3]

template<class T >
dirac::MotionVector< T >::MotionVector ( T a)
inline

Member Function Documentation

◆ operator*() [1/2]

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator* ( const float argument) const
inline

◆ operator*() [2/2]

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator* ( const int argument) const
inline

◆ operator+()

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator+ ( const MotionVector< T > & argument) const
inline

◆ operator-()

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator- ( const MotionVector< T > & argument) const
inline

◆ operator<<()

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator<< ( const int argument) const
inline

◆ operator>>()

template<class T >
MotionVector< T > dirac::MotionVector< T >::operator>> ( const int argument) const
inline

◆ operator[]() [1/2]

template<class T >
T & dirac::MotionVector< T >::operator[] ( const int pos)
inline

◆ operator[]() [2/2]

template<class T >
const T & dirac::MotionVector< T >::operator[] ( const int pos) const
inline

Member Data Documentation

◆ x

template<class T >
T dirac::MotionVector< T >::x

◆ y

template<class T >
T dirac::MotionVector< T >::y

The documentation for this class was generated from the following file:

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