forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessStat.hpp
More file actions
37 lines (29 loc) · 1010 Bytes
/
Copy pathProcessStat.hpp
File metadata and controls
37 lines (29 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _AV_TRANSCODER_PROCESSSTAT_HPP
#define _AV_TRANSCODER_PROCESSSTAT_HPP
#include <AvTranscoder/common.hpp>
#include <AvTranscoder/stat/VideoStat.hpp>
#include <AvTranscoder/stat/AudioStat.hpp>
#include <map>
namespace avtranscoder
{
/**
* @brief ProcessStat contains statistics given after the process.
* @see Transcoder::process methods
*/
class AvExport ProcessStat
{
public:
ProcessStat()
: _videoStats()
{
}
void addVideoStat(const size_t streamIndex, const VideoStat& videoStat);
void addAudioStat(const size_t streamIndex, const AudioStat& audioStat);
VideoStat& getVideoStat(const size_t streamIndex) { return _videoStats.at(streamIndex); }
AudioStat& getAudioStat(const size_t streamIndex) { return _audioStats.at(streamIndex); }
private:
std::map<size_t, VideoStat> _videoStats; ///< Key: streamIndex, Value: statistic video results
std::map<size_t, AudioStat> _audioStats; ///< Key: streamIndex, Value: statistic audio results
};
}
#endif