diff --git a/media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp b/media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp index 4ed563545a8..70eb41d8347 100644 --- a/media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp +++ b/media_driver/linux/gen12/ddi/media_libva_caps_g12.cpp @@ -496,6 +496,51 @@ VAStatus MediaLibvaCapsG12::GetPlatformSpecificAttrib(VAProfile profile, *value = VA_PREDICTION_DIRECTION_PREVIOUS | VA_PREDICTION_DIRECTION_FUTURE | VA_PREDICTION_DIRECTION_BI_NOT_EMPTY; break; } + case VAConfigAttribEncHEVCFeatures: + { + if(entrypoint == VAEntrypointEncSliceLP && IsHevcProfile(profile)) + { + VAConfigAttribValEncHEVCFeatures hevcFeatures = {0}; + hevcFeatures.bits.separate_colour_planes = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.scaling_lists = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.amp = VA_FEATURE_REQUIRED; + hevcFeatures.bits.sao = VA_FEATURE_SUPPORTED; + hevcFeatures.bits.pcm = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.temporal_mvp = VA_FEATURE_SUPPORTED; + hevcFeatures.bits.strong_intra_smoothing = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.dependent_slices = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.sign_data_hiding = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.constrained_intra_pred = VA_FEATURE_NOT_SUPPORTED; + hevcFeatures.bits.transform_skip = VA_FEATURE_SUPPORTED; + hevcFeatures.bits.cu_qp_delta = VA_FEATURE_REQUIRED; + hevcFeatures.bits.weighted_prediction = VA_FEATURE_SUPPORTED; + hevcFeatures.bits.transquant_bypass = VA_FEATURE_SUPPORTED; + hevcFeatures.bits.deblocking_filter_disable = VA_FEATURE_NOT_SUPPORTED; + *value = hevcFeatures.value; + } + break; + } + case VAConfigAttribEncHEVCBlockSizes: + { + if(entrypoint == VAEntrypointEncSliceLP && IsHevcProfile(profile)) + { + VAConfigAttribValEncHEVCBlockSizes hevcBlockSize = {0}; + hevcBlockSize.bits.log2_max_coding_tree_block_size_minus3 = 3; + hevcBlockSize.bits.log2_min_coding_tree_block_size_minus3 = 3; + hevcBlockSize.bits.log2_min_luma_coding_block_size_minus3 = 0; + hevcBlockSize.bits.log2_max_luma_transform_block_size_minus2 = 3; + hevcBlockSize.bits.log2_min_luma_transform_block_size_minus2 = 0; + hevcBlockSize.bits.max_max_transform_hierarchy_depth_inter = 2; + hevcBlockSize.bits.min_max_transform_hierarchy_depth_inter = 0; + hevcBlockSize.bits.max_max_transform_hierarchy_depth_intra = 2; + hevcBlockSize.bits.min_max_transform_hierarchy_depth_intra = 0; + hevcBlockSize.bits.log2_min_cu_qp_delta_size_minus3 = 0; + hevcBlockSize.bits.log2_max_pcm_coding_block_size_minus3 = 0; + hevcBlockSize.bits.log2_min_pcm_coding_block_size_minus3 = 0; + *value = hevcBlockSize.value; + } + break; + } default: status = VA_STATUS_ERROR_INVALID_PARAMETER; break;