Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Attributes | Friends | List of all members
dirac::OLBParams Class Reference

Parameters for overlapped block motion compensation.

#include <common.h>

Public Member Functions

 OLBParams ()
 Default constructor does nothing. More...
 
 OLBParams (const int xblen, const int yblen, const int xbsep, const int ybsep)
 Constructor. More...
 
int Xblen () const
 Returns the horizontal block length. More...
 
int Yblen () const
 Returns the vertical block length. More...
 
int Xbsep () const
 Returns the horizontal block separation. More...
 
int Ybsep () const
 Returns the vertical block separation. More...
 
int Xoffset () const
 The offset in the horizontal start of the block caused by overlap,=(XBLEN-XBSEP)/2. More...
 
int Yoffset () const
 The offset in the vertical start of the block caused by overlap,=(YBLEN-YBSEP)/2. More...
 
void SetXblen (int xblen)
 Sets the block width. More...
 
void SetYblen (int yblen)
 Sets the block height. More...
 
void SetXbsep (int xbsep)
 Sets the block horizontal separation. More...
 
void SetYbsep (int ybsep)
 Sets the block vertical separation. More...
 
bool operator== (const OLBParams bparams) const
 

Private Attributes

int m_xblen
 
int m_yblen
 
int m_xbsep
 
int m_ybsep
 
int m_xoffset
 
int m_yoffset
 

Friends

std::ostream & operator<< (std::ostream &, OLBParams &)
 
std::istream & operator>> (std::istream &, OLBParams &)
 

Constructor & Destructor Documentation

dirac::OLBParams::OLBParams ( )
inline
dirac::OLBParams::OLBParams ( const int  xblen,
const int  yblen,
const int  xbsep,
const int  ybsep 
)

Member Function Documentation

bool dirac::OLBParams::operator== ( const OLBParams  bparams) const
void dirac::OLBParams::SetXblen ( int  xblen)
inline
void dirac::OLBParams::SetXbsep ( int  xbsep)
inline
void dirac::OLBParams::SetYblen ( int  yblen)
inline
void dirac::OLBParams::SetYbsep ( int  ybsep)
inline
int dirac::OLBParams::Xblen ( ) const
inline
int dirac::OLBParams::Xbsep ( ) const
inline
int dirac::OLBParams::Xoffset ( ) const
inline
int dirac::OLBParams::Yblen ( ) const
inline
int dirac::OLBParams::Ybsep ( ) const
inline
int dirac::OLBParams::Yoffset ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
OLBParams  
)
friend
std::istream& operator>> ( std::istream &  ,
OLBParams  
)
friend

Member Data Documentation

int dirac::OLBParams::m_xblen
private
int dirac::OLBParams::m_xbsep
private
int dirac::OLBParams::m_xoffset
private
int dirac::OLBParams::m_yblen
private
int dirac::OLBParams::m_ybsep
private
int dirac::OLBParams::m_yoffset
private

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.