Download modules/gapi/src/streaming/onevpl/engine/decode/decode_session.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/decode/decode_session.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/streaming/onevpl/engine/decode/decode_session.hpp
-
curl -L -o decode_session.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/streaming/onevpl/engine/decode/decode_session.hpp
1.97 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 Surface; | |
| struct VPLAccelerationPolicy; | |
| class VPLLegacyDecodeEngine; | |
| class GAPI_EXPORTS LegacyDecodeSession : public EngineSession { | |
| public: | |
| friend class VPLLegacyDecodeEngine; | |
| friend class VPLLegacyTranscodeEngine; //TODO: remove friend add method | |
| LegacyDecodeSession(mfxSession sess, DecoderParams&& decoder_param, std::shared_ptr<IDataProvider> provider); | |
| ~LegacyDecodeSession(); | |
| using EngineSession::EngineSession; | |
| void swap_decode_surface(VPLLegacyDecodeEngine& engine); | |
| void init_surface_pool(VPLAccelerationPolicy::pool_key_t key); | |
| Data::Meta generate_frame_meta(); | |
| virtual const mfxFrameInfo& get_video_param() const override; | |
| IDataProvider::mfx_bitstream *get_mfx_bitstream_ptr(); | |
| private: | |
| mfxVideoParam mfx_decoder_param; | |
| VPLAccelerationPolicy::pool_key_t decoder_pool_id; | |
| std::shared_ptr<IDataProvider> data_provider; | |
| std::shared_ptr<IDataProvider::mfx_bitstream> stream; | |
| protected: | |
| std::weak_ptr<Surface> processing_surface_ptr; | |
| using op_handle_t = std::pair<mfxSyncPoint, mfxFrameSurface1*>; | |
| std::queue<op_handle_t> sync_queue; | |
| int64_t decoded_frames_count; | |
| }; | |
| } // namespace onevpl | |
| } // namespace wip | |
| } // namespace gapi | |
| } // namespace cv | |