mirror of
https://github.com/opencv/opencv.git
synced 2026-11-23 17:57:56 -06:00
G-API: oneVPL DX11 inference * Draft GPU infer * Fix incorrect subresource_id for array of textures * Fix for TheOneSurface in different Frames * Turn on VPP param configuration * Add cropIn params * Remove infer sync sample * Remove comments * Remove DX11AllocResource extra init * Add condition for NV12 processing in giebackend * Add VPP frames pool param configurable * -M Remove extra WARN & INFOs, Fix custom MAC * Remove global vars from example, Fix some comments, Disable blobParam due to OV issue * Conflict resolving * Revert back pointer cast for cv::any
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
//
|
|
// Copyright (C) 2021 Intel Corporation
|
|
|
|
#ifndef GAPI_STREAMING_ONEVPL_CFG_PARAM_PARSER_HPP
|
|
#define GAPI_STREAMING_ONEVPL_CFG_PARAM_PARSER_HPP
|
|
|
|
#ifdef HAVE_ONEVPL
|
|
#include "streaming/onevpl/onevpl_export.hpp"
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
#include <opencv2/gapi/streaming/onevpl/source.hpp>
|
|
|
|
namespace cv {
|
|
namespace gapi {
|
|
namespace wip {
|
|
namespace onevpl {
|
|
|
|
template<typename ValueType>
|
|
std::vector<ValueType> get_params_from_string(const std::string& str);
|
|
|
|
template <typename ReturnType>
|
|
struct ParamCreator {
|
|
template<typename ValueType>
|
|
ReturnType create(const std::string& name, ValueType&& value, bool is_major = false);
|
|
};
|
|
|
|
mfxVariant cfg_param_to_mfx_variant(const CfgParam& value);
|
|
|
|
void extract_optional_param_by_name(const std::string &name,
|
|
const std::vector<CfgParam>& in_params,
|
|
cv::util::optional<size_t> &out_param);
|
|
|
|
unsigned long strtoul_or_throw(const char* str);
|
|
size_t strtoull_or_throw(const char* str);
|
|
int64_t strtoll_or_throw(const char* str);
|
|
|
|
} // namespace onevpl
|
|
} // namespace wip
|
|
} // namespace gapi
|
|
} // namespace cv
|
|
#endif // HAVE_ONEVPL
|
|
#endif // GAPI_STREAMING_ONEVPL_CFG_PARAM_PARSER_HPP
|