1 #ifndef ZEP_VIDEO_NV_SOURCE_INTERFACE_HPP_ 2 #define ZEP_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" 24 class NvSourceCallbackInterface;
36 virtual void SetAcceptableFormats(
37 const std::vector<VideoFormat>& formats) = 0;
46 virtual bool GetDecidedFormat(
VideoFormat& format)
const noexcept = 0;
56 virtual std::shared_future<VideoFormat> GetFormatDecisionStatus()
59 virtual std::unique_ptr<NvBufferInterface> DequeueBuffer() = 0;
60 virtual bool QueueBuffer(std::unique_ptr<NvBufferInterface> buffer) = 0;
66 virtual void SendStatistics() = 0;
77 virtual void RegisterCallback(
78 const std::shared_ptr<NvSourceCallbackInterface>& listener,
79 bool use_weak_ptr =
false) = 0;
89 virtual void RegisterCallback(
90 std::unique_ptr<NvSourceCallbackInterface>&& listener) = 0;
116 kFailedFormatNegotiation,
128 virtual bool OnRequestSourceFormat(
const VideoFormat& format) = 0;
145 #endif // ZEP_VIDEO_NV_SOURCE_INTERFACE_HPP_ ソース側ストリーム機能インターフェース
Definition: SourceStreamInterface.hpp:9
ZEP SDK用名前空間
Definition: FactoryInterface.hpp:10
Definition: NvSourceInterface.hpp:17
エンドポイント側のストリーム機能インターフェース
Definition: StreamInterface.hpp:13
virtual void OnNotifySourceEvent(EventType type, const std::string &message)
エラーなどのイベントが発生した時に呼び出されるコールバック。
Definition: NvSourceInterface.hpp:136
ソース側ストリーム機能の共通コールバックインターフェース
Definition: SourceStreamInterface.hpp:25
EventType
イベントの種類
Definition: NvSourceInterface.hpp:105
NVIDIA Multimedia APIを利用した映像ソース機能インターフェース
Definition: NvSourceInterface.hpp:29
ストリーム機能の共通コールバックインターフェース
Definition: StreamInterface.hpp:29
NVIDIA Multimedia APIを利用した映像ソース機能の コールバックインターフェース
Definition: NvSourceInterface.hpp:99