Download modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 2.01 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp
-
curl -L -o decode_engine_legacy.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp
2.01 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 LegacyDecodeSession; | |
| struct DecoderParams; | |
| struct IDataProvider; | |
| struct VPLAccelerationPolicy; | |
| class GAPI_EXPORTS VPLLegacyDecodeEngine : public ProcessingEngineBase { | |
| public: | |
| VPLLegacyDecodeEngine(std::unique_ptr<VPLAccelerationPolicy>&& accel); | |
| virtual session_ptr initialize_session(mfxSession mfx_session, | |
| const std::vector<CfgParam>& cfg_params, | |
| std::shared_ptr<IDataProvider> provider) override; | |
| protected: | |
| struct SessionParam { | |
| void* decode_pool_key; | |
| DecoderParams decoder_params; | |
| }; | |
| SessionParam prepare_session_param(mfxSession mfx_session, | |
| const std::vector<CfgParam>& cfg_params, | |
| std::shared_ptr<IDataProvider> provider); | |
| ExecutionStatus process_error(mfxStatus status, LegacyDecodeSession& sess); | |
| void on_frame_ready(LegacyDecodeSession& sess, | |
| mfxFrameSurface1* ready_surface); | |
| static void try_modify_pool_size_request_param(const char* param_name, | |
| size_t new_frames_count, | |
| mfxFrameAllocRequest& request); | |
| }; | |
| } // namespace onevpl | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |