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 media_libva_caps_mtl.h 25 //! \brief This file implements the C++ class/interface for pvc capbilities. 26 //! 27 28 #ifndef __MEDIA_LIBVA_CAPS_MTL_H__ 29 #define __MEDIA_LIBVA_CAPS_MTL_H__ 30 31 #include "media_libva.h" 32 #include "media_libva_caps_factory.h" 33 34 #include "media_libva_caps_mtl_base.h" 35 #include "linux_system_info.h" 36 37 //! 38 //! \class MediaLibvaCapsMtl 39 //! \brief Media libva caps MTL 40 //! 41 class MediaLibvaCapsMtl : public MediaLibvaCapsMtlBase 42 { 43 public: 44 //! 45 //! \brief Constructor 46 //! MediaLibvaCapsMtl(DDI_MEDIA_CONTEXT * mediaCtx)47 MediaLibvaCapsMtl(DDI_MEDIA_CONTEXT *mediaCtx) : MediaLibvaCapsMtlBase(mediaCtx) 48 { 49 return; 50 } 51 52 //! 53 //! \brief Destructor 54 //! ~MediaLibvaCapsMtl()55 virtual ~MediaLibvaCapsMtl() {}; 56 57 //! 58 //! \brief Get display attributes 59 //! returns the current attributes values in "attribList" 60 //! 61 //! \param [in, out] attribList 62 //! the attrib type should be filled. 63 //! returns the supported display attributes 64 //! 65 //! \param [in] numAttribs 66 //! the number of supported attributes 67 //! 68 //! \return VAStatus 69 //! VA_STATUS_SUCCESS if success 70 //! VA_STATUS_ERROR_MAX_NUM_EXCEEDED if size of attribList is too small 71 //! 72 virtual VAStatus GetDisplayAttributes( 73 VADisplayAttribute * attribList, 74 int32_t numAttribs) override; 75 76 MEDIA_CLASS_DEFINE_END(MediaLibvaCapsMtl) 77 }; 78 #endif 79