FFmpegKit iOS / macOS / tvOS API 6.0
Loading...
Searching...
No Matches
Statistics.m
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2021 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#import "Statistics.h"
21
22@implementation Statistics {
23 long _sessionId;
25 float _videoFps;
27 long _size;
28 double _time;
29 double _bitrate;
30 double _speed;
31}
32
33- (instancetype)init:(long)sessionId videoFrameNumber:(int)videoFrameNumber videoFps:(float)videoFps videoQuality:(float)videoQuality size:(int64_t)size time:(double)time bitrate:(double)bitrate speed:(double)speed {
34 self = [super init];
35 if (self) {
36 _sessionId = sessionId;
37 _videoFrameNumber = videoFrameNumber;
38 _videoFps = videoFps;
39 _videoQuality = videoQuality;
40 _size = size;
41 _time = time;
42 _bitrate = bitrate;
43 _speed = speed;
44 }
45
46 return self;
47}
48
49- (long)getSessionId {
50 return _sessionId;
51}
52
53- (int)getVideoFrameNumber {
54 return _videoFrameNumber;
55}
56
57- (float)getVideoFps {
58 return _videoFps;
59}
60
61- (float)getVideoQuality {
62 return _videoQuality;
63}
64
65- (long)getSize {
66 return _size;
67}
68
69- (double)getTime {
70 return _time;
71}
72
73- (double)getBitrate {
74 return _bitrate;
75}
76
77- (double)getSpeed {
78 return _speed;
79}
80
81@end
long _sessionId
double _bitrate
Definition Statistics.m:29
float _videoFps
Definition Statistics.m:25
int _videoFrameNumber
Definition Statistics.m:24
double _time
Definition Statistics.m:28
long _size
Definition Statistics.m:27
double _speed
Definition Statistics.m:30
float _videoQuality
Definition Statistics.m:26