OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::gapi::wip::onevpl::GSource クラス

OneVPL実装に基づくG-APIストリーミングソース。続きを読む...

#include <opencv2/gapi/streaming/onevpl/source.hpp>

Collaboration diagram for cv::gapi::wip::onevpl::GSource:

公開メンバ関数

 GSource (const std::string &filePath, const CfgParams &cfg_params, const Device &device, const Context &ctx)
 
 GSource (const std::string &filePath, const CfgParams &cfg_params, const std::string &device_id, void *accel_device_ptr, void *accel_ctx_ptr)
 
 GSource (const std::string &filePath, const CfgParams &cfg_params, std::shared_ptr< IDeviceSelector > selector)
 
 GSource (const std::string &filePath, const CfgParams &cfg_params=CfgParams{})
 
 GSource (std::shared_ptr< IDataProvider > source, const CfgParams &cfg_params, const std::string &device_id, void *accel_device_ptr, void *accel_ctx_ptr)
 
 GSource (std::shared_ptr< IDataProvider > source, const CfgParams &cfg_params, std::shared_ptr< IDeviceSelector > selector)
 
 GSource (std::shared_ptr< IDataProvider > source, const CfgParams &cfg_params=CfgParams{})
 
 ~GSource () override
 
GMetaArg descr_of () const override
 
bool pull (cv::gapi::wip::Data &data) override
 
- Public Member Functions inherited from cv::gapi::wip::IStreamSource
virtual ~IStreamSource ()=default
 
virtual void halt ()
 
Ptr ptr ()
 

Additional Inherited Members

- Public Types inherited from cv::gapi::wip::IStreamSource
using Ptr = std::shared_ptr<IStreamSource>
 

詳細説明

OneVPL実装に基づくG-APIストリーミングソース。

このクラスは IStreamSource インターフェースを実装する。そのコンストラクタは、(通常の方法での)ソースファイルパス、または(ファイルベースでないソース向けの)onevpl::IDataProvider インターフェースの実装を受け取る。また、複数の onevpl::CfgParam を使ってoneVPLの設定パラメータをそのまま渡すこともできる。

覚え書き
ストリームソースは共有ポインタを介してG-APIに渡されるため、オブジェクトの生成には gapi::make_onevpl_src<> を使い、GSourcecv::gin() に渡すには ptr() を使うこと。

構築子と解体子の詳解

◆ GSource() [1/7]

cv::gapi::wip::onevpl::GSource::GSource ( const std::string & filePath,
const CfgParams & cfg_params = CfgParams{} )

◆ GSource() [2/7]

cv::gapi::wip::onevpl::GSource::GSource ( const std::string & filePath,
const CfgParams & cfg_params,
const std::string & device_id,
void * accel_device_ptr,
void * accel_ctx_ptr )

◆ GSource() [3/7]

cv::gapi::wip::onevpl::GSource::GSource ( const std::string & filePath,
const CfgParams & cfg_params,
const Device & device,
const Context & ctx )

◆ GSource() [4/7]

cv::gapi::wip::onevpl::GSource::GSource ( const std::string & filePath,
const CfgParams & cfg_params,
std::shared_ptr< IDeviceSelector > selector )

◆ GSource() [5/7]

cv::gapi::wip::onevpl::GSource::GSource ( std::shared_ptr< IDataProvider > source,
const CfgParams & cfg_params = CfgParams{} )

◆ GSource() [6/7]

cv::gapi::wip::onevpl::GSource::GSource ( std::shared_ptr< IDataProvider > source,
const CfgParams & cfg_params,
const std::string & device_id,
void * accel_device_ptr,
void * accel_ctx_ptr )

◆ GSource() [7/7]

cv::gapi::wip::onevpl::GSource::GSource ( std::shared_ptr< IDataProvider > source,
const CfgParams & cfg_params,
std::shared_ptr< IDeviceSelector > selector )

◆ ~GSource()

cv::gapi::wip::onevpl::GSource::~GSource ( )
override

メンバ関数詳解

◆ descr_of()

GMetaArg cv::gapi::wip::onevpl::GSource::descr_of ( ) const
overridevirtual

cv::gapi::wip::IStreamSource を実装する。

◆ pull()

bool cv::gapi::wip::onevpl::GSource::pull ( cv::gapi::wip::Data & data)
overridevirtual

cv::gapi::wip::IStreamSource を実装する。


このクラス詳解は次のファイルから抽出されました: