Dirac - A Video Codec
Created by the British Broadcasting Corporation.
dirac::QualityMonitor Class Reference
Class to monitor the quality of pictures and adjust coding parameters appropriately.
#include <quality_monitor.h>
Collaboration diagram for dirac::QualityMonitor:
[legend]List of all members.Public Member Functions
- QualityMonitor (EncoderParams &ep, const SeqParams &sparams)
- Constructor. Sets up initial Lagrangian values.
- bool UpdateModel (const Frame &ld_frame, const Frame &orig_frame, const int count)
- Update the quality factors, returning true if we need to recode.
- void ResetAll ()
- Reset the quality factors (say if there's been a cut).
Private Member Functions
Private Attributes
Constructor & Destructor Documentation
Member Function Documentation
void dirac::QualityMonitor::CalcNewLambdas |
( |
const FrameSort |
fsort, |
|
|
const double |
slope, |
|
|
const double |
offset |
|
) |
[private] |
|
ValueType dirac::QualityMonitor::Filter |
( |
const PicArray & |
data, |
|
|
const int |
xpos, |
|
|
const int |
ypos |
|
) |
const [private] |
|
double dirac::QualityMonitor::QualityVal |
( |
const PicArray & |
coded_data, |
|
|
const PicArray & |
orig_data, |
|
|
double |
cpd, |
|
|
const FrameSort |
fsort |
|
) |
[private] |
|
void dirac::QualityMonitor::ResetAll |
( |
|
) |
|
|
bool dirac::QualityMonitor::UpdateModel |
( |
const Frame & |
ld_frame, |
|
|
const Frame & |
orig_frame, |
|
|
const int |
count |
|
) |
|
|
|
Update the quality factors, returning true if we need to recode - Parameters:
-
| ld_frame | the locally-decoded frame |
| orig_frame | the original frame |
| count | the number of times we've tried to code this frame before |
|
Member Data Documentation
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.