基于 OneVPL 实现的 G-API 流式源。更多...
#include <opencv2/gapi/streaming/onevpl/source.hpp>
|
| 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 |
|
virtual | ~IStreamSource ()=default |
|
virtual void | halt () |
|
Ptr | ptr () |
|
基于 OneVPL 实现的 G-API 流式源。
此类实现了 IStreamSource 接口。其构造函数采用源文件路径(以通常的方式)或 onevpl::IDataProvider 接口实现(对于非基于文件的源)。它还允许通过使用多个 onevpl::CfgParam 传递 OneVPL 配置参数。
- 注意
- 流源通过共享指针传递给 G-API,因此请使用 gapi::make_onevpl_src<> 来创建对象,并使用 ptr() 将 GSource 传递给 cv::gin()。
◆ 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]
◆ 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]
◆ ~GSource()
cv::gapi::wip::onevpl::GSource::~GSource |
( |
| ) |
|
|
override |
◆ descr_of()
GMetaArg cv::gapi::wip::onevpl::GSource::descr_of |
( |
| ) |
const |
|
overridevirtual |
◆ pull()
该类的文档从以下文件生成