1 /* 2 * Copyright (c) 2021, 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_vp8_mem_compression.h 25 //! \brief Defines the common interface for VP8 decode mmc 26 //! \details The VP8 decode media mmc is to handle decode mmc operations 27 //! 28 29 #ifndef __VP8_DECODE_MEM_COMPRESSION_H__ 30 #define __VP8_DECODE_MEM_COMPRESSION_H__ 31 32 #include "decode_mem_compression.h" 33 #include "decode_vp8_basic_feature.h" 34 35 #ifdef _MMC_SUPPORTED 36 37 namespace decode 38 { 39 class Vp8DecodeMemComp 40 { 41 public: 42 //! 43 //! \brief Construct 44 //! 45 Vp8DecodeMemComp(CodechalHwInterfaceNext *hwInterface); 46 47 //! 48 //! \brief Copy constructor 49 //! 50 Vp8DecodeMemComp(const DecodeMemComp &) = delete; 51 52 //! 53 //! \brief Copy assignment operator 54 //! 55 Vp8DecodeMemComp &operator=(const Vp8DecodeMemComp &) = delete; 56 57 //! 58 //! \brief Destructor 59 //! ~Vp8DecodeMemComp()60 virtual ~Vp8DecodeMemComp(){}; 61 62 //! 63 //! \brief CheckReferenceList 64 //! 65 virtual MOS_STATUS CheckReferenceList(Vp8BasicFeature &vp8BasicFeature, 66 MOS_MEMCOMP_STATE & PostDeblockSurfMmcState, 67 MOS_MEMCOMP_STATE & PreDeblockSurfMmcState); 68 69 //! 70 //! \brief SetPipeBufAddr 71 //! 72 virtual MOS_STATUS SetPipeBufAddr(Vp8BasicFeature &vp8BasicFeature, 73 MOS_MEMCOMP_STATE &PostDeblockSurfMmcState, 74 MOS_MEMCOMP_STATE &PreDeblockSurfMmcState); 75 76 bool m_mmcEnabled = false; 77 78 protected: 79 PMOS_INTERFACE m_osInterface = nullptr; 80 uint8_t m_skipMask = 0; 81 82 MEDIA_CLASS_DEFINE_END(decode__Vp8DecodeMemComp) 83 }; 84 } // namespace decode 85 86 #endif //_MMC_SUPPORTED 87 88 #endif //__VP8_DECODE_MEM_COMPRESSION_H__ 89