Download modules/gapi/src/streaming/onevpl/engine/preproc_engine_interface.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/preproc_engine_interface.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/engine/preproc_engine_interface.hpp
-
curl -L -o preproc_engine_interface.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/preproc_engine_interface.hpp
1.87 kB
| // 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) 2022 Intel Corporation | |
| namespace cv { | |
| namespace gapi { | |
| namespace wip { | |
| struct IPreprocEngine { | |
| virtual ~IPreprocEngine() = default; | |
| virtual cv::util::optional<pp_params> | |
| is_applicable(const cv::MediaFrame& in_frame) = 0; | |
| virtual pp_session | |
| initialize_preproc(const pp_params& initial_frame_param, | |
| const GFrameDesc& required_frame_descr) = 0; | |
| virtual cv::MediaFrame | |
| run_sync(const pp_session &sess, const cv::MediaFrame& in_frame, | |
| const cv::util::optional<cv::Rect> &opt_roi = {}) = 0; | |
| template<typename SpecificPreprocEngine, typename ...PreprocEngineArgs > | |
| static std::unique_ptr<IPreprocEngine> create_preproc_engine(const PreprocEngineArgs& ...args) { | |
| static_assert(std::is_base_of<IPreprocEngine, SpecificPreprocEngine>::value, | |
| "SpecificPreprocEngine must have reachable ancessor IPreprocEngine"); | |
| return create_preproc_engine_impl<SpecificPreprocEngine, PreprocEngineArgs...>(args...); | |
| } | |
| private: | |
| template<typename SpecificPreprocEngine, typename ...PreprocEngineArgs > | |
| static std::unique_ptr<SpecificPreprocEngine> create_preproc_engine_impl(const PreprocEngineArgs &...args); | |
| }; | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |