1 /* 2 * Copyright (c) 2021-2022, 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 decode_vp9_mem_compression.h 25 //! \brief Defines the common interface for VP9 decode mmc 26 //! \details The VP9 decode media mmc is to handle decode mmc operations 27 //! 28 29 #ifndef __VP9_DECODE_MEM_COMPRESSION_H__ 30 #define __VP9_DECODE_MEM_COMPRESSION_H__ 31 32 #include "decode_mem_compression.h" 33 #include "decode_vp9_basic_feature.h" 34 35 namespace decode 36 { 37 class Vp9DecodeMemComp 38 { 39 public: 40 //! 41 //! \brief Construct 42 //! 43 Vp9DecodeMemComp(CodechalHwInterfaceNext *hwInterface); 44 45 //! 46 //! \brief Copy constructor 47 //! 48 Vp9DecodeMemComp(const DecodeMemComp &) = delete; 49 50 //! 51 //! \brief Copy assignment operator 52 //! 53 Vp9DecodeMemComp &operator=(const Vp9DecodeMemComp &) = delete; 54 55 //! 56 //! \brief Destructor 57 //! ~Vp9DecodeMemComp()58 virtual ~Vp9DecodeMemComp(){}; 59 60 virtual MOS_STATUS CheckReferenceList(Vp9BasicFeature &vp9BasicFeature, 61 MOS_MEMCOMP_STATE &postDeblockSurfMmcState, 62 MOS_MEMCOMP_STATE &preDeblockSurfMmcState, 63 PMOS_RESOURCE *presReferences); 64 65 MOS_STATUS SetRefSurfaceMask( 66 Vp9BasicFeature &vp9BasicFeature, 67 MHW_VDBOX_SURFACE_PARAMS refSurfaceParams[]); 68 69 MOS_STATUS SetRefSurfaceCompressionFormat( 70 Vp9BasicFeature &vp9BasicFeature, 71 MHW_VDBOX_SURFACE_PARAMS refSurfaceParams[]); 72 73 virtual MOS_STATUS SetRefSurfaceMask( 74 Vp9BasicFeature &vp9BasicFeature, 75 mhw::vdbox::hcp::HCP_SURFACE_STATE_PAR refSurfaceParams[]); 76 77 protected: 78 PMOS_INTERFACE m_osInterface = nullptr; 79 uint8_t m_skipMask = 0; 80 81 MEDIA_CLASS_DEFINE_END(decode__Vp9DecodeMemComp) 82 }; 83 } // namespace decode 84 85 #endif //__VP9_DECODE_MEM_COMPRESSION_H__ 86