# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac::FrameParams Class Reference

Parameters for initialising frame class objects.

`#include <common.h>`

Collaboration diagram for dirac::FrameParams:

[legend]
List of all members.

## Public Member Functions

- FrameParams ()
    Default constructor.
- FrameParams (const ChromaFormat &cf, int xlen, int ylen, int c_xlen, int c_ylen, unsigned int video_depth)
    Constructor.
- FrameParams (const ChromaFormat &cf, const FrameSort &fs)
    Constructor.
- FrameParams (const SeqParams &sparams)
    Constructor.
- FrameParams (const SeqParams &sparams, const FrameSort &fs)
    Constructor.
- const ChromaFormat & CFormat () const
    Returns the chroma format of the frame.
- int Xl () const
    Returns the luma width of the frame.
- int Yl () const
    Returns the luma height of the frame.
- int ChromaXl () const
    Returns the chroma width of the frame.
- int ChromaYl () const
    Returns the chroma height of the frame.
- const FrameSort & FSort () const
    Returns the type of the frame (I, L1 or L2).
- int FrameNum () const
    Returns the number of the frame (in time order).
- int ExpiryTime () const
    Returns the number of frames after the current frame number after which the frame can be discarded.
- bool Output () const
    Returns an indication of whether the frame has been output yet.
- const std::vector< int > & Refs () const
    Returns a const C++ reference to the set of reference frame numbers (will be empty if the frame is an I frame).
- std::vector< int > & Refs ()
    Returns non-const C++ referece to the vector of reference frames, to allow them to be set.
- unsigned int NumRefs () const
    Return the number of reference frames.
- FrameType GetFrameType () const
    Returns type of frame (see enum).
- ReferenceType GetReferenceType () const
    Returns reference frame type (see enum).
- unsigned int GetVideoDepth () const
    Returns the video depth of the frame.
- void SetFSort (const FrameSort &fs)
    Sets the type of frame to I, L1 or L2.
- void SetFrameType (const FrameType &frame_type)
    Sets the type of frame.
- void SetReferenceType (const ReferenceType &ref_type)
    Sets the reference type of frame.
- void SetFrameNum (const int fn)
    Sets the frame number.
- void SetExpiryTime (const int expt)
    Sets how long the frame will stay in the buffer.
- void SetAsOutput ()
    Sets a flag to indicate that the frame has been output.
- void SetCFormat (ChromaFormat cf)
    Sets the chroma format.
- void SetXl (int xl)
    Sets the frame luma length.
- void SetYl (int yl)
    Sets the frame luma height.
- void SetChromaXl (int xl)
    Sets the chroma length.
- void SetChromaYl (int yl)
    Sets the chroma height.
- void SetVideoDepth (int vd)
    Sets the video depth of the frame.
- std::vector< int > & RetiredFrames () const
    Returns a const C++ reference to the set of frame numbers to be retired.
- std::vector< int > & RetiredFrames ()
    Returns a non-const C++ reference to the set of frame numbers to be retired.

## Private Attributes

- ChromaFormat m_cformat
    The chroma format.
- int m_xl
    Frame luma width.
- int m_yl
    Frame luma height.
- FrameSort m_fsort
    The frame sort.
- std::vector< int > m_refs
    The set of frame numbers of reference frames.
- int m_expiry_time
    The number of frames, after the current frame number, after the (de)coding of which the frame can be deleted.
- bool m_output
    True if the frame has been output, false if not.
- int m_fnum
    The frame number, in temporal order.
- FrameType m_frame_type
    Frame type.
- ReferenceType m_reference_type
    Reference type.
- int m_chroma_xl
    Chroma length.
- int m_chroma_yl
    Chroma height.
- std::vector< int > m_retd_list
    The set of frame numbers in the retired frame list.
- unsigned int m_video_depth
    Video depth.

## Constructor & Destructor Documentation

dirac::FrameParams::FrameParams | ( |  | ) |

dirac::FrameParams::FrameParams | ( | const ChromaFormat & | cf,
|  | int | xlen,
|  | int | ylen,
|  | int | c_xlen,
|  | int | c_ylen,
|  | unsigned int | video_depth |
| ) |  |  |

Frame chroma format is set Frame sort defaults to I frame.

dirac::FrameParams::FrameParams | ( | const ChromaFormat & | cf,
|  | const FrameSort & | fs |
| ) |  |  |

Frame chroma format and frame sort are set.

dirac::FrameParams::FrameParams | ( | const SeqParams & | sparams | ) |

dirac::FrameParams::FrameParams | ( | const SeqParams & | sparams,
|  | const FrameSort & | fs |
| ) |  |  |

## Member Function Documentation

const ChromaFormat& dirac::FrameParams::CFormat | ( |  | ) | const`[inline]`

int dirac::FrameParams::ChromaXl | ( |  | ) | const`[inline]`

int dirac::FrameParams::ChromaYl | ( |  | ) | const`[inline]`

int dirac::FrameParams::ExpiryTime | ( |  | ) | const`[inline]`

int dirac::FrameParams::FrameNum | ( |  | ) | const`[inline]`

const FrameSort& dirac::FrameParams::FSort | ( |  | ) | const`[inline]`

FrameType dirac::FrameParams::GetFrameType | ( |  | ) | const`[inline]`

ReferenceType dirac::FrameParams::GetReferenceType | ( |  | ) | const`[inline]`

unsigned int dirac::FrameParams::GetVideoDepth | ( |  | ) | const`[inline]`

unsigned int dirac::FrameParams::NumRefs | ( |  | ) | const`[inline]`

bool dirac::FrameParams::Output | ( |  | ) | const`[inline]`

std::vector<int>& dirac::FrameParams::Refs | ( |  | ) | `[inline]`

const std::vector<int>& dirac::FrameParams::Refs | ( |  | ) | const`[inline]`

std::vector<int>& dirac::FrameParams::RetiredFrames | ( |  | ) | `[inline]`

std::vector<int>& dirac::FrameParams::RetiredFrames | ( |  | ) | const`[inline]`

void dirac::FrameParams::SetAsOutput | ( |  | ) | `[inline]`

void dirac::FrameParams::SetCFormat | ( | ChromaFormat | cf | ) | `[inline]`

void dirac::FrameParams::SetChromaXl | ( | int | xl | ) | `[inline]`

void dirac::FrameParams::SetChromaYl | ( | int | yl | ) | `[inline]`

void dirac::FrameParams::SetExpiryTime | ( | const int | expt | ) | `[inline]`

void dirac::FrameParams::SetFrameNum | ( | const int | fn | ) | `[inline]`

void dirac::FrameParams::SetFrameType | ( | const FrameType & | frame_type | ) | `[inline]`

void dirac::FrameParams::SetFSort | ( | const FrameSort & | fs | ) | `[inline]`

void dirac::FrameParams::SetReferenceType | ( | const ReferenceType & | ref_type | ) | `[inline]`

void dirac::FrameParams::SetVideoDepth | ( | int | vd | ) | `[inline]`

void dirac::FrameParams::SetXl | ( | int | xl | ) | `[inline]`

void dirac::FrameParams::SetYl | ( | int | yl | ) | `[inline]`

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

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

## Member Data Documentation

ChromaFormat dirac::FrameParams::m_cformat`[private]`

int dirac::FrameParams::m_chroma_xl`[private]`

int dirac::FrameParams::m_chroma_yl`[private]`

int dirac::FrameParams::m_expiry_time`[private]`

int dirac::FrameParams::m_fnum`[private]`

FrameType dirac::FrameParams::m_frame_type`[private]`

FrameSort dirac::FrameParams::m_fsort`[private]`

bool dirac::FrameParams::m_output`[private]`

ReferenceType dirac::FrameParams::m_reference_type`[private]`

std::vector<int> dirac::FrameParams::m_refs`[private]`

std::vector<int> dirac::FrameParams::m_retd_list`[mutable, private]`

unsigned int dirac::FrameParams::m_video_depth`[private]`

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

int dirac::FrameParams::m_yl`[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.