# FFmpegKit Linux API: FFmpegKit.h Source File

Loading...
Searching...
No Matches
FFmpegKit.h
Go to the documentation of this file.
/*
* Copyright (c) 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 Public 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 Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_H
#define FFMPEG_KIT_H
#include <string.h>
#include <stdlib.h>
#include "LogCallback.h"
#include "FFmpegSession.h"
#include "StatisticsCallback.h"
namespace ffmpegkit {
class FFmpegKit {
public:
static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArguments(const std::list<std::string>& arguments);
static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFmpegSessionCompleteCallback completeCallback);
static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFmpegSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback, ffmpegkit::StatisticsCallback statisticsCallback);
static std::shared_ptr<ffmpegkit::FFmpegSession> execute(const std::string command);
static std::shared_ptr<ffmpegkit::FFmpegSession> executeAsync(const std::string command, FFmpegSessionCompleteCallback completeCallback);
static std::shared_ptr<ffmpegkit::FFmpegSession> executeAsync(const std::string command, FFmpegSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback, ffmpegkit::StatisticsCallback statisticsCallback);
static void cancel();
static void cancel(const long sessionId);
static std::shared_ptr<std::list<std::shared_ptr<ffmpegkit::FFmpegSession>>> listSessions();
};
}
#endif // FFMPEG_KIT_H
logCallback
static ffmpegkit::LogCallback logCallback
Definition FFmpegKitConfig.cpp:69
statisticsCallback
static ffmpegkit::StatisticsCallback statisticsCallback
Definition FFmpegKitConfig.cpp:72
FFmpegSession.h
LogCallback.h
StatisticsCallback.h
ffmpegkit::FFmpegKit
Definition FFmpegKit.h:44
ffmpegkit::FFmpegKit::listSessions
static std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::FFmpegSession > > > listSessions()
Definition FFmpegKit.cpp:82
ffmpegkit::FFmpegKit::executeWithArgumentsAsync
static std::shared_ptr< ffmpegkit::FFmpegSession > executeWithArgumentsAsync(const std::list< std::string > &arguments, FFmpegSessionCompleteCallback completeCallback)
Definition FFmpegKit.cpp:39
ffmpegkit::FFmpegKit::executeWithArguments
static std::shared_ptr< ffmpegkit::FFmpegSession > executeWithArguments(const std::list< std::string > &arguments)
Definition FFmpegKit.cpp:33
ffmpegkit::FFmpegKit::executeAsync
static std::shared_ptr< ffmpegkit::FFmpegSession > executeAsync(const std::string command, FFmpegSessionCompleteCallback completeCallback)
Definition FFmpegKit.cpp:57
ffmpegkit::FFmpegKit::cancel
static void cancel()
Definition FFmpegKit.cpp:69
ffmpegkit::FFmpegKit::execute
static std::shared_ptr< ffmpegkit::FFmpegSession > execute(const std::string command)
Definition FFmpegKit.cpp:51
ffmpegkit
Definition AbstractSession.h:25
ffmpegkit::StatisticsCallback
std::function< void(const std::shared_ptr< ffmpegkit::Statistics > statistics)> StatisticsCallback
Definition StatisticsCallback.h:35
ffmpegkit::LogCallback
std::function< void(const std::shared_ptr< ffmpegkit::Log > log)> LogCallback
Definition LogCallback.h:35
ffmpegkit::FFmpegSessionCompleteCallback
std::function< void(const std::shared_ptr< ffmpegkit::FFmpegSession > session)> FFmpegSessionCompleteCallback
Definition FFmpegSessionCompleteCallback.h:52