FFmpegKit Linux API  4.5.1
Statistics.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 Taner Sener
3  *
4  * This file is part of FFmpegKit.
5  *
6  * FFmpegKit is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * FFmpegKit is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef FFMPEG_KIT_STATISTICS_H
21 #define FFMPEG_KIT_STATISTICS_H
22 
23 #include <stdlib.h>
24 
25 namespace ffmpegkit {
26 
30  class Statistics {
31  public:
32 
33  Statistics(const long sessionId, const int videoFrameNumber, const float videoFps, const float videoQuality, const int64_t size, const int time, const double bitrate, const double speed);
34  long getSessionId();
35  int getVideoFrameNumber();
36  float getVideoFps();
37  float getVideoQuality();
38  int64_t getSize();
39  int getTime();
40  double getBitrate();
41  double getSpeed();
42 
43  private:
44  long _sessionId;
46  float _videoFps;
48  int64_t _size;
49  int _time;
50  double _bitrate;
51  double _speed;
52  };
53 
54 }
55 
56 #endif // FFMPEG_KIT_STATISTICS_H
ffmpegkit
Definition: AbstractSession.h:25
ffmpegkit::Statistics::getSpeed
double getSpeed()
Definition: Statistics.cpp:54
ffmpegkit::Statistics::getVideoFrameNumber
int getVideoFrameNumber()
Definition: Statistics.cpp:30
ffmpegkit::Statistics::getTime
int getTime()
Definition: Statistics.cpp:46
ffmpegkit::Statistics::_speed
double _speed
Definition: Statistics.h:51
ffmpegkit::Statistics
Definition: Statistics.h:30
ffmpegkit::Statistics::_size
int64_t _size
Definition: Statistics.h:48
ffmpegkit::Statistics::_bitrate
double _bitrate
Definition: Statistics.h:50
ffmpegkit::Statistics::getSize
int64_t getSize()
Definition: Statistics.cpp:42
ffmpegkit::Statistics::_sessionId
long _sessionId
Definition: Statistics.h:44
ffmpegkit::Statistics::getSessionId
long getSessionId()
Definition: Statistics.cpp:26
ffmpegkit::Statistics::_videoQuality
float _videoQuality
Definition: Statistics.h:47
ffmpegkit::Statistics::Statistics
Statistics(const long sessionId, const int videoFrameNumber, const float videoFps, const float videoQuality, const int64_t size, const int time, const double bitrate, const double speed)
Definition: Statistics.cpp:22
ffmpegkit::Statistics::getVideoQuality
float getVideoQuality()
Definition: Statistics.cpp:38
ffmpegkit::Statistics::_time
int _time
Definition: Statistics.h:49
ffmpegkit::Statistics::_videoFrameNumber
int _videoFrameNumber
Definition: Statistics.h:45
ffmpegkit::Statistics::getVideoFps
float getVideoFps()
Definition: Statistics.cpp:34
ffmpegkit::Statistics::getBitrate
double getBitrate()
Definition: Statistics.cpp:50
ffmpegkit::Statistics::_videoFps
float _videoFps
Definition: Statistics.h:46