/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ //! //! \file media_libva_caps_g8.h //! \brief This file defines the C++ class/interface for gen8 media capbilities. //! #ifndef __MEDIA_LIBVA_CAPS_G8_H__ #define __MEDIA_LIBVA_CAPS_G8_H__ #include "media_libva_caps.h" //! //! \class MediaLibvaCapsG8 //! \brief Media libva caps Gen8 //! class MediaLibvaCapsG8 : public MediaLibvaCaps { public: //! //! \brief Constructor //! MediaLibvaCapsG8(DDI_MEDIA_CONTEXT *mediaCtx) : MediaLibvaCaps(mediaCtx) { LoadProfileEntrypoints(); return; } virtual VAStatus QueryImageFormats(VAImageFormat *formatList, int32_t *num_formats); virtual uint32_t GetImageFormatsMaxNum(); virtual bool IsImageSupported(uint32_t fourcc); virtual VAStatus PopulateColorMaskInfo(VAImageFormat *vaImgFmt); protected: virtual VAStatus GetPlatformSpecificAttrib( VAProfile profile, VAEntrypoint entrypoint, VAConfigAttribType type, uint32_t *value); //! //! \brief Load profile entry points //! //! \return VAStatus //! Return VA_STATUS_SUCCESS if call success, else fail reason //! VAStatus LoadProfileEntrypoints(); //! //! \brief Query AVC ROI maximum number //! //! \param [in] rcMode //! RC mode //! \param [in] isVdenc //! vdenc //! \param [in] maxNum //! Maximum number //! \param [in] isRoiInDeltaQP //! Is ROI in delta QP //! //! \return VAStatus //! Return VA_STATUS_SUCCESS if call success, else fail reason //! VAStatus QueryAVCROIMaxNum(uint32_t rcMode, bool isVdenc, uint32_t *maxNum, bool *isRoiInDeltaQP); //! //! \brief Get mb processing rate encode //! //! \param [in] skuTable //! Media feature table //! \param [in] tuIdx //! TU index //! \param [in] codecMode //! Codec mode //! \param [in] vdencActive //! VDENC active //! \param [in] mbProcessingRatePerSec //! Mb processing rate per second //! //! \return VAStatus //! Return VA_STATUS_SUCCESS if call success, else fail reason //! VAStatus GetMbProcessingRateEnc( MEDIA_FEATURE_TABLE *skuTable, uint32_t tuIdx, uint32_t codecMode, bool vdencActive, uint32_t *mbProcessingRatePerSec); }; #endif