AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProcessStat.hpp
Go to the documentation of this file.
1 #ifndef _AV_TRANSCODER_PROCESSSTAT_HPP
2 #define _AV_TRANSCODER_PROCESSSTAT_HPP
3 
7 
8 #include <map>
9 
10 namespace avtranscoder
11 {
12 
13 /**
14  * @brief ProcessStat contains statistics given after the process.
15  * @see Transcoder::process methods
16  */
17 class AvExport ProcessStat
18 {
19 public:
21  : _videoStats()
22  {
23  }
24 
25  void addVideoStat(const size_t streamIndex, const VideoStat& videoStat);
26  void addAudioStat(const size_t streamIndex, const AudioStat& audioStat);
27 
28  VideoStat& getVideoStat(const size_t streamIndex) { return _videoStats.at(streamIndex); }
29  AudioStat& getAudioStat(const size_t streamIndex) { return _audioStats.at(streamIndex); }
30 
31 private:
32  std::map<size_t, VideoStat> _videoStats; ///< Key: streamIndex, Value: statistic video results
33  std::map<size_t, AudioStat> _audioStats; ///< Key: streamIndex, Value: statistic audio results
34 };
35 }
36 
37 #endif
ProcessStat contains statistics given after the process.
Definition: ProcessStat.hpp:17
VideoStat & getVideoStat(const size_t streamIndex)
Definition: ProcessStat.hpp:28
std::map< size_t, AudioStat > _audioStats
Key: streamIndex, Value: statistic audio results.
Definition: ProcessStat.hpp:33
AudioStat & getAudioStat(const size_t streamIndex)
Definition: ProcessStat.hpp:29
Statistics related to a video stream.
Definition: VideoStat.hpp:12
Statistics related to an audio stream.
Definition: AudioStat.hpp:12
std::map< size_t, VideoStat > _videoStats
Key: streamIndex, Value: statistic video results.
Definition: ProcessStat.hpp:32