# FFmpegKit Linux API: MediaInformationSession.h Source File

Loading...
Searching...
No Matches
MediaInformationSession.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 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_MEDIA_INFORMATION_SESSION_H
#define FFMPEG_KIT_MEDIA_INFORMATION_SESSION_H
#include "AbstractSession.h"
#include "MediaInformation.h"
#include "MediaInformationSessionCompleteCallback.h"
namespace ffmpegkit {
class MediaInformationSession : public AbstractSession {
public:
static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments);
static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback);
static std::shared_ptr<ffmpegkit::MediaInformationSession> create(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
std::shared_ptr<ffmpegkit::MediaInformation> getMediaInformation();
void setMediaInformation(const std::shared_ptr<ffmpegkit::MediaInformation> mediaInformation);
ffmpegkit::MediaInformationSessionCompleteCallback getCompleteCallback();
bool isFFmpeg() const override;
bool isFFprobe() const override;
bool isMediaInformation() const override;
private:
struct PublicMediaInformationSession;
MediaInformationSession(const std::list<std::string>& arguments, ffmpegkit::MediaInformationSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
ffmpegkit::MediaInformationSessionCompleteCallback _completeCallback;
std::shared_ptr<ffmpegkit::MediaInformation> _mediaInformation;
};
}
#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