FFmpegKit Linux API  4.5.1
Statistics.cpp
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 #include "Statistics.h"
21 
22 ffmpegkit::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) :
23  _sessionId{sessionId}, _videoFrameNumber{videoFrameNumber}, _videoFps{videoFps}, _videoQuality{videoQuality}, _size{size}, _time{time}, _bitrate{bitrate}, _speed{speed} {
24 }
25 
27  return _sessionId;
28 }
29 
31  return _videoFrameNumber;
32 }
33 
35  return _videoFps;
36 }
37 
39  return _videoQuality;
40 }
41 
43  return _size;
44 }
45 
47  return _time;
48 }
49 
51  return _bitrate;
52 }
53 
55  return _speed;
56 }
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::getSize
int64_t getSize()
Definition: Statistics.cpp:42
ffmpegkit::Statistics::getSessionId
long getSessionId()
Definition: Statistics.cpp:26
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::getVideoFps
float getVideoFps()
Definition: Statistics.cpp:34
Statistics.h
ffmpegkit::Statistics::getBitrate
double getBitrate()
Definition: Statistics.cpp:50