Created by the British Broadcasting Corporation.
#include <common.h>
Collaboration diagram for dirac::EntropyCorrector:
dirac::EntropyCorrector::EntropyCorrector | ( | int | depth | ) |
Constructs arrays of correction factors of size.
depth | the depth of the wavelet transform. |
float dirac::EntropyCorrector::Factor | ( | const int | bandnum, | |
const PictureParams & | pp, | |||
const CompSort | c | |||
) | const |
Returns the correction factor for the band given also the type of picture and component.
void dirac::EntropyCorrector::Init | ( | ) | [private] |
void dirac::EntropyCorrector::Update | ( | int | bandnum, | |
const PictureParams & | pp, | |||
CompSort | c, | |||
int | est_bits, | |||
int | actual_bits | |||
) |
Update the factors for a given subband, component and picture type.
bandnum | the number of the subband to update | |
pp | picture parameters | |
c | component type | |
est_bits | the number of bits it was estimated would be used | |
actual_bits | the number of bits that actually were used |
TwoDArray<float> dirac::EntropyCorrector::m_Ufctrs [private] |
TwoDArray<float> dirac::EntropyCorrector::m_Vfctrs [private] |
TwoDArray<float> dirac::EntropyCorrector::m_Yfctrs [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.