AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
avtranscoder::VideoStat Class Reference

Statistics related to a video stream. More...

#include <VideoStat.hpp>

Public Member Functions

 VideoStat (const float duration, const size_t nbFrames)
 
float getDuration () const
 
size_t getNbFrames () const
 
size_t getQuality () const
 
double getPSNR () const
 
void setQuality (const size_t quality)
 
void setPSNR (const double mse)
 

Static Private Member Functions

static double toPSNR (const double mse)
 

Private Attributes

float _duration
 
size_t _nbFrames
 
size_t _quality
 Between 1 (good) and FF_LAMBDA_MAX (bad). 0 if unknown. More...
 
double _psnr
 0 if unknown. More...
 

Detailed Description

Statistics related to a video stream.

Definition at line 12 of file VideoStat.hpp.

Constructor & Destructor Documentation

avtranscoder::VideoStat::VideoStat ( const float  duration,
const size_t  nbFrames 
)
inline

Definition at line 15 of file VideoStat.hpp.

Member Function Documentation

float avtranscoder::VideoStat::getDuration ( ) const
inline

Definition at line 24 of file VideoStat.hpp.

size_t avtranscoder::VideoStat::getNbFrames ( ) const
inline

Definition at line 25 of file VideoStat.hpp.

double avtranscoder::VideoStat::getPSNR ( ) const
inline

Definition at line 27 of file VideoStat.hpp.

size_t avtranscoder::VideoStat::getQuality ( ) const
inline

Definition at line 26 of file VideoStat.hpp.

void avtranscoder::VideoStat::setPSNR ( const double  mse)
inline

Definition at line 30 of file VideoStat.hpp.

References toPSNR().

void avtranscoder::VideoStat::setQuality ( const size_t  quality)
inline

Definition at line 29 of file VideoStat.hpp.

double avtranscoder::VideoStat::toPSNR ( const double  mse)
staticprivate

Definition at line 8 of file VideoStat.cpp.

Referenced by setPSNR().

Field Documentation

float avtranscoder::VideoStat::_duration
private

Definition at line 36 of file VideoStat.hpp.

size_t avtranscoder::VideoStat::_nbFrames
private

Definition at line 37 of file VideoStat.hpp.

double avtranscoder::VideoStat::_psnr
private

0 if unknown.

Definition at line 39 of file VideoStat.hpp.

size_t avtranscoder::VideoStat::_quality
private

Between 1 (good) and FF_LAMBDA_MAX (bad). 0 if unknown.

Definition at line 38 of file VideoStat.hpp.


The documentation for this class was generated from the following files: