| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
MediaInformationSession.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_MEDIA_INFORMATION_SESSION_H
21#define FFMPEG_KIT_MEDIA_INFORMATION_SESSION_H
22
23#include "AbstractSession.h"
24#include "MediaInformation.h"
25#include "MediaInformationSessionCompleteCallback.h"
26
27 namespace ffmpegkit {
28
33 class MediaInformationSession : public AbstractSession {
34 public:
35
42 static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments);
43
51 static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback);
52
61 static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
62
69 std::shared_ptr<ffmpegkit::MediaInformation> getMediaInformation();
70
76 void setMediaInformation(const std::shared_ptr<ffmpegkit::MediaInformation> mediaInformation);
77
83 ffmpegkit::MediaInformationSessionCompleteCallback getCompleteCallback();
84
90 bool isFFmpeg() const override;
91
97 bool isFFprobe() const override;
98
104 bool isMediaInformation() const override;
105
106 private:
107
108 struct PublicMediaInformationSession;
109
117 MediaInformationSession(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
118
119 ffmpegkit::MediaInformationSessionCompleteCallback _completeCallback;
120 std::shared_ptr<ffmpegkit::MediaInformation> _mediaInformation;
121 };
122
123}
124
125#endif // FFMPEG_KIT_MEDIA_INFORMATION_SESSION_H
AbstractSession.h
logCallback
static ffmpegkit::LogCallback logCallback
Definition FFmpegKitConfig.cpp:69
MediaInformation.h
MediaInformationSessionCompleteCallback.h
ffmpegkit::AbstractSession
Definition AbstractSession.h:31
ffmpegkit::MediaInformationSession
Definition MediaInformationSession.h:33
ffmpegkit::MediaInformationSession::_completeCallback
ffmpegkit::MediaInformationSessionCompleteCallback _completeCallback
Definition MediaInformationSession.h:119
ffmpegkit::MediaInformationSession::_mediaInformation
std::shared_ptr< ffmpegkit::MediaInformation > _mediaInformation
Definition MediaInformationSession.h:120
ffmpegkit::MediaInformationSession::isFFmpeg
bool isFFmpeg() const override
Definition MediaInformationSession.cpp:66
ffmpegkit::MediaInformationSession::getMediaInformation
std::shared_ptr< ffmpegkit::MediaInformation > getMediaInformation()
Definition MediaInformationSession.cpp:54
ffmpegkit::MediaInformationSession::getCompleteCallback
ffmpegkit::MediaInformationSessionCompleteCallback getCompleteCallback()
Definition MediaInformationSession.cpp:62
ffmpegkit::MediaInformationSession::setMediaInformation
void setMediaInformation(const std::shared_ptr< ffmpegkit::MediaInformation > mediaInformation)
Definition MediaInformationSession.cpp:58
ffmpegkit::MediaInformationSession::isFFprobe
bool isFFprobe() const override
Definition MediaInformationSession.cpp:70
ffmpegkit::MediaInformationSession::create
static std::shared_ptr< ffmpegkit::MediaInformationSession > create(const std::list< std::string > &arguments)
Definition MediaInformationSession.cpp:26
ffmpegkit::MediaInformationSession::isMediaInformation
bool isMediaInformation() const override
Definition MediaInformationSession.cpp:74
ffmpegkit
Definition AbstractSession.h:25
ffmpegkit::MediaInformationSessionCompleteCallback
std::function< void(const std::shared_ptr< ffmpegkit::MediaInformationSession > session)> MediaInformationSessionCompleteCallback
Definition MediaInformationSessionCompleteCallback.h:53
ffmpegkit::LogCallback
std::function< void(const std::shared_ptr< ffmpegkit::Log > log)> LogCallback
Definition LogCallback.h:35