| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
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 double 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
26 long ffmpegkit::Statistics::getSessionId() {
27 return _sessionId;
28}
29
30 int ffmpegkit::Statistics::getVideoFrameNumber() {
31 return _videoFrameNumber;
32}
33
34 float ffmpegkit::Statistics::getVideoFps() {
35 return _videoFps;
36}
37
38 float ffmpegkit::Statistics::getVideoQuality() {
39 return _videoQuality;
40}
41
42int64_t ffmpegkit::Statistics::getSize() {
43 return _size;
44}
45
46 double ffmpegkit::Statistics::getTime() {
47 return _time;
48}
49
50 double ffmpegkit::Statistics::getBitrate() {
51 return _bitrate;
52}
53
54 double ffmpegkit::Statistics::getSpeed() {
55 return _speed;
56}
Statistics.h
ffmpegkit::Statistics::getTime
double 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::getVideoFrameNumber
int getVideoFrameNumber()
Definition Statistics.cpp:30
ffmpegkit::Statistics::getVideoFps
float getVideoFps()
Definition Statistics.cpp:34
ffmpegkit::Statistics::getSpeed
double getSpeed()
Definition Statistics.cpp:54
ffmpegkit::Statistics::getVideoQuality
float getVideoQuality()
Definition Statistics.cpp:38
ffmpegkit::Statistics::getBitrate
double getBitrate()
Definition Statistics.cpp:50
ffmpegkit::Statistics::Statistics
Statistics(const long sessionId, const int videoFrameNumber, const float videoFps, const float videoQuality, const int64_t size, const double time, const double bitrate, const double speed)
Definition Statistics.cpp:22