Dirac - A Video Codec

Created by the British Broadcasting Corporation.


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

Compress a picture component. More...

#include <comp_compress.h>

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

Public Member Functions

 CompCompressor (EncoderParams &encp, const PictureParams &fp)
 Constructor. More...
 
ComponentByteIOCompress (CoeffArray &coeff_data, SubbandList &bands, CompSort csort, const OneDArray< unsigned int > &estimated_bits)
 Compress a picture component. More...
 

Private Member Functions

 CompCompressor (const CompCompressor &cpy)
 Copy constructor is private and body-less. This class should not be copied. More...
 
CompCompressoroperator= (const CompCompressor &rhs)
 Assignment = is private and body-less. This class should not be assigned. More...
 
void SetToVal (CoeffArray &coeff_data, const Subband &node, ValueType val)
 Set a subband to a constant value. More...
 

Private Attributes

EncoderParamsm_encparams
 
const PictureParamsm_pparams
 
const PictureSortm_psort
 
const ChromaFormatm_cformat
 
float m_lambda
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CompCompressor() [1/2]

dirac::CompCompressor::CompCompressor ( EncoderParams encp,
const PictureParams fp 
)

Create and initialize a component compressor with the given characteristics.

Parameters
encpencoding parameters
fppicture parameters

◆ CompCompressor() [2/2]

dirac::CompCompressor::CompCompressor ( const CompCompressor cpy)
private

Member Function Documentation

◆ Compress()

ComponentByteIO * dirac::CompCompressor::Compress ( CoeffArray coeff_data,
SubbandList bands,
CompSort  csort,
const OneDArray< unsigned int > &  estimated_bits 
)

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

Parameters
coeff_datathe component data to be compressed
bandsSubbands list
csortChroma format
estimated_bitsthe list of estimated number of bits in each subband
Returns
Picture-component in Dirac-bytestream format

◆ operator=()

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

◆ SetToVal()

void dirac::CompCompressor::SetToVal ( CoeffArray coeff_data,
const Subband node,
ValueType  val 
)
private

Member Data Documentation

◆ m_cformat

const ChromaFormat& dirac::CompCompressor::m_cformat
private

◆ m_encparams

EncoderParams& dirac::CompCompressor::m_encparams
private

◆ m_lambda

float dirac::CompCompressor::m_lambda
private

◆ m_pparams

const PictureParams& dirac::CompCompressor::m_pparams
private

◆ m_psort

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