1#ifndef ZAO_ENDPOINT_VIDEO_NV_SOURCE_INTERFACE_HPP_
2#define ZAO_ENDPOINT_VIDEO_NV_SOURCE_INTERFACE_HPP_
8#include "../SourceStreamInterface.hpp"
9#include "../StreamInterface.hpp"
10#include "../TimestampInterface.hpp"
11#include "NvBufferInterface.hpp"
12#include "VideoFormat.hpp"
25class NvSourceCallbackInterface;
38 const std::vector<VideoFormat>& formats) = 0;
88 bool use_weak_ptr = false) = 0;
126 kFailedFormatNegotiation,
ソース側ストリーム機能の共通コールバックインターフェース
Definition SourceStreamInterface.hpp:26
ソース側ストリーム機能インターフェース
Definition SourceStreamInterface.hpp:10
ストリーム機能の共通コールバックインターフェース
Definition StreamInterface.hpp:30
エンドポイント側のストリーム機能インターフェース
Definition StreamInterface.hpp:14
NvBufferを管理するクラスのインターフェース
Definition NvBufferInterface.hpp:21
NVIDIA Multimedia APIを利用した映像ソース機能の コールバックインターフェース
Definition NvSourceInterface.hpp:110
EventType
イベントの種類
Definition NvSourceInterface.hpp:115
virtual bool OnRequestSourceFormat(const VideoFormat &format)=0
フォーマット決定要求時に呼び出されるコールバック。
virtual void OnNotifySourceEvent(EventType type, const std::string &message)
エラーなどのイベントが発生した時に呼び出されるコールバック。
Definition NvSourceInterface.hpp:146
NVIDIA Multimedia APIを利用した映像ソース機能インターフェース
Definition NvSourceInterface.hpp:30
virtual void SendStatistics()=0
統計情報の送信
virtual std::unique_ptr< NvBufferInterface > DequeueBuffer()=0
画像を供給するためのバッファを取得する
virtual std::shared_future< VideoFormat > GetFormatDecisionStatus() const noexcept=0
フォーマット決定状態を取得するshared_futureを取得する。
virtual bool QueueBuffer(std::unique_ptr< NvBufferInterface > buffer)=0
送信する画像を供給する
virtual void RegisterCallback(const std::shared_ptr< NvSourceCallbackInterface > &listener, bool use_weak_ptr=false)=0
コールバックの送信先をshared_ptrまたはweak_ptrで登録する
virtual void SetAcceptableFormats(const std::vector< VideoFormat > &formats)=0
送信可能なフォーマット一覧を提示する。
virtual bool GetDecidedFormat(VideoFormat &format) const noexcept=0
決定したフォーマットを取得する。
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11