FFmpegKit iOS / macOS / tvOS API 4.5
FFmpegSession.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 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 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 License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFMPEG_KIT_FFMPEG_SESSION_H
21#define FFMPEG_KIT_FFMPEG_SESSION_H
22
23#import <Foundation/Foundation.h>
24#import "AbstractSession.h"
26
31
37- (instancetype)init:(NSArray*)arguments;
38
45- (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback;
46
55- (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback;
56
66- (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback withLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
67
74
82- (NSArray*)getAllStatisticsWithTimeout:(int)waitTimeout;
83
91- (NSArray*)getAllStatistics;
92
100- (NSArray*)getStatistics;
101
109
115- (void)addStatistics:(Statistics*)statistics;
116
117@end
118
119#endif // FFMPEG_KIT_FFMPEG_SESSION_H
void(^ ExecuteCallback)(id< Session > session)
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
void(^ StatisticsCallback)(Statistics *statistics)
NSArray * getStatistics()
Statistics * getLastReceivedStatistics()
StatisticsCallback getStatisticsCallback()
Definition: FFmpegSession.m:88
NSArray * getAllStatistics()