# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac::UpConverter Class Reference

Upconversion class. More...

`#include <upconvert.h>`

List of all members.

## Public Member Functions

- UpConverter (int min_val, int max_val)
    Constructor.
- ~UpConverter ()
    Destructor.
- void DoUpConverter (const PicArray &pic_data, PicArray &up_data)
    Upconvert the picture data.

## Private Member Functions

- UpConverter (const UpConverter &cpy)
    Private body-less copy constructor: class should not be copied.
- UpConverter & operator= (const UpConverter &rhs)
    Private body-less assignment: class should not be assigned.
- void RowLoop (PicArray &up_data, const int row_num)
    Applies the filter to a row and its successor.

## Private Attributes

- int m_width_old
- int m_height_old
- int m_width_new
- int m_height_new
- const int m_min_val
- const int m_max_val

## Static Private Attributes

- static const int m_filter_size = 5
- static const int m_filter_shift = 8
- static const int m_tap0 = 167
- static const int m_tap1 = -56
- static const int m_tap2 = 25
- static const int m_tap3 = -11
- static const int m_tap4 = 3

## Detailed Description

Class to upconvert data by a factor of 2 in both dimensions

## Constructor & Destructor Documentation

dirac::UpConverter::UpConverter | ( | int | min_val,
|  | int | max_val |
| ) |  |  | `[inline]`

dirac::UpConverter::~UpConverter | ( |  | ) | `[inline]`

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

## Member Function Documentation

void dirac::UpConverter::DoUpConverter | ( | const PicArray & | pic_data,
|  | PicArray & | up_data |
| ) |  |  |

Upconvert the picture data, where the parameters are

Parameters:

  | pic_data | is the original data
  | up_data | is the upconverted data

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

void dirac::UpConverter::RowLoop | ( | PicArray & | up_data,
|  | const int | row_num |
| ) |  |  | `[private]`

## Member Data Documentation

int dirac::UpConverter::m_width_old`[private]`

int dirac::UpConverter::m_height_old`[private]`

int dirac::UpConverter::m_width_new`[private]`

int dirac::UpConverter::m_height_new`[private]`

const int dirac::UpConverter::m_filter_size = 5`[static, private]`

const int dirac::UpConverter::m_filter_shift = 8`[static, private]`

const int dirac::UpConverter::m_tap0 = 167`[static, private]`

const int dirac::UpConverter::m_tap1 = -56`[static, private]`

const int dirac::UpConverter::m_tap2 = 25`[static, private]`

const int dirac::UpConverter::m_tap3 = -11`[static, private]`

const int dirac::UpConverter::m_tap4 = 3`[static, private]`

const int dirac::UpConverter::m_min_val`[private]`

const int dirac::UpConverter::m_max_val`[private]`

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

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