AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProcessStat.cpp
Go to the documentation of this file.
1 #include "ProcessStat.hpp"
2 
3 #include <utility>
4 
5 namespace avtranscoder
6 {
7 
8 void ProcessStat::addVideoStat(const size_t streamIndex, const VideoStat& videoStat)
9 {
10  _videoStats.insert(std::make_pair(streamIndex, videoStat));
11 }
12 
13 void ProcessStat::addAudioStat(const size_t streamIndex, const AudioStat& audioStat)
14 {
15  _audioStats.insert(std::make_pair(streamIndex, audioStat));
16 }
17 }
std::map< size_t, AudioStat > _audioStats
Key: streamIndex, Value: statistic audio results.
Definition: ProcessStat.hpp:33
void addVideoStat(const size_t streamIndex, const VideoStat &videoStat)
Definition: ProcessStat.cpp:8
Statistics related to a video stream.
Definition: VideoStat.hpp:12
Statistics related to an audio stream.
Definition: AudioStat.hpp:12
void addAudioStat(const size_t streamIndex, const AudioStat &audioStat)
Definition: ProcessStat.cpp:13
std::map< size_t, VideoStat > _videoStats
Key: streamIndex, Value: statistic video results.
Definition: ProcessStat.hpp:32