| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
FFmpegKit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 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 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#include <string.h>
24#include <stdlib.h>
25#include "LogCallback.h"
26#include "FFmpegSession.h"
27#include "StatisticsCallback.h"
28
29 namespace ffmpegkit {
30
44 class FFmpegKit {
45 public:
46
53 static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArguments(const std::list<std::string>& arguments);
54
65 static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFmpegSessionCompleteCallback completeCallback);
66
79 static std::shared_ptr<ffmpegkit::FFmpegSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFmpegSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback, ffmpegkit::StatisticsCallback statisticsCallback);
80
89 static std::shared_ptr<ffmpegkit::FFmpegSession> execute(const std::string command);
90
102 static std::shared_ptr<ffmpegkit::FFmpegSession> executeAsync(const std::string command, FFmpegSessionCompleteCallback completeCallback);
103
117 static std::shared_ptr<ffmpegkit::FFmpegSession> executeAsync(const std::string command, FFmpegSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback, ffmpegkit::StatisticsCallback statisticsCallback);
118
124 static void cancel();
125
133 static void cancel(const long sessionId);
134
140 static std::shared_ptr<std::list<std::shared_ptr<ffmpegkit::FFmpegSession>>> listSessions();
141
142 };
143
144}
145
146#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