We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d475b8 commit 808a9e7Copy full SHA for 808a9e7
src/AvTranscoder/transcoder/ProcessStat.cpp
@@ -1,10 +1,16 @@
1
#include "ProcessStat.hpp"
2
3
#include <utility>
4
+#include <math.h>
5
6
namespace avtranscoder
7
{
8
9
+double VideoStat::psnr( const double d )
10
+{
11
+ return -10.0 * log(d) / log(10.0);
12
+}
13
+
14
void ProcessStat::addVideoStat( const size_t streamIndex, const VideoStat& videoStat )
15
16
_videoStats.insert( std::make_pair( streamIndex, videoStat ) );
src/AvTranscoder/transcoder/ProcessStat.hpp
@@ -22,10 +22,7 @@ class VideoStat
22
{}
23
24
public:
25
- static double psnr( double d )
26
- {
27
- return -10.0 * log(d) / log(10.0);
28
- }
+ static double psnr( const double d );
29
30
31
double _duration;
0 commit comments