dirac::EntropyCorrector Class Reference
A class used for correcting estimates of entropy.
More...
#include <common.h>
List of all members.
Public Member Functions
Private Member Functions
- void Init ()
- Initialises the correction factors.
Private Attributes
Detailed Description
A class used by the encoder for correcting estimates of entropy. Used for selecting quantisers in subband coefficient coding. Factors can be adjusted in the light of previous experience.
Constructor & Destructor Documentation
dirac::EntropyCorrector::EntropyCorrector |
( |
int |
depth |
) |
|
Constructs arrays of correction factors of size.
- Parameters:
-
| depth | the depth of the wavelet transform. |
Member Function Documentation
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.
- Parameters:
-
| 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 |
Member Data Documentation
The documentation for this class was generated from the following file: