Download modules/gapi/src/streaming/onevpl/engine/transcode/transcode_engine_legacy.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/transcode/transcode_engine_legacy.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/engine/transcode/transcode_engine_legacy.hpp
-
curl -L -o transcode_engine_legacy.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/transcode/transcode_engine_legacy.hpp
1.51 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) 2021 Intel Corporation | |
| namespace cv { | |
| namespace gapi { | |
| namespace wip { | |
| namespace onevpl { | |
| class LegacyTranscodeSession; | |
| struct IDataProvider; | |
| struct VPLAccelerationPolicy; | |
| class GAPI_EXPORTS VPLLegacyTranscodeEngine : public VPLLegacyDecodeEngine { | |
| public: | |
| VPLLegacyTranscodeEngine(std::unique_ptr<VPLAccelerationPolicy>&& accel); | |
| session_ptr initialize_session(mfxSession mfx_session, | |
| const std::vector<CfgParam>& cfg_params, | |
| std::shared_ptr<IDataProvider> provider) override; | |
| static std::map<std::string, mfxVariant> get_vpp_params(const std::vector<CfgParam> &cfg_params); | |
| private: | |
| void on_frame_ready(LegacyTranscodeSession& sess, | |
| mfxFrameSurface1* ready_surface); | |
| void validate_vpp_param(const mfxVideoParam& mfxVPPParams); | |
| }; | |
| } // namespace onevpl | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |