Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Member Functions | Private Attributes | List of all members
dirac::CompDecompressor Class Reference

Decompress a picture component. More...

#include <comp_decompress.h>

Collaboration diagram for dirac::CompDecompressor:
Collaboration graph
[legend]

Public Member Functions

 CompDecompressor (DecoderParams &decp, const PictureParams &fp)
 Constructor. More...
 
void Decompress (ComponentByteIO *p_component_byteio, CoeffArray &coeff_data, SubbandList &bands)
 Decompress a picture component. More...
 

Private Member Functions

 CompDecompressor (const CompDecompressor &cpy)
 Copy constructor is private and body-less. More...
 
CompDecompressoroperator= (const CompDecompressor &rhs)
 Assignment = is private and body-less. More...
 
void SetToVal (CoeffArray &pic_data, const Subband &node, CoeffType val)
 Sets the data of a specific subband node to a given value. More...
 
void SetupCodeBlocks (SubbandList &bands)
 Set up the code block structures for each subband. More...
 

Private Attributes

DecoderParamsm_decparams
 Copy of the decompression parameters provided to the constructor. More...
 
const PictureParamsm_pparams
 Reference to the picture parameters provided to the constructor. More...
 
const PictureSortm_psort
 Reference to the picture sort. More...
 

Detailed Description

This class decompresses one of the three components (Y, U, or V) of a picture according to a given set or parameters. CompDecompressor is used by PictureCompressor..

Constructor & Destructor Documentation

◆ CompDecompressor() [1/2]

dirac::CompDecompressor::CompDecompressor ( DecoderParams decp,
const PictureParams fp 
)

Create and initialize a component decompressor with the given characteristics.

Parameters
decpdecoding parameters
fppicture parameters

◆ CompDecompressor() [2/2]

dirac::CompDecompressor::CompDecompressor ( const CompDecompressor cpy)
private

Copy constructor is private and body-less. This class should not be copied.

Member Function Documentation

◆ Decompress()

void dirac::CompDecompressor::Decompress ( ComponentByteIO p_component_byteio,
CoeffArray coeff_data,
SubbandList bands 
)

Decompress a PicArray containing a picture component (Y, U, or V).

Parameters
p_component_byteioBytestream of component data
coeff_datacontains the component data to be decompressed
bandsthe subband metadata

◆ operator=()

CompDecompressor & dirac::CompDecompressor::operator= ( const CompDecompressor rhs)
private

Assignment = is private and body-less. This class should not be assigned.

◆ SetToVal()

void dirac::CompDecompressor::SetToVal ( CoeffArray pic_data,
const Subband node,
CoeffType  val 
)
private

Sets the data of a specific subband node to a given value

Parameters
pic_datacontains the component data
nodesubband node
valthe value to set

◆ SetupCodeBlocks()

void dirac::CompDecompressor::SetupCodeBlocks ( SubbandList bands)
private

Set up the code block structures for each subband

Parameters
bandsthe set of all the subbands

Member Data Documentation

◆ m_decparams

DecoderParams& dirac::CompDecompressor::m_decparams
private

◆ m_pparams

const PictureParams& dirac::CompDecompressor::m_pparams
private

◆ m_psort

const PictureSort& dirac::CompDecompressor::m_psort
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.