# FFmpegKit iOS / macOS / tvOS API: FFmpegSession.h Source File

Loading...
Searching...
No Matches
FFmpegSession.h
Go to the documentation of this file.
/*
* Copyright (c) 2021-2022 Taner Sener
*
* This file is part of FFmpegKit.
*
* FFmpegKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FFmpegKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General License for more details.
*
* You should have received a copy of the GNU Lesser General License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_FFMPEG_SESSION_H
#define FFMPEG_KIT_FFMPEG_SESSION_H
#import <Foundation/Foundation.h>
#import "AbstractSession.h"
#import "StatisticsCallback.h"
#import "FFmpegSessionCompleteCallback.h"
@interface FFmpegSession : AbstractSession
+ (instancetype)create:(NSArray*)arguments;
+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback;
+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback;
+ (instancetype)create:(NSArray*)arguments withCompleteCallback:(FFmpegSessionCompleteCallback)completeCallback withLogCallback:(LogCallback)logCallback withStatisticsCallback:(StatisticsCallback)statisticsCallback withLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
- (StatisticsCallback)getStatisticsCallback;
- (FFmpegSessionCompleteCallback)getCompleteCallback;
- (NSArray*)getAllStatisticsWithTimeout:(int)waitTimeout;
- (NSArray*)getAllStatistics;
- (NSArray*)getStatistics;
- (Statistics*)getLastReceivedStatistics;
- (void)addStatistics:(Statistics*)statistics;
@end
#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