| FFmpegKit iOS / macOS / tvOS API 4.5

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;
24 int _videoFrameNumber;
25 float _videoFps;
26 float _videoQuality;
27 long _size;
28 int _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:(int)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- (int)getTime {
70 return _time;
71}
72
73- (double)getBitrate {
74 return _bitrate;
75}
76
77- (double)getSpeed {
78 return _speed;
79}
80
81@end
_sessionId
long _sessionId
Definition: FFmpegKitConfig.m:136
Statistics.h
_bitrate
double _bitrate
Definition: Statistics.m:29
_videoFps
float _videoFps
Definition: Statistics.m:25
_videoFrameNumber
int _videoFrameNumber
Definition: Statistics.m:22
_size
long _size
Definition: Statistics.m:27
_speed
double _speed
Definition: Statistics.m:30
_time
int _time
Definition: Statistics.m:28
_videoQuality
float _videoQuality
Definition: Statistics.m:26
int
int
Definition: fftools_ffmpeg_filter.c:165
Statistics
Definition: Statistics.h:29