OpenCV 4.10.0-dev
Open Source Computer Vision
|
Public class is using for creation of onevpl::GSource instances. More...
#include <opencv2/gapi/streaming/onevpl/cfg_params.hpp>
Public Types | |
using | name_t = std::string |
using | value_t |
Public Member Functions | |
CfgParam (CfgParam &&src) | |
CfgParam (const CfgParam &src) | |
~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 Public Member Functions | |
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 () |
decoder_id_name | |
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 () |
static constexpr const char * | vpp_in_crop_h_name () |
static constexpr const char * | vpp_in_crop_w_name () |
static constexpr const char * | vpp_in_crop_x_name () |
static constexpr const char * | vpp_in_crop_y_name () |
static constexpr const char * | vpp_in_height_name () |
static constexpr const char * | vpp_in_width_name () |
static constexpr const char * | vpp_out_chroma_format_name () |
static constexpr const char * | vpp_out_crop_h_name () |
static constexpr const char * | vpp_out_crop_w_name () |
static constexpr const char * | vpp_out_crop_x_name () |
static constexpr const char * | vpp_out_crop_y_name () |
static constexpr const char * | vpp_out_fourcc_name () |
static constexpr const char * | vpp_out_framerate_d_name () |
static constexpr const char * | vpp_out_framerate_n_name () |
static constexpr const char * | vpp_out_height_name () |
static constexpr const char * | vpp_out_pic_struct_name () |
static constexpr const char * | vpp_out_width_name () |
Public class is using for creation of onevpl::GSource instances.
Class members available through methods CfgParam::get_name() and CfgParam::get_value() are used by onevpl::GSource inner logic to create or find oneVPL particular implementation (software/hardware, specific API version and etc.).
preferred
parameters. This kind of CfgParams are created using is_major = false
argument in CfgParam::create method and are not used by creating oneVPL particular implementations. Instead they fill out a "score table" to select preferable implementation from available list. Implementation are satisfying with most of these optional params would be chosen. If no one optional CfgParam params were present then first of available oneVPL implementation would be applied. Please get on https://spec.oneapi.io/versions/latest/elements/oneVPL/source/API_ref/VPL_disp_api_func.html?highlight=mfxcreateconfig#mfxsetconfigfilterproperty for using OneVPL configuration. In this schema mfxU8 *name
represents CfgParam::get_name() and mfxVariant value
is 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
Special configuration parameter names for onevp::GSource:
If not set then MFX implementation will use default acceleration behavior: all decoding operation uses default GPU resources but MediaFrame produces data allocated by using host RAM
|
inlinestatic |
Create generic onevp::GSource configuration parameter.
name | name of parameter. |
value | value of parameter. |
is_major | TRUE if parameter MUST be provided by OneVPL inner implementation, FALSE for optional (for resolve multiple available implementations). |
|
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
Special configuration parameter names for onevp::GSource:
|
inlinestaticconstexpr |
frames_pool_size_name
Special configuration parameter name for 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 |