FFmpegKit iOS / macOS / tvOS API
5.1
FFmpegKit.h
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
#ifndef FFMPEG_KIT_H
21
#define FFMPEG_KIT_H
22
23
#import <string.h>
24
#import <stdlib.h>
25
#import <Foundation/Foundation.h>
26
#import "
LogCallback.h
"
27
#import "
FFmpegSession.h
"
28
#import "
StatisticsCallback.h
"
29
43
@interface
FFmpegKit
: NSObject
44
51
+ (
FFmpegSession
*)executeWithArguments:(NSArray*)arguments;
52
63
+ (
FFmpegSession
*)executeWithArgumentsAsync:(NSArray*)arguments withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback;
64
77
+ (
FFmpegSession
*)executeWithArgumentsAsync:(NSArray*)arguments withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback withLogCallback:(
LogCallback
)logCallback withStatisticsCallback:(
StatisticsCallback
)statisticsCallback;
78
90
+ (
FFmpegSession
*)executeWithArgumentsAsync:(NSArray*)arguments withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback onDispatchQueue:(dispatch_queue_t)queue;
91
105
+ (
FFmpegSession
*)executeWithArgumentsAsync:(NSArray*)arguments withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback withLogCallback:(
LogCallback
)logCallback withStatisticsCallback:(
StatisticsCallback
)statisticsCallback onDispatchQueue:(dispatch_queue_t)queue;
106
115
+ (
FFmpegSession
*)execute:(NSString*)command;
116
128
+ (
FFmpegSession
*)executeAsync:(NSString*)command withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback;
129
143
+ (
FFmpegSession
*)executeAsync:(NSString*)command withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback withLogCallback:(
LogCallback
)logCallback withStatisticsCallback:(
StatisticsCallback
)statisticsCallback;
144
157
+ (
FFmpegSession
*)executeAsync:(NSString*)command withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback onDispatchQueue:(dispatch_queue_t)queue;
158
173
+ (
FFmpegSession
*)executeAsync:(NSString*)command withCompleteCallback:(
FFmpegSessionCompleteCallback
)completeCallback withLogCallback:(
LogCallback
)logCallback withStatisticsCallback:(
StatisticsCallback
)statisticsCallback onDispatchQueue:(dispatch_queue_t)queue;
174
180
+ (void)
cancel
;
181
189
+ (void)
cancel
:(
long
)sessionId;
190
196
+ (NSArray*)
listSessions
;
197
198
@end
199
200
#endif
// FFMPEG_KIT_H
FFmpegSession.h
FFmpegSessionCompleteCallback
void(^ FFmpegSessionCompleteCallback)(FFmpegSession *session)
Definition:
FFmpegSessionCompleteCallback.h:46
LogCallback.h
LogCallback
void(^ LogCallback)(Log *log)
Definition:
LogCallback.h:31
StatisticsCallback.h
StatisticsCallback
void(^ StatisticsCallback)(Statistics *statistics)
Definition:
StatisticsCallback.h:31
FFmpegKit
Definition:
FFmpegKit.h:44
+[FFmpegKit listSessions]
NSArray * listSessions()
Definition:
FFmpegKit.m:110
+[FFmpegKit cancel]
void cancel()
Definition:
FFmpegKit.m:97
FFmpegSession
Definition:
FFmpegSession.h:32
Generated on Sat Sep 17 2022 18:38:13 for FFmpegKit iOS / macOS / tvOS API by
1.9.4