| FFmpegKit iOS / macOS / tvOS API 6.0

Loading...
Searching...
No Matches
FFmpegSession.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021-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 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"
25#import "StatisticsCallback.h"
26#import "FFmpegSessionCompleteCallback.h"
27
31@interface FFmpegSession : AbstractSession
32
39+ (instancetype)create:(NSArray*)arguments;
40
48+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback;
49
59+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback;
60
71+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback withLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
72
78- (StatisticsCallback)getStatisticsCallback;
79
85- (FFmpegSessionCompleteCallback)getCompleteCallback;
86
94- (NSArray*)getAllStatisticsWithTimeout:(int)waitTimeout;
95
103- (NSArray*)getAllStatistics;
104
112- (NSArray*)getStatistics;
113
120- (Statistics*)getLastReceivedStatistics;
121
128- (void)addStatistics:(Statistics*)statistics;
129
130@end
131
132#endif // FFMPEG_KIT_FFMPEG_SESSION_H
AbstractSession.h
FFmpegSessionCompleteCallback.h
FFmpegSessionCompleteCallback
void(^ FFmpegSessionCompleteCallback)(FFmpegSession *session)
Definition FFmpegSessionCompleteCallback.h:46
LogCallback
void(^ LogCallback)(Log *log)
Definition LogCallback.h:31
StatisticsCallback.h
StatisticsCallback
void(^ StatisticsCallback)(Statistics *statistics)
Definition StatisticsCallback.h:31
AbstractSession
Definition AbstractSession.h:35
FFmpegSession
Definition FFmpegSession.h:32
-[FFmpegSession getStatistics]
NSArray * getStatistics()
Definition FFmpegSession.m:88
-[FFmpegSession getLastReceivedStatistics]
Statistics * getLastReceivedStatistics()
Definition FFmpegSession.m:96
-[FFmpegSession getStatisticsCallback]
StatisticsCallback getStatisticsCallback()
Definition FFmpegSession.m:66
-[FFmpegSession getCompleteCallback]
FFmpegSessionCompleteCallback getCompleteCallback()
Definition FFmpegSession.m:70
-[FFmpegSession getAllStatistics]
NSArray * getAllStatistics()
Definition FFmpegSession.m:84
Statistics
Definition Statistics.h:29