# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac::PicArray Class Reference

A class for picture component data. More...

`#include <common.h>`

Inheritance diagram for dirac::PicArray:

[legend]
Collaboration diagram for dirac::PicArray:

[legend]

List of all members.

## Public Member Functions

- PicArray ()
    Default constructor.
- PicArray (int height, int width, CompSort cs=Y_COMP)
    Constructor.
- ~PicArray ()
    Destructor.
- const CompSort & CSort () const
    Return which component is stored.
- void SetCSort (const CompSort cs)
    Set the type of component being stored.

## Private Attributes

- CompSort m_csort

## Detailed Description

A class for encapsulating picture data, derived from TwoDArray. NB: in the future there will be separate classes for input/output picture data, difference picture data, and wavelet coefficient data. Currently PicArray is used for all of these. TJD 13 April 2004.

## Constructor & Destructor Documentation

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

Default constructor creates an empty array.

dirac::PicArray::PicArray | ( | int | height,
|  | int | width,
|  | CompSort | cs = `Y_COMP` |
| ) |  |  |

Contructor creates a two-D array, with specified size and colour format.

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

## Member Function Documentation

const CompSort& dirac::PicArray::CSort | ( |  | ) | const

void dirac::PicArray::SetCSort | ( | const CompSort | cs | ) |

## Member Data Documentation

CompSort dirac::PicArray::m_csort`[private]`

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

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