![]() |
OpenCV 4.12.0
開源計算機視覺
|
此公共類用於建立 onevpl::GSource 例項。更多...
#include <opencv2/gapi/streaming/onevpl/cfg_params.hpp>
公共型別 | |
| using | name_t = std::string |
| using | value_t |
公共成員函式 | |
| CfgParam (CfgParam &&src) | |
| CfgParam (const CfgParam &src) | |
| ~CfgParam(CfgParam解構函式) () | |
| const name_t & | get_name () const |
| const value_t & | get_value () const |
| bool | is_major () const |
| bool | operator!= (const CfgParam &rhs) const |
| bool | operator< (const CfgParam &rhs) const |
| CfgParam & | operator= (CfgParam &&src) |
| CfgParam & | operator= (const CfgParam &src) |
| bool | operator== (const CfgParam &rhs) const |
| std::string | to_string () const |
靜態公共成員函式 | |
| static constexpr const char * | acceleration_mode_name(加速模式名稱) () |
| acceleration_mode_name(加速模式名稱) | |
| template<typename ValueType > | |
| static CfgParam | create (const std::string &name, ValueType &&value, bool is_major=true) |
| static CfgParam | create_acceleration_mode (const char *value) |
| static CfgParam | create_acceleration_mode (uint32_t value) |
| static CfgParam | create_decoder_id (const char *value) |
| static CfgParam | create_decoder_id (uint32_t value) |
| static CfgParam | create_frames_pool_size (size_t value) |
| static CfgParam | create_implementation (const char *value) |
| static CfgParam | create_implementation (uint32_t value) |
| static CfgParam | create_vpp_frames_pool_size (size_t value) |
| static CfgParam | create_vpp_in_crop_h (uint16_t value) |
| static CfgParam | create_vpp_in_crop_w (uint16_t value) |
| static CfgParam | create_vpp_in_crop_x (uint16_t value) |
| static CfgParam | create_vpp_in_crop_y (uint16_t value) |
| static CfgParam | create_vpp_in_height (uint16_t value) |
| static CfgParam | create_vpp_in_width (uint16_t value) |
| static CfgParam | create_vpp_out_chroma_format (uint16_t value) |
| static CfgParam | create_vpp_out_crop_h (uint16_t value) |
| static CfgParam | create_vpp_out_crop_w (uint16_t value) |
| static CfgParam | create_vpp_out_crop_x (uint16_t value) |
| static CfgParam | create_vpp_out_crop_y (uint16_t value) |
| static CfgParam | create_vpp_out_fourcc (uint32_t value) |
| static CfgParam | create_vpp_out_framerate_d (uint32_t value) |
| static CfgParam | create_vpp_out_framerate_n (uint32_t value) |
| static CfgParam | create_vpp_out_height (uint16_t value) |
| static CfgParam | create_vpp_out_pic_struct (uint16_t value) |
| static CfgParam | create_vpp_out_width (uint16_t value) |
| static constexpr const char * | decoder_id_name(解碼器ID名稱) () |
| decoder_id_name(解碼器ID名稱) | |
| static constexpr const char * | frames_pool_size_name(幀池大小名稱) () |
| frames_pool_size_name(幀池大小名稱) | |
| static constexpr const char * | implementation_name(實現名稱) () |
| static constexpr const char * | vpp_frames_pool_size_name(VPP幀池大小名稱) () |
| static constexpr const char * | vpp_in_crop_h_name(VPP輸入裁剪高度名稱) () |
| static constexpr const char * | vpp_in_crop_w_name(VPP輸入裁剪寬度名稱) () |
| static constexpr const char * | vpp_in_crop_x_name(VPP輸入裁剪X座標名稱) () |
| static constexpr const char * | vpp_in_crop_y_name(VPP輸入裁剪Y座標名稱) () |
| static constexpr const char * | vpp_in_height_name(VPP輸入高度名稱) () |
| static constexpr const char * | vpp_in_width_name(VPP輸入寬度名稱) () |
| static constexpr const char * | vpp_out_chroma_format_name(VPP輸出色度格式名稱) () |
| static constexpr const char * | vpp_out_crop_h_name(VPP輸出裁剪高度名稱) () |
| static constexpr const char * | vpp_out_crop_w_name(VPP輸出裁剪寬度名稱) () |
| static constexpr const char * | vpp_out_crop_x_name(VPP輸出裁剪X座標名稱) () |
| static constexpr const char * | vpp_out_crop_y_name(VPP輸出裁剪Y座標名稱) () |
| static constexpr const char * | vpp_out_fourcc_name(VPP輸出FourCC名稱) () |
| static constexpr const char * | vpp_out_framerate_d_name(VPP輸出幀率分母名稱) () |
| static constexpr const char * | vpp_out_framerate_n_name(VPP輸出幀率分子名稱) () |
| static constexpr const char * | vpp_out_height_name(VPP輸出高度名稱) () |
| static constexpr const char * | vpp_out_pic_struct_name(VPP輸出影像結構名稱) () |
| static constexpr const char * | vpp_out_width_name(VPP輸出寬度名稱) () |
此公共類用於建立 onevpl::GSource 例項。
可透過 CfgParam::get_name() 和 CfgParam::get_value() 方法訪問的類成員由 onevpl::GSource 內部邏輯使用,以建立或查詢特定的 OneVPL 實現(軟體/硬體、特定 API 版本等)。
preferred(首選)引數。這類 CfgParam 使用 CfgParam::create 方法中的 is_major = false 引數建立,並且不用於建立特定的 OneVPL 實現。相反,它們用於填充“得分表”以從可用列表中選擇更優的實現。將選擇滿足大多數這些可選引數的實現。如果不存在任何可選的 CfgParam 引數,則將應用第一個可用的 OneVPL 實現。有關 OneVPL 配置的使用,請參考 https://spec.oneapi.io/versions/latest/elements/oneVPL/source/API_ref/VPL_disp_api_func.html?highlight=mfxcreateconfig#mfxsetconfigfilterproperty。在此方案中,mfxU8 *name 表示 CfgParam::get_name(),mfxVariant value 是 CfgParam::get_value()。| using cv::gapi::wip::onevpl::CfgParam::name_t = std::string |
| cv::gapi::wip::onevpl::CfgParam::CfgParam | ( | const CfgParam & | src | ) |
| cv::gapi::wip::onevpl::CfgParam::CfgParam | ( | CfgParam && | src | ) |
| cv::gapi::wip::onevpl::CfgParam::~CfgParam | ( | ) |
|
inlinestaticconstexpr |
acceleration_mode_name(加速模式名稱)
onevp::GSource 的特殊配置引數名稱
如果未設定,則 MFX 實現將使用預設的加速行為:所有解碼操作都使用預設的 GPU 資源,但 MediaFrame 生成的資料分配在主機 RAM 中
|
inlinestatic |
建立通用的 onevp::GSource 配置引數。
| name | 引數名稱。 |
| 值 | 引數值。 |
| is_major | 如果引數必須由 OneVPL 內部實現提供,則為 TRUE;如果為可選引數(用於解決多個可用實現),則為 FALSE。 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestaticconstexpr |
decoder_id_name(解碼器ID名稱)
onevp::GSource 的特殊配置引數名稱
|
inlinestaticconstexpr |
frames_pool_size_name(幀池大小名稱)
onevp::GSource 的特殊配置引數名稱
| const name_t & cv::gapi::wip::onevpl::CfgParam::get_name | ( | ) | const |
| const value_t & cv::gapi::wip::onevpl::CfgParam::get_value | ( | ) | const |
|
inlinestaticconstexpr |
| bool cv::gapi::wip::onevpl::CfgParam::is_major | ( | ) | const |
| bool cv::gapi::wip::onevpl::CfgParam::operator!= | ( | const CfgParam & | rhs | ) | const |
| bool cv::gapi::wip::onevpl::CfgParam::operator< | ( | const CfgParam & | rhs | ) | const |
| bool cv::gapi::wip::onevpl::CfgParam::operator== | ( | const CfgParam & | rhs | ) | const |
| std::string cv::gapi::wip::onevpl::CfgParam::to_string | ( | ) | const |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |