1 /* 2 * Copyright (c) 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 * The above copyright notice and this permission notice shall be included 11 * in all copies or substantial portions of the Software. 12 * 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 16 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 17 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19 * OTHER DEALINGS IN THE SOFTWARE. 20 */ 21 //! 22 //! \file capstable_data_av1_decode_xe2_lpm_r0_specific.h 23 //! \brief This file register all caps data 24 //! 25 26 #ifndef __CAPSTABLE_DATA_AV1_DECODE_XE2_LPM_R0_SPECIFIC_H__ 27 #define __CAPSTABLE_DATA_AV1_DECODE_XE2_LPM_R0_SPECIFIC_H__ 28 29 #include "capstable_data_xe2_lpm_r0_specific.h" 30 #include "codec_def_common.h" 31 32 #ifndef VA_CENC_TYPE_NONE 33 #define VA_CENC_TYPE_NONE 0x00000000 34 #endif 35 36 //! 37 //! \brief Definition for ConfigDataList 38 //! 39 static ConfigDataList configDataList_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0 = 40 { 41 {VA_DEC_SLICE_MODE_NORMAL, VA_CENC_TYPE_NONE, VA_DEC_PROCESSING_NONE}, 42 {VA_DEC_SLICE_MODE_BASE, VA_CENC_TYPE_NONE, VA_DEC_PROCESSING_NONE}, 43 }; 44 45 //! 46 //! \brief Definition for AttribList 47 //! 48 static const AttribList attribList_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0 49 { 50 {VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV420_10BPP}, 51 {VAConfigAttribMaxPictureWidth, CODEC_16K_MAX_PIC_WIDTH}, 52 {VAConfigAttribMaxPictureHeight, CODEC_16K_MAX_PIC_HEIGHT}, 53 {VAConfigAttribDecSliceMode, VA_DEC_SLICE_MODE_NORMAL | VA_DEC_SLICE_MODE_BASE}, 54 {VAConfigAttribDecProcessing, VA_DEC_PROCESSING_NONE}, 55 {VAConfigAttribEncryption, VA_ATTRIB_NOT_SUPPORTED}, 56 {VAConfigAttribProcessingRate, VA_PROCESSING_RATE_DECODE}, 57 {VAConfigAttribCustomRoundingControl, 1}, 58 #if VA_CHECK_VERSION(1, 11, 0) 59 {VAConfigAttribDecAV1Features, 1}, 60 #endif 61 }; 62 63 //! 64 //! \brief Definition for ProfileSurfaceAttribInfo 65 //! 66 static ProfileSurfaceAttribInfo surfaceAttribInfo_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0 = 67 { 68 {VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_NV12}}}, 69 {VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_P010}}}, 70 {VASurfaceAttribMaxWidth, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {CODEC_16K_MAX_PIC_WIDTH}}}, 71 {VASurfaceAttribMaxHeight, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {CODEC_16K_MAX_PIC_HEIGHT}}}, 72 {VASurfaceAttribMemoryType, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_SURFACE_ATTRIB_MEM_TYPE_VA | VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2}}} 73 }; 74 75 //! 76 //! \brief Definition for EmtrypointMap 77 //! 78 static const EntrypointData entrypointMap_VAProfileAV1Profile0Dec_Data_Xe2_Lpm_r0 79 { 80 &attribList_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0, 81 &configDataList_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0, 82 &surfaceAttribInfo_VAProfileAV1Profile0_VAEntrypointVLD_Xe2_Lpm_r0 83 }; 84 85 #endif 86