1 /* 2 * Copyright (c) 2019, Intel Corporation 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included 12 * in all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 */ 22 23 //! 24 //! \file vp_scalability_singlepipe_next.h 25 //! \brief Defines the common interface for media scalability singlepipe mode. 26 //! \details The media scalability singlepipe interface is further sub-divided by component, 27 //! this file is for the base interface which is shared by all components. 28 //! 29 30 #ifndef __VP_SCALABILITY_SINGLEPIPE_NEXT_H__ 31 #define __VP_SCALABILITY_SINGLEPIPE_NEXT_H__ 32 #include "mos_defs.h" 33 #include "mos_os.h" 34 #include "media_scalability_singlepipe_next.h" 35 #include "vp_scalability_option.h" 36 #include "vp_pipeline_common.h" 37 38 namespace vp 39 { 40 class VpScalabilitySinglePipeNext : public MediaScalabilitySinglePipeNext 41 { 42 public: 43 //! 44 //! \brief VP scalability singlepipe constructor 45 //! \param [in] hwInterface 46 //! Pointer to HwInterface 47 //! \param [in] componentType 48 //! Component type 49 //! 50 VpScalabilitySinglePipeNext(void *hwInterface, MediaContext *mediaContext, uint8_t componentType); 51 52 //! 53 //! \brief Encode scalability singlepipe destructor 54 //! 55 virtual ~VpScalabilitySinglePipeNext(); 56 57 //! 58 //! \brief Copy constructor 59 //! 60 VpScalabilitySinglePipeNext(const VpScalabilitySinglePipeNext &) = delete; 61 62 //! 63 //! \brief Copy assignment operator 64 //! 65 VpScalabilitySinglePipeNext &operator=(const VpScalabilitySinglePipeNext &) = delete; 66 67 //! 68 //! \brief Initialize the vp single scalability 69 //! \details It will prepare the resources needed in scalability 70 //! and initialize the state of scalability 71 //! \param [in] option 72 //! Input scalability option 73 //! \return MOS_STATUS 74 //! MOS_STATUS_SUCCESS if success, else fail reason 75 //! 76 virtual MOS_STATUS Initialize(const MediaScalabilityOption &option) override; 77 78 static MOS_STATUS CreateSinglePipe(void *hwInterface, MediaContext *mediaContext, uint8_t componentType); 79 80 protected: 81 SendAttrWithFrameTracking(MOS_COMMAND_BUFFER & cmdBuffer,bool frameTrackingRequested)82 virtual MOS_STATUS SendAttrWithFrameTracking(MOS_COMMAND_BUFFER &cmdBuffer, bool frameTrackingRequested) override 83 { 84 return MOS_STATUS_SUCCESS; 85 } 86 87 private: 88 PVP_MHWINTERFACE m_hwInterface = nullptr; 89 90 MEDIA_CLASS_DEFINE_END(vp__VpScalabilitySinglePipeNext) 91 }; 92 } 93 #endif // !__VP_SCALABILITY_SINGLEPIPE_NEXT_H__ 94 95