38#ifndef _QUALITY_MONITOR_H_
39#define _QUALITY_MONITOR_H_
Definition of class SequenceHeaderByteIO.
Definition: accessunit_byteio.h:52
A class for picture component data.
Definition: common.h:719
Parameters for the encoding process.
Definition: common.h:1280
Definition: enc_picture.h:65
Class to monitor the quality of pictures and adjust coding parameters appropriately.
Definition: quality_monitor.h:49
OneDArray< int > m_picture_total
The number of pictures of each type
Definition: quality_monitor.h:119
OneDArray< long double > m_mse_averageU
The average U mse for the picture types.
Definition: quality_monitor.h:113
long double m_totalmse_averageV
The overall average V mse.
Definition: quality_monitor.h:104
long double m_totalmse_averageU
The overall average U mse.
Definition: quality_monitor.h:101
long double m_totalmse_averageY
The overall average Y mse.
Definition: quality_monitor.h:98
EncoderParams & m_encparams
A reference to the encoder parameters.
Definition: quality_monitor.h:95
OneDArray< long double > m_mse_averageY
The average Y mse for the picture types.
Definition: quality_monitor.h:110
int m_allpicture_total
The total number of pictures coded.
Definition: quality_monitor.h:107
OneDArray< long double > m_mse_averageV
The average V mse for the picture types.
Definition: quality_monitor.h:116
~QualityMonitor()
Destructor.
double QualityVal(const PicArray &coded_data, const PicArray &orig_data, const int xlen, const int ylen)
Calculate the quality of coded wrt original picture.
void WriteLog()
Write a log of the quality to date.
QualityMonitor(EncoderParams &ep)
Constructor. Sets up initial Lagrangian values.
void ResetAll()
Reset the quality factors (say if there's been a cut)
void UpdateModel(const EncPicture &enc_picture)
Update the mse factors, returning true if we need to recode.