# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac::IntraBlockDiff Class Reference

A class for calculating the difference between a block and its DC value (average).

`#include <me_utils.h>`

Collaboration diagram for dirac::IntraBlockDiff:

[legend]
List of all members.

## Public Member Functions

- IntraBlockDiff (const PicArray &pic)
    Constructor, initialising the picture data.
- float Diff (const BlockDiffParams &dparams, ValueType &dc_val)
    Do the difference, returning SAD.

## Private Member Functions

- IntraBlockDiff (const IntraBlockDiff &cpy)
    Private, bodyless copy-constructor: class should not be copied.
- IntraBlockDiff & operator= (const IntraBlockDiff &rhs)
    Private, bodyless assignment=: class should not be assigned.

## Private Attributes

- const PicArray & m_pic_data

## Constructor & Destructor Documentation

dirac::IntraBlockDiff::IntraBlockDiff | ( | const PicArray & | pic | ) |

dirac::IntraBlockDiff::IntraBlockDiff | ( | const IntraBlockDiff & | cpy | ) | `[private]`

## Member Function Documentation

float dirac::IntraBlockDiff::Diff | ( | const BlockDiffParams & | dparams,
|  | ValueType & | dc_val |
| ) |  |  |

Do the difference, returning SAD

Parameters:

  | dparams | block parameters
  | dc_val | DC value

IntraBlockDiff& dirac::IntraBlockDiff::operator= | ( | const IntraBlockDiff & | rhs | ) | `[private]`

## Member Data Documentation

const PicArray& dirac::IntraBlockDiff::m_pic_data`[private]`

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.