Dirac - A Video Codec

Created by the British Broadcasting Corporation.


dirac::CodeBlocks Class Reference

Structure to hold code block sizes when spatial partitioning is used.

#include <common.h>

Public Member Functions

 CodeBlocks ()
 Default Constructor.
 CodeBlocks (unsigned int hblocks, unsigned int vblocks)
 Constructor.
unsigned int HorizontalCodeBlocks () const
 Return the number of horizontal code blocks.
unsigned int VerticalCodeBlocks () const
 Return the number of vertical code blocks.
void SetHorizontalCodeBlocks (unsigned int hblocks)
 Set the number of horizontal code blocks.
void SetVerticalCodeBlocks (unsigned int vblocks)
 Set the number of vertical code blocks.

Private Attributes

unsigned int m_hblocks
 Number of Horizontal code blocks.
unsigned int m_vblocks
 Number of Vertical code blocks.

Constructor & Destructor Documentation

◆ CodeBlocks() [1/2]

dirac::CodeBlocks::CodeBlocks ( )
inline

References m_hblocks, and m_vblocks.

◆ CodeBlocks() [2/2]

dirac::CodeBlocks::CodeBlocks ( unsigned int hblocks,
unsigned int vblocks )
inline

References m_hblocks, and m_vblocks.

Member Function Documentation

◆ HorizontalCodeBlocks()

unsigned int dirac::CodeBlocks::HorizontalCodeBlocks ( ) const
inline

References m_hblocks.

◆ SetHorizontalCodeBlocks()

void dirac::CodeBlocks::SetHorizontalCodeBlocks ( unsigned int hblocks)
inline

References m_hblocks.

◆ SetVerticalCodeBlocks()

void dirac::CodeBlocks::SetVerticalCodeBlocks ( unsigned int vblocks)
inline

References m_vblocks.

◆ VerticalCodeBlocks()

unsigned int dirac::CodeBlocks::VerticalCodeBlocks ( ) const
inline

References m_vblocks.

Member Data Documentation

◆ m_hblocks

unsigned int dirac::CodeBlocks::m_hblocks
private

◆ m_vblocks

unsigned int dirac::CodeBlocks::m_vblocks
private

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

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