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_vp8_decode_xe2_lpm_r0_specific.h 23 //! \brief This file register all caps data 24 //! 25 26 #ifndef __CAPSTABLE_DATA_VP8_DECODE_XE2_LPM_R0_SPECIFIC_H__ 27 #define __CAPSTABLE_DATA_VP8_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_ENCRYPTION_TYPE_NONE 33 #define VA_ENCRYPTION_TYPE_NONE 0x00000000 34 #endif 35 36 //! 37 //! \brief Definition for ConfigDataList 38 //! 39 static ConfigDataList configDataList_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0 = 40 { 41 {VA_DEC_SLICE_MODE_NORMAL, VA_ENCRYPTION_TYPE_NONE, VA_DEC_PROCESSING_NONE} 42 }; 43 44 //! 45 //! \brief Definition for AttribList 46 //! 47 static const AttribList attribList_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0 48 { 49 {VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV422 | VA_RT_FORMAT_RGB32}, 50 {VAConfigAttribDecSliceMode, VA_DEC_SLICE_MODE_NORMAL}, 51 {VAConfigAttribDecProcessing, VA_DEC_PROCESSING_NONE}, 52 {VAConfigAttribMaxPictureWidth, CODEC_4K_MAX_PIC_WIDTH}, 53 {VAConfigAttribMaxPictureHeight, CODEC_4K_MAX_PIC_HEIGHT}, 54 {VAConfigAttribEncryption, VA_ATTRIB_NOT_SUPPORTED}, 55 {VAConfigAttribProcessingRate, VA_PROCESSING_RATE_DECODE}, 56 {VAConfigAttribCustomRoundingControl, 1}, 57 }; 58 59 //! 60 //! \brief Definition for ProfileSurfaceAttribInfo 61 //! 62 static ProfileSurfaceAttribInfo surfaceAttribInfo_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0 = 63 { 64 {VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_NV12}}}, 65 {VASurfaceAttribMaxWidth, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {CODEC_4K_MAX_PIC_WIDTH}}}, 66 {VASurfaceAttribMaxHeight, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {CODEC_4K_MAX_PIC_HEIGHT}}}, 67 {VASurfaceAttribMemoryType, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_SURFACE_ATTRIB_MEM_TYPE_VA | VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2}}} 68 }; 69 70 //! 71 //! \brief Definition for EntrypointMap 72 //! 73 static const EntrypointData entrypointMap_VAProfileVP8Version0_3Dec_Data_Xe2_Lpm_r0 74 { 75 &attribList_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0, 76 &configDataList_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0, 77 &surfaceAttribInfo_VAProfileVP8Version0_3_VAEntrypointVLD_Xe2_Lpm_r0 78 }; 79 80 #endif 81