Download modules/gapi/src/streaming/onevpl/engine/engine_session.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/engine_session.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/engine/engine_session.hpp
-
curl -L -o engine_session.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/engine_session.hpp
1.95 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 { | |
| // GAPI_EXPORTS for tests | |
| struct GAPI_EXPORTS DecoderParams { | |
| std::shared_ptr<IDataProvider::mfx_bitstream> stream; | |
| mfxVideoParam param; | |
| cv::util::optional<size_t> preallocated_frames_count; | |
| }; | |
| struct GAPI_EXPORTS TranscoderParams { | |
| mfxVideoParam param; | |
| }; | |
| struct GAPI_EXPORTS EngineSession { | |
| mfxSession session; | |
| mfxStatus last_status; | |
| EngineSession(mfxSession sess); | |
| std::string error_code_to_str() const; | |
| virtual ~EngineSession(); | |
| virtual const mfxFrameInfo& get_video_param() const = 0; | |
| static void request_free_surface(mfxSession session, | |
| VPLAccelerationPolicy::pool_key_t key, | |
| VPLAccelerationPolicy &acceleration_policy, | |
| std::weak_ptr<Surface> &surface_to_exchange, | |
| bool reset_if_not_found = false); | |
| }; | |
| } // namespace onevpl | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |