Created by the British Broadcasting Corporation.
Compress a picture component. More...
#include <comp_compress.h>
Public Member Functions | |
CompCompressor (EncoderParams &encp, const PictureParams &fp) | |
Constructor. More... | |
ComponentByteIO * | Compress (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... | |
CompCompressor & | operator= (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 | |
EncoderParams & | m_encparams |
const PictureParams & | m_pparams |
const PictureSort & | m_psort |
const ChromaFormat & | m_cformat |
float | m_lambda |
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.
dirac::CompCompressor::CompCompressor | ( | EncoderParams & | encp, |
const PictureParams & | fp | ||
) |
Create and initialize a component compressor with the given characteristics.
encp | encoding parameters |
fp | picture parameters |
|
private |
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).
coeff_data | the component data to be compressed |
bands | Subbands list |
csort | Chroma format |
estimated_bits | the list of estimated number of bits in each subband |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
© 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.