| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
FFprobeSession.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 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_FFPROBE_SESSION_H
21#define FFMPEG_KIT_FFPROBE_SESSION_H
22
23#include "AbstractSession.h"
24#include "FFprobeSessionCompleteCallback.h"
25
26 namespace ffmpegkit {
27
31 class FFprobeSession : public AbstractSession {
32 public:
33
40 static std::shared_ptr<ffmpegkit::FFprobeSession> create(const std::list<std::string>& arguments);
41
49 static std::shared_ptr<ffmpegkit::FFprobeSession> create(const std::list<std::string>& arguments, const FFprobeSessionCompleteCallback completeCallback);
50
59 static std::shared_ptr<ffmpegkit::FFprobeSession> create(const std::list<std::string>& arguments, const FFprobeSessionCompleteCallback completeCallback, const ffmpegkit::LogCallback logCallback);
60
70 static std::shared_ptr<ffmpegkit::FFprobeSession> create(const std::list<std::string>& arguments, const FFprobeSessionCompleteCallback completeCallback, const ffmpegkit::LogCallback logCallback, const LogRedirectionStrategy logRedirectionStrategy);
71
77 ffmpegkit::FFprobeSessionCompleteCallback getCompleteCallback();
78
84 bool isFFmpeg() const override;
85
91 bool isFFprobe() const override;
92
98 bool isMediaInformation() const override;
99
100 private:
101
102 struct PublicFFprobeSession;
103
112 FFprobeSession(const std::list<std::string>& arguments, const FFprobeSessionCompleteCallback completeCallback, const ffmpegkit::LogCallback logCallback, const LogRedirectionStrategy logRedirectionStrategy);
113
114 FFprobeSessionCompleteCallback _completeCallback;
115 };
116
117}
118
119#endif // FFMPEG_KIT_FFPROBE_SESSION_H
AbstractSession.h
logCallback
static ffmpegkit::LogCallback logCallback
Definition FFmpegKitConfig.cpp:69
FFprobeSessionCompleteCallback.h
ffmpegkit::AbstractSession
Definition AbstractSession.h:31
ffmpegkit::FFprobeSession
Definition FFprobeSession.h:31
ffmpegkit::FFprobeSession::isFFmpeg
bool isFFmpeg() const override
Definition FFprobeSession.cpp:64
ffmpegkit::FFprobeSession::getCompleteCallback
ffmpegkit::FFprobeSessionCompleteCallback getCompleteCallback()
Definition FFprobeSession.cpp:60
ffmpegkit::FFprobeSession::isMediaInformation
bool isMediaInformation() const override
Definition FFprobeSession.cpp:72
ffmpegkit::FFprobeSession::isFFprobe
bool isFFprobe() const override
Definition FFprobeSession.cpp:68
ffmpegkit::FFprobeSession::create
static std::shared_ptr< ffmpegkit::FFprobeSession > create(const std::list< std::string > &arguments)
Definition FFprobeSession.cpp:26
ffmpegkit::FFprobeSession::_completeCallback
FFprobeSessionCompleteCallback _completeCallback
Definition FFprobeSession.h:114
ffmpegkit
Definition AbstractSession.h:25
ffmpegkit::LogRedirectionStrategy
LogRedirectionStrategy
Definition LogRedirectionStrategy.h:25
ffmpegkit::LogCallback
std::function< void(const std::shared_ptr< ffmpegkit::Log > log)> LogCallback
Definition LogCallback.h:35
ffmpegkit::FFprobeSessionCompleteCallback
std::function< void(const std::shared_ptr< ffmpegkit::FFprobeSession > session)> FFprobeSessionCompleteCallback
Definition FFprobeSessionCompleteCallback.h:52