# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac::BlockDiffParams Class Reference

A class encapsulating parameters for calculating a block difference value (a single instance of matching).

`#include <me_utils.h>`

List of all members.

## Public Member Functions

- BlockDiffParams ()
    Constructor.
- BlockDiffParams (const int x_p, const int y_p, const int x_l, const int y_l)
    Constructor.
- void SetBlockLimits (const OLBParams &bparams, const PicArray &pic_data, const int xbpos, const int ybpos)
    Set the limits of the block to fit in a picture.
- const int Xp () const
    Return the x-position of the top-left block corner.
- const int Yp () const
    Return the y-position of the top-left block corner.
- const int Xl () const
    Return the block width.
- const int Yl () const
    Return the block height.
- const int Xend () const
    Return the block horizontal endpoint.
- const int Yend () const
    Return the block vertical endpoint.

## Private Attributes

- int m_xp
- int m_yp
- int m_xl
- int m_yl
- int m_xend
- int m_yend

## Constructor & Destructor Documentation

dirac::BlockDiffParams::BlockDiffParams | ( |  | ) | `[inline]`

dirac::BlockDiffParams::BlockDiffParams | ( | const int | x_p,
|  | const int | y_p,
|  | const int | x_l,
|  | const int | y_l |
| ) |  |  | `[inline]`

## Member Function Documentation

void dirac::BlockDiffParams::SetBlockLimits | ( | const OLBParams & | bparams,
|  | const PicArray & | pic_data,
|  | const int | xbpos,
|  | const int | ybpos |
| ) |  |  |

const int dirac::BlockDiffParams::Xp | ( |  | ) | const`[inline]`

References m_xp.

const int dirac::BlockDiffParams::Yp | ( |  | ) | const`[inline]`

References m_yp.

const int dirac::BlockDiffParams::Xl | ( |  | ) | const`[inline]`

References m_xl.

const int dirac::BlockDiffParams::Yl | ( |  | ) | const`[inline]`

References m_yl.

const int dirac::BlockDiffParams::Xend | ( |  | ) | const`[inline]`

References m_xend.

const int dirac::BlockDiffParams::Yend | ( |  | ) | const`[inline]`

References m_yend.

## Member Data Documentation

int dirac::BlockDiffParams::m_xp`[private]`

Referenced by Xp().

int dirac::BlockDiffParams::m_yp`[private]`

Referenced by Yp().

int dirac::BlockDiffParams::m_xl`[private]`

Referenced by Xl().

int dirac::BlockDiffParams::m_yl`[private]`

Referenced by Yl().

int dirac::BlockDiffParams::m_xend`[private]`

Referenced by Xend().

int dirac::BlockDiffParams::m_yend`[private]`

Referenced by Yend().

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

- me_utils.h

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